/* ==========================================================================
   GLASSMORPHIC AURORA DESIGN SYSTEM (style.css)
   Charlie Pelle Portfolio - Premium Vanilla CSS
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme: Dark Mode (Default) */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1527;
  --bg-card: rgba(15, 22, 42, 0.45);
  --bg-card-hover: rgba(22, 30, 56, 0.6);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-color: #6366f1; /* Indigo */
  --accent-secondary: #d946ef; /* Fuchsia */
  --accent-gradient: linear-gradient(135deg, #6366f1, #d946ef);
  --accent-gradient-hover: linear-gradient(135deg, #4f46e5, #c084fc);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --aurora-1: rgba(99, 102, 241, 0.15);
  --aurora-2: rgba(217, 70, 239, 0.12);
  
  --nav-bg: rgba(10, 14, 26, 0.75);
  --input-bg: rgba(15, 22, 42, 0.7);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus-border: #6366f1;
  --input-focus-shadow: rgba(99, 102, 241, 0.2);
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  --glass-blur: 16px;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
}

/* Theme: Light Mode Override */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-color: #4f46e5;
  --accent-secondary: #c084fc;
  --accent-gradient: linear-gradient(135deg, #4f46e5, #c084fc);
  --accent-gradient-hover: linear-gradient(135deg, #4338ca, #a855f7);
  --accent-glow: rgba(79, 70, 229, 0.12);
  --aurora-1: rgba(79, 70, 229, 0.08);
  --aurora-2: rgba(192, 132, 252, 0.06);
  
  --nav-bg: rgba(248, 250, 252, 0.8);
  --input-bg: rgba(255, 255, 255, 0.85);
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus-border: #4f46e5;
  --input-focus-shadow: rgba(79, 70, 229, 0.15);
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.06);
  
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.625;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
  min-height: 100vh;
}

/* Decorative Aurora Backgrounds */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aurora-1) 0%, transparent 70%);
  filter: blur(80px);
  animation: pulse-aurora-1 20s infinite alternate ease-in-out;
}

.aurora-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aurora-2) 0%, transparent 70%);
  filter: blur(80px);
  animation: pulse-aurora-2 25s infinite alternate ease-in-out;
}

@keyframes pulse-aurora-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.15); }
}

@keyframes pulse-aurora-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8%, -12%) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.9;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform-origin: 0%;
  transform: scaleX(0);
  z-index: 1100;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

/* Glass Card Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease,
              background-color 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
  background: var(--bg-card-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

body.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* --- Navigation Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

header:not(.scrolled) {
  padding: 1.5rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-item a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item a:hover, 
.nav-item a.active {
  color: var(--text-primary);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.nav-item a:hover::after,
.nav-item a.active::after {
  width: 80%;
  left: 10%;
}

/* Nav Actions (Toggle theme & Hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  border-color: var(--text-muted);
  transform: scale(1.05);
}

.theme-toggle-btn .fa-sun {
  display: none;
}

body.light-theme .theme-toggle-btn .fa-moon {
  display: none;
}

body.light-theme .theme-toggle-btn .fa-sun {
  display: block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1001;
  padding: 0.25rem;
}

/* Mobile Sidebar menu overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-item a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.mobile-nav-item a i {
  color: var(--accent-color);
  width: 24px;
}

.mobile-nav-item a:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-welcome {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-welcome-line {
  width: 30px;
  height: 2px;
  background: var(--accent-gradient);
}

.hero-title-wrap {
  min-height: 100px;
}

.hero-title span.typewriter-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-color);
  margin-left: 3px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent-color); }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-tech-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-tech-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hero-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

body.light-theme .hero-badge {
  background: rgba(0, 0, 0, 0.02);
}

/* Hero Image Column */
.hero-img-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
  border-radius: 32px;
  z-index: 2;
}

.profile-img-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 32px;
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0.5;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 31px;
  display: block;
}

.profile-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: var(--accent-gradient);
  z-index: 1;
  filter: blur(40px);
  opacity: 0.15;
}

/* Floating widgets */
.floating-widget {
  position: absolute;
  z-index: 3;
  background: rgba(15, 22, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

body.light-theme .floating-widget {
  background: rgba(255, 255, 255, 0.85);
}

.widget-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
}

.widget-info {
  display: flex;
  flex-direction: column;
}

.widget-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.widget-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.widget-xp {
  top: 15%;
  left: -8%;
}

.widget-projects {
  bottom: 12%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
}

.about-intro-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
}

.timeline-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.timeline-title-wrap i {
  font-size: 1.25rem;
}

.timeline-title-wrap h3 {
  color: var(--text-primary);
}

.timeline-container {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-color);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-color);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-color);
}

.timeline-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  background: var(--accent-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
}

body.light-theme .timeline-date {
  background: rgba(79, 70, 229, 0.08);
}

.timeline-institution {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category-card {
  padding: 2.25rem;
  height: 100%;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.skill-category-header i {
  font-size: 1.5rem;
}

.skill-category-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-percentage {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
}

.skill-progress-bg {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

body.light-theme .skill-progress-bg {
  background-color: rgba(0, 0, 0, 0.05);
}

.skill-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  width: 0%; /* Animates in via JS */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Portfolio/Works Section --- */
.portfolio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.filter-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Grid layout for projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 2;
}

.project-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.project-card.featured .project-img-wrap {
  aspect-ratio: 21 / 9;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

/* Badges overlay */
.project-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.project-badge {
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.light-theme .project-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.project-status.private {
  background: var(--text-muted);
}

/* Info details */
.project-info {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

body.light-theme .tech-tag {
  background: rgba(0, 0, 0, 0.02);
}

.project-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-gradient);
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.project-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

.project-link-btn.private-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

body.light-theme .project-link-btn.private-btn {
  background: rgba(0, 0, 0, 0.02);
}

.project-link-btn.private-btn:hover {
  transform: none;
  box-shadow: none;
}

/* --- Resume Section --- */
.resume-section {
  display: flex;
  justify-content: center;
}

.resume-wrapper {
  max-width: 680px;
  width: 100%;
}

.resume-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.resume-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.resume-card h3 {
  font-size: 1.5rem;
}

.resume-card p {
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 1rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.contact-detail-content {
  display: flex;
  flex-direction: column;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-detail-val {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Form Styling */
.contact-form-card {
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px var(--input-focus-shadow);
  background: var(--bg-card-hover);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background-color: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

/* --- Footer --- */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-links a:hover {
  color: #ffffff;
  border-color: transparent;
  background: var(--accent-gradient);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Scroll To Top --- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* --- Scroll Reveal Effects --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Media Queries --- */

/* Medium Devices (Tablets, max 992px) */
@media (max-width: 992px) {
  section {
    padding: 5rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-text-col {
    text-align: center;
    align-items: center;
  }
  
  .hero-subtitle {
    margin: 0 auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-tech-badges {
    justify-content: center;
  }
  
  .hero-img-col {
    order: -1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card.featured {
    grid-column: span 1;
  }
  
  .project-card.featured .project-img-wrap {
    aspect-ratio: 16 / 9;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
}

/* Small Devices (Mobile, max 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .floating-widget {
    padding: 0.75rem 1rem;
  }
  
  .widget-xp {
    left: -2%;
  }
  
  .widget-projects {
    right: -2%;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .project-info {
    padding: 1.5rem;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Awards & Seminars list --- */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.award-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.award-icon {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.award-icon.fa-trophy {
  color: #fbbf24; /* Gold/Amber */
}

.award-icon.fa-graduation-cap {
  color: var(--accent-color);
}

.award-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.award-content p {
  font-size: 0.925rem;
  line-height: 1.5;
}
