/* ============================================
   GLASSMORPHISM PORTFOLIO THEME
   ============================================ */

/* CSS Variables for Theming */
:root {
  /* Light Theme (Organic/Paper) */
  --bg-primary: #fdfbf7;
  /* Warm off-white */
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-heavy: rgba(255, 255, 255, 0.85);

  --text-primary: #1a2e26;
  /* Deep Jungle Green */
  --text-secondary: #4a5d54;
  /* Muted Green-Grey */
  --text-muted: #8c9e96;

  --accent-primary: #2d6a4f;
  /* Emerald Green */
  --accent-secondary: #d4a373;
  /* Warm Sand/Gold */
  --accent-glow: rgba(45, 106, 79, 0.3);

  --border-glass: rgba(45, 106, 79, 0.1);
  --border-light: rgba(45, 106, 79, 0.05);

  --shadow-glass: 0 8px 32px 0 rgba(45, 106, 79, 0.08);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);

  --gradient-bg: linear-gradient(135deg, #fdfbf7 0%, #e8e6e1 100%);
  --gradient-primary: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme (Deep Forest) */
body.dark-theme {
  --bg-primary: #0b1c15;
  /* Very Dark Jungle */
  --bg-secondary: #122920;
  /* Dark Green */
  --bg-glass: rgba(11, 28, 21, 0.6);
  --bg-glass-heavy: rgba(11, 28, 21, 0.9);

  --text-primary: #e8ecea;
  --text-secondary: #a3b8b0;
  --text-muted: #6c8078;

  --accent-primary: #52b788;
  /* Lighter Emerald */
  --accent-secondary: #f2c94c;
  /* Gold */
  --accent-glow: rgba(82, 183, 136, 0.3);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  --gradient-bg: linear-gradient(135deg, #0b1c15 0%, #081610 100%);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-glass-heavy);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Background Blobs */
body::before,
body::after {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.15;
  animation: float-blob 20s infinite linear;
}

body::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-primary), transparent);
}

body::after {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-secondary), transparent);
  animation-delay: -10s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(10%, 10%) rotate(90deg);
  }

  50% {
    transform: translate(0, 20%) rotate(180deg);
  }

  75% {
    transform: translate(-10%, 10%) rotate(270deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Base Body Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  z-index: 9999;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

ul {
  list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: 70px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-primary);
}

/* Navigation Styles */
.main-nav {
  display: flex;
  gap: var(--spacing-sm);
  background: var(--bg-glass);
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

.main-nav a {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

.dark-theme .main-nav a:hover,
.dark-theme .main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  transform: rotate(15deg);
  box-shadow: var(--shadow-glass);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Abstract Background Shapes */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.hero::before {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.greeting {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: var(--spacing-xl);
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 25px -5px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -5px var(--accent-glow);
}

.btn-outline {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  animation: popIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Visual */
.floating-card {
  position: relative;
  width: 400px;
  height: 500px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
  transform-style: preserve-3d;
  animation: floatCard 8s ease-in-out infinite;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }

  50% {
    transform: translateY(-30px) rotateX(5deg) rotateY(-5deg);
  }
}

.profile-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px -10px var(--accent-glow);
  position: relative;
  z-index: 10;
  overflow: hidden;
  border: 4px solid var(--bg-glass);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 30px -10px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.1);
  }

  to {
    box-shadow: 0 0 70px 0px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.3);
  }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-card:hover .profile-img {
  transform: scale(1.15) rotate(2deg);
}

.profile-circle::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  animation: spin 30s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.floating-dots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.floating-dots .dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-secondary);
  opacity: 0.6;
  filter: blur(1px);
}

.floating-dots .dot:nth-child(1) {
  width: 20px;
  height: 20px;
  top: 15%;
  left: 10%;
  animation: dotFloat 4s ease-in-out infinite;
}

.floating-dots .dot:nth-child(2) {
  width: 30px;
  height: 30px;
  bottom: 20%;
  right: 15%;
  background: var(--accent-primary);
  animation: dotFloat 5s ease-in-out infinite 1s;
}

.floating-dots .dot:nth-child(3) {
  width: 15px;
  height: 15px;
  top: 40%;
  right: 10%;
  background: #fbbf24;
  animation: dotFloat 3s ease-in-out infinite 2s;
}

@keyframes dotFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10px, -20px);
  }
}

/* ============================================
   SECTIONS
   ============================================ */

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background: transparent;
  /* Removed solid background for glass feel */
}

/* Section Separator/Decor */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(to right, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-line {
  width: 60px;
  height: 6px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: var(--radius-full);
  opacity: 0.8;
}

/* Reveal Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--spacing-xl);
  background: var(--bg-glass);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.about-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.info-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glass);
}

.info-item:hover::before {
  opacity: 1;
}

.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
/* (Skipping Education re-style in this chunk, focused on About/Skills first) */

/* ============================================
   SKILLS SECTION
   ============================================ */
/* Re-using Glass Card logic */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

.skill-card {
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-glass);
  background: var(--bg-glass);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Keeping dots but making them cooler */
.skill-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.skill-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  /* Fallback/Unfilled */
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.skill-dots .dot.filled {
  background: var(--gradient-primary);
  box-shadow: 0 0 5px var(--accent-glow);
}

.dark-theme .skill-dots .dot {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   EDUCATION SECTION (Timeline)
   ============================================ */

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--bg-glass));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 0 4px var(--bg-glass-heavy);
  transition: all var(--transition-normal);
}

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

.timeline-content {
  background: var(--bg-glass);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.timeline-item:hover .timeline-content {
  transform: translateX(10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glass);
}

.timeline-header {
  margin-bottom: var(--spacing-xs);
}

.timeline-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

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

.timeline-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}



/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.skill-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px -5px var(--accent-glow);
  background: var(--bg-glass-heavy);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-dots {
  display: flex;
  gap: 4px;
}

.skill-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
}

.skill-dots .dot.filled {
  background: var(--accent-primary);
  box-shadow: 0 0 5px var(--accent-glow);
}

.dark-theme .skill-dots .dot {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  align-items: start;
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -10px var(--shadow-glass), 0 0 20px var(--accent-glow);
}

.project-card:nth-child(even) {
  transform: translateY(40px);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.project-card:nth-child(even):hover {
  transform: translateY(30px) scale(1.02);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.project-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.project-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: rotate(15deg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-weight: 500;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* ============================================
   CERTIFICATIONS & AWARDS
   ============================================ */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.cert-card {
  background: var(--bg-glass);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  text-align: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-sm);
}

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cert-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cert-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Interests */
.interests-section {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-glass);
}

.interests-title,
.languages-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.interests-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.interest-tag {
  padding: 0.5rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-normal);
}

.interest-tag:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.05);
  border-color: transparent;
}

/* Languages */
.languages-section {
  text-align: center;
  padding-top: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-glass);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.language-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-2xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  backdrop-filter: blur(20px);
}

.contact-subtitle {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-detail-item:hover {
  color: var(--accent-primary);
}

.contact-icon-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-socials {
  margin-top: var(--spacing-xl);
  justify-content: flex-start;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea {
  background: rgba(0, 0, 0, 0.2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-secondary);
}

.submit-btn {
  margin-top: 1rem;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: var(--spacing-lg);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  border-top: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.footer-section h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--spacing-lg);
  }

  .hero-subtitle {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .floating-card {
    width: 320px;
    height: 400px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-glass-heavy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -27px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .contact-ctas {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .floating-card {
    width: 280px;
    height: 350px;
  }

  .profile-circle {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  .project-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

.main-nav.open {
  display: flex;
  position: absolute;
  top: 64px;
  right: 20px;
  background: rgba(11, 17, 32, 0.92);
  padding: 12px;
  border-radius: 12px;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.6)
}


@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }
}