/* Root Theme Colors */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #818cf8;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
  --shadow-md: 0 20px 60px rgba(99, 102, 241, 0.15);
  --shadow-lg: 0 30px 80px rgba(99, 102, 241, 0.2);
  --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Modern Color Palette - Fresh & Vibrant */
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  --accent: #ec4899;
  --dark: #0f0f1e;
  --dark-2: #1a1a2e;
  --light-2: #f1f5f9;
  --light: #f8fafc;
  --gray: #94a3b8;
  --gray-dark: #475569;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Glass backgrounds (aliases) */
  --glass-bg-dark: rgba(255,255,255,0.06);
  --glass-bg-light: rgba(255,255,255,0.85);

  /* Legacy alias variables used below */
  --accent-color: var(--accent);
  --text-dark: var(--gray);
  --primary-color: var(--primary);
  --color-card-bg: rgba(255,255,255,0.04);
  --color-bg: rgba(255,255,255,0.08);
  --color-text: #e2e8f0;
  --color-primary: var(--primary);
  --color-primary-light: rgba(37,99,235,0.15);
  --color-white: #ffffff;

  /* Typography */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
}

/* Floating Controls */
.theme-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  z-index: 1100;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

body.light .theme-toggle {
  background: rgba(255,255,255,0.9);
  color: var(--dark);
  border-color: rgba(0,0,0,0.08);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 4.5rem; /* sits above theme toggle */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 1100;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.light .back-to-top {
  background: rgba(255,255,255,0.9);
  color: var(--dark);
  border-color: rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-main);
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.7;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Light Mode */
body.light {
  background-color: var(--light);
  color: var(--dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  color: var(--light);
}

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6 {
  color: var(--dark);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray);
}

body.light p {
  color: var(--gray-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Buttons */
.btn {
  border: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  animation: slideInDown 0.8s ease-out 0.8s both;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  animation: slideInDown 0.8s ease-out 0.9s both;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInDown 0.8s ease-out 1s both;
}

body.light .btn-outline {
  color: var(--dark);
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
}

.btn-outline:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}
  
  /* Light Mode Toggle */
  body.light {
    background-color: var(--bg-light);
    color: var(--text-light);
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
  }
  a:hover {
    color: var(--accent-color);
  }
  
/* Header Styles */
.header {
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  z-index: 100;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;  
    left: 0;
    width: 100%;
    height: auto;  
    background: #1a1a2e;
    flex-direction: column;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    z-index: 999;
    transform: translateY(-150%);
    opacity: 0;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-links ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(15, 15, 30, 0.7), rgba(26, 26, 46, 0.7));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: var(--spacing-md) var(--spacing-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar.scrolled {
  padding: var(--spacing-sm) var(--spacing-2xl);
  background: linear-gradient(135deg, rgba(15, 15, 30, 0.95), rgba(26, 26, 46, 0.95));
  box-shadow: var(--shadow-lg);
}

body.light .navbar {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.7), rgba(225, 232, 240, 0.7));
}

body.light .navbar.scrolled {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(225, 232, 240, 0.95));
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: var(--transition);
  animation: slideInLeft 0.8s ease-out;
  letter-spacing: -1px;
}

.logo:hover {
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
  transform: scale(1.05);
}
  text-decoration: none;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  animation: slideInRight 0.8s ease-out;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  cursor: pointer;
}

body.light .nav-link {
  color: var(--dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.2));
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-2xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  text-align: center;
  padding-top: 5rem;
  perspective: 1000px;
}

body.light .hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: slideInDown 1s ease-out;
  transform-style: preserve-3d;
}

/* 3D Background inside Hero */
.hero-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  animation: gradientShift 10s ease-in-out infinite;
  background-size: 200% 200%;
}

/* Ensure hero container can host absolute children */
.hero .container {
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  animation: slideInDown 0.8s ease-out;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2));
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

body.light .hero p {
  color: var(--gray-dark);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.cta.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cta.secondary:hover {
  background: rgba(99, 102, 241, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated Background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

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

/* Typing Animation */
#typing-text {
  color: var(--primary);
  font-size: inherit;
  font-weight: 700;
  display: inline-block;
  min-width: 150px; /* Ensure space for longest word */
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--primary);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Modern 3D Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-40px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(-10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px) rotateY(10deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px) rotateY(-10deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes pulse3d {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.4);
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.5));
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sections */
section {
  padding: var(--spacing-2xl) 0;
  position: relative;
  overflow: hidden;
  scroll-behavior: smooth;
}

section:nth-child(odd) {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, transparent 100%);
}

section:nth-child(even) {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.02) 0%, transparent 100%);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  position: relative;
  z-index: 1;
  animation: slideInDown 0.8s ease-out;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  font-weight: 800;
  letter-spacing: -1px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.15));
}

.section-header h2:hover {
  filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.25));
  transform: scale(1.02);
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  font-weight: 500;
  letter-spacing: 0.3px;
}

body.light .section-subtitle {
  color: var(--gray-dark);
}

/* Section Backgrounds */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
}

/* Projects Section */
#projects {
  background-color: var(--dark-2);
  position: relative;
  overflow: hidden;
}

body.light #projects {
  background-color: var(--light-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.project-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.light .project-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.light .project-image {
  border-bottom-color: rgba(0,0,0,0.1);
}

.project-content {
  padding: var(--spacing-lg);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--light);
}

body.light .project-title {
  color: var(--dark);
}

.project-description {
  color: var(--gray);
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

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

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

.project-links {
  display: flex;
  gap: var(--spacing-sm);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-links {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.project-links .btn-icon {
  background: var(--color-bg);
  color: var(--color-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.project-links .btn-icon:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tech span {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Card Grid for Projects */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  perspective: 1200px;
}

.card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(n+6) { animation-delay: 0.6s; }

body.light .card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
  z-index: -1;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.02);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

body.light .card:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
}

/* Card shine effect */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease-in-out;
}

.card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.card:hover h4 {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.card p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  flex-grow: 1;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.card:hover p {
  color: var(--light);
}

body.light .card p {
  color: var(--text-light);
}

body.light .card:hover p {
  color: var(--dark);
}

.card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.card a::after {
  content: '';
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.card a:hover {
  color: var(--accent);
}

.card a:hover::after {
  width: 100%;
}

/* Experience Section */
.experience-item {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.experience-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.company {
  color: var(--text-light);
  margin-bottom: 1rem;
  display: block;
}

.experience-details {
  padding-left: 1.5rem;
}

.experience-details li {
  margin-bottom: 0.5rem;
  position: relative;
}

.experience-details li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Timeline Section */
#experience {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  overflow: hidden;
}

#experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.light #experience {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 1;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.timeline.animated::before {
  transform: translateX(-50%) scaleY(1);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 1rem;
  box-sizing: border-box;
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 4px solid var(--dark-2);
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

body.light .timeline-dot {
  border-color: var(--light-2);
}

.timeline-item.visible .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(236, 72, 153, 0.3);
}

.timeline-date {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  z-index: 2;
}

.timeline-date span {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.timeline-date span:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

.timeline-content {
  width: calc(50% - 3rem);
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 15s linear infinite;
  z-index: 0;
}

.timeline-content > * {
  position: relative;
  z-index: 1;
}

body.light .timeline-content {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

body.light .timeline-item:hover .timeline-content {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
}

.timeline-content h3 {
  color: var(--light);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
  color: var(--accent);
}

body.light .timeline-content h3 {
  color: var(--dark);
}

.timeline-content h4 {
  margin: 0 0 1rem 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-content ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.timeline-content ul li {
  margin-bottom: 0.5rem;
  color: var(--light);
  line-height: 1.6;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content ul li {
  color: var(--gray);
}

body.light .timeline-content ul li {
  color: var(--dark-2);
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.timeline-tech span {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-dot {
    left: 2rem;
  }
  
  .timeline-item {
    padding-left: 4rem;
  }
  
  .timeline-content {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .timeline-date {
    text-align: left;
    margin-bottom: 1.5rem;
  }
  
  .timeline-date span {
    padding: 0.4rem 1.2rem;
  }
}

@media (max-width: 576px) {
  .timeline {
    padding: 0 1rem;
  }
  
  .timeline::before {
    left: 1.5rem;
  }
  
  .timeline-dot {
    left: 1.5rem;
    top: 1.8rem;
    width: 16px;
    height: 16px;
  }
  
  .timeline-item {
    padding-left: 3rem;
    margin-bottom: 3rem;
  }
  
  .timeline-content {
    padding: 1.25rem;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem;
  }
  
  .timeline-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .timeline-content ul li {
    font-size: 0.9rem;
  }
  
  .timeline-tech span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
}

experience-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding: 0 1rem;
}

/* Skills Section */
#skills {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: gradientShift 15s ease-in-out infinite;
  background-size: 200% 200%;
}

body.light #skills {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.skills-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.skills-category-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.skills-category-card:nth-child(1) { animation-delay: 0.1s; }
.skills-category-card:nth-child(2) { animation-delay: 0.3s; }
.skills-category-card:nth-child(3) { animation-delay: 0.5s; }

.skills-category-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 12s linear infinite;
  z-index: 0;
}

.skills-category-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

body.light .skills-category-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
  border: 1px solid rgba(99, 102, 241, 0.15);
}

body.light .skills-category-card:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
}

.skills-card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  position: relative;
  z-index: 1;
}

.skills-card-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: all 0.3s ease;
}

.skills-category-card:hover .skills-card-header h3 {
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
}

.skills-card-header i {
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.3s ease;
  animation: floating 3s ease-in-out infinite;
}

.skills-category-card:hover .skills-card-header i {
  transform: scale(1.2) rotateY(360deg);
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.skills-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.skill-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.skill-item img {
  width: 28px;
  height: 28px;
  margin-right: 1.2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.skill-item span {
  color: var(--light);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Light mode styles */
body.light .skills-category-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .skill-item {
  background: rgba(0, 0, 0, 0.05);
}

body.light .skill-item:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.light .skill-item span {
  color: var(--dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-container {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .skills-category-card {
    padding: 1.5rem;
  }
  
  .skills-card-header h3 {
    font-size: 1.5rem;
  }
  
  .skill-item {
    padding: 0.9rem 1.2rem;
  }
  
  .skill-item img {
    width: 24px;
    height: 24px;
  }
  
  .skill-item span {
    font-size: 1rem;
  }
}

/* Skills Section Enhancements */
.skills-category {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.skills-category h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.skills-category h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 12px;
}

.skill-item {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(99,102,241,0) 100%);
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.skill-item img {
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.skill-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.skill-item span {
  font-weight: 600;
  transition: all 0.3s ease;
}

.skill-item:hover span {
  color: var(--primary);
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .skill-item img {
    width: 40px;
    height: 40px;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

body.light .skills-category {
  background: rgba(255,255,255,0.7);
}

.skill-category h3 {
  color: var(--primary);
  margin: 0;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.skill-category:hover h3::after {
  transform: scaleX(1);
}

.skill-body p {
  opacity: 0.9;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Certifications Section - Enhanced */
.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.certification-item {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

body.light .certification-item {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.1);
}

.certification-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  border-color: var(--primary);
}

.certification-header {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.light .certification-header {
  border-bottom-color: rgba(0,0,0,0.1);
}

.certification-header h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.certification-header h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.certification-item:hover .certification-header h3::after {
  width: 100px;
}

.certification-header .date {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}

.certification-body p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.certification-item .credential {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.certification-item .credential:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99,102,241,0.3);
}

@media (max-width: 768px) {
  .certifications-container {
    grid-template-columns: 1fr;
  }
}

/* About Section */
.about-content {
  display: flex;
  gap: 4rem;
  animation: slideInUp 0.8s ease-out;
}

.about-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.about-text p {
  transition: all 0.3s ease;
  line-height: 1.8;
}

.about-text p:hover {
  color: var(--primary-light);
}

.about-details {
  margin: 2rem 0;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.detail-item i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: all 0.3s ease;
  animation: floating 2s ease-in-out infinite;
}

.detail-item:hover i {
  transform: scale(1.2);
}

.about-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.about-skills {
  flex: 1;
  animation: slideInUp 0.8s ease-out 0.3s both;
}

.skill-category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.skill-category:hover h3 {
  color: var(--accent);
}

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

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-item:hover {
  background: rgba(99, 102, 241, 0.1);
  padding-left: 1rem;
}

.skill-item i {
  font-size: 1.2rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.skill-item:hover i {
  transform: rotate(360deg) scale(1.2);
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 75%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 75% 25%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: gradientShift 12s ease-in-out infinite;
  background-size: 200% 200%;
}

body.light #contact {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.contact-info:nth-child(1) { animation-delay: 0.1s; }
.contact-info:nth-child(2) { animation-delay: 0.3s; }

body.light .contact-info {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.contact-info:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

body.light .contact-info:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.2rem;
  transition: all 0.3s ease;
  animation: floating 3s ease-in-out infinite;
}

.contact-item:hover i {
  color: var(--accent);
  transform: scale(1.2);
}

.contact-item h3 {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.contact-item p, .contact-item a {
  opacity: 0.9;
  transition: all 0.3s ease;
}

.contact-item:hover p,
.contact-item:hover a {
  opacity: 1;
  color: var(--light);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  color: var(--primary);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: transparent;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.contact-form {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: var(--shadow-md);
  animation: slideInUp 0.8s ease-out 0.2s both;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 15s linear infinite;
  z-index: 0;
}

body.light .contact-form {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  color: inherit;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

body.light .form-group input,
body.light .form-group textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(99, 102, 241, 0.15);
}

body.light .form-group input:focus,
body.light .form-group textarea:focus {
  background: rgba(99, 102, 241, 0.05);
}

.form-group label {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  transition: var(--transition);
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  transform: translateY(-1.5rem);
  font-size: 0.8rem;
  color: var(--primary);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-card-bg);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.contact-form {
  background: var(--color-card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-size: 1rem;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0 0.25rem;
  background: var(--color-bg);
  color: var(--color-text-light);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--color-primary);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-primary);
}

/* Footer - Enhanced */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2rem;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(26,26,46,0), #1a1a2e);
  z-index: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.footer-logo {
  display: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  width: 100%;
}

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

.footer-section h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding-bottom: 0.75rem;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-section:hover h4::after {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.footer-section li {
  margin: 0;
  position: relative;
  padding: 0;
}

.footer-section li::before {
  content: '';
  display: none;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 300;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #fff;
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.footer-bottom p:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Floating particles background */
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.footer-particle {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-1000px) rotate(720deg); }
}

/* Light theme footer */
body.light footer {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(0,0,0,0.08);
}

body.light footer::before {
  background: linear-gradient(to bottom, rgba(248,250,252,0), #f8fafc);
}

body.light .footer-section h4 {
  color: var(--dark);
}

body.light .footer-section h4::after {
  background: var(--primary-dark);
}

body.light .footer-section:hover h4::after {
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

body.light .footer-section a {
  color: var(--text-light);
}

body.light .footer-section a:hover {
  color: var(--dark);
  text-shadow: 0 0 10px rgba(0,0,0,0.1);
}

body.light .footer-bottom {
  border-top-color: rgba(0,0,0,0.08);
}

body.light .footer-bottom p {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  .footer-section {
    align-items: center;
    text-align: center;
  }

  .footer-section ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-section a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0 0;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .project-card,
  .skill-category {
    max-width: 100%;
  }
}
  
  /* Contact */
  #contact a {
    color: var(--primary-color);
  }
  #contact a:hover {
    color: var(--accent-color);
  }
  
  /* Toggle Button */
  .theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: black;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    z-index: 200;
    transition: transform 0.2s;
  }
  .theme-toggle:hover {
    transform: scale(1.05);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .navbar nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
    .navbar nav a {
      margin: 0.5rem 1rem;
    }
    .hero h2 {
      font-size: 2rem;
    }
    .hero p {
      font-size: 1rem;
    }
    .section {
      padding: 2rem 1rem;
    }
  }

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 0.25rem;
  background-color: var(--primary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Skills Category Cards */
.skills-category-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
}

body.light .skills-category-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.1);
}

.skills-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-color: var(--primary);
}

.skills-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.light .skills-card-header {
  border-bottom-color: rgba(0,0,0,0.1);
}

.skills-card-header h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0;
}

.skills-card-header i {
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.7;
}

.skills-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.skill-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.skill-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.skill-item span {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
  .skills-card-body {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* Mobile Navbar */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

.menu-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.menu-line:nth-child(1) { top: 0; }
.menu-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-line:nth-child(3) { bottom: 0; }

.mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;  
    left: 0;
    width: 100%;
    height: auto;  
    background: #1a1a2e;
    flex-direction: column;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    z-index: 999;
    transform: translateY(-150%);
    opacity: 0;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-links ul {
    flex-direction: column;
    gap: 1rem;
  }
}
