/* Dark and Light Theme Color Palettes */
:root {
    /* Dark Theme (Default) - Using soft blacks instead of pure black */
    --bg-primary: #121212;    /* Was #0a0a0a */
    --bg-secondary: #1e1e1e;  /* Was #111111 */
    --bg-tertiary: #252525;   /* Was #1a1a1a */
    --bg-card: #1a1a1a;       /* Was #161616 */
    --bg-card-hover: #2a2a2a; /* Was #1f1f1f */
  
    --text-primary: #f8f9fa;  /* Was #ffffff */
    --text-secondary: #e9ecef;/* Was #e5e5e5 */
    --text-muted: #adb5bd;    /* Was #a3a3a3 */
    --text-accent: #868e96;   /* Was #737373 */
  
    /* Keep accent colors the same */
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --accent-tertiary: #60a5fa;
  
    --border-primary: #2c2c2c; /* Was #262626 */
    --border-secondary: #444444; /* Was #404040 */
    --border-accent: #555555;    /* Was #525252 */
  
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25);

    /* Theme transition */
    --transition-speed: 0.3s;
}

/* Light Theme Colors - 60-30-10 color rule */
[data-theme="light"] {
    /* 60% - Primary Colors (Main backgrounds) */
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    
    /* 30% - Secondary Colors (Supporting elements) */
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: #475569;
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    
    /* 10% - Accent Colors (Highlights, CTAs) */
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --accent-tertiary: #60a5fa;
    --border-accent: #94a3b8;
  
    /* Shadows with reduced intensity for light theme */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Debug styles to make the theme change more obvious */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9f9;

  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #555555;
  --text-accent: #777777;
  
  --accent-primary: #1d4ed8;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #2563eb;
  
  --border-primary: #e5e5e5;
  --border-secondary: #d4d4d4;
  --border-accent: #a3a3a3;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Additional indicator for light theme */
[data-theme="light"]::after {
  content: "Light Theme";
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(29, 78, 216, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 9999;
  pointer-events: none;
}

/* Additional indicator for dark theme */
[data-theme="dark"]::after {
  content: "Dark Theme";
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(96, 165, 250, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 9999;
  pointer-events: none;
}

/* Remove duplicate light theme declaration */
/* Light Theme Colors - keep only one declaration */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f9f9f9;
  
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-muted: #555555;
    --text-accent: #777777;
  
    --accent-primary: #1d4ed8;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #2563eb;
  
    --border-primary: #e5e5e5;
    --border-secondary: #d4d4d4;
    --border-accent: #a3a3a3;
  
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Make theme toggle more obvious */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1100;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--accent-primary);
}

/* Theme indicators */
.theme-toggle::after {
    content: attr(data-mode);
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    color: var(--text-muted);
}

[data-theme="light"] .theme-toggle::after {
    content: "LIGHT";
}

[data-theme="dark"] .theme-toggle::after,
:not([data-theme]) .theme-toggle::after {
    content: "DARK";
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}
  
html {
    scroll-behavior: smooth;
}
.smooth-scroll {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Navigation */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95); /* Was rgba(10, 10, 10, 0.95) */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  [data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
  }
  
  .navbar.scrolled {
    background: rgba(18, 18, 18, 0.98); /* Was rgba(10, 10, 10, 0.98) */
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-secondary);
  }
  
  [data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-secondary);
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }
  
  .nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease, transform 0.2s ease-out;
    position: relative;
    padding: 3px 0;transition: all 0.3s ease;
    position: relative;
  }
  
  .nav-link:hover {
    color: var(--text-primary);
  }
  
   .nav-link.active {
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
    transform: translateY(-1px); /* Subtle shift up for active link */
  }
  
  .nav-link.active::after {
    width: 100%;
    opacity: 1;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    height: 3px; /* Thicker for better visibility */
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5); /* Subtle glow effect */
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transition: width 0.3s ease-out, opacity 0.25s ease, height 0.3s ease;
    opacity: 0.7;
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  
  .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
  }
  
  /* Hero Section */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
  }
  
  .hero-container {
    max-width: 800px;
    position: relative;
    z-index: 1;
  }
  
  .hero-accent {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 2px;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--accent-tertiary);
    margin-bottom: 1.5rem;
    font-weight: 500;
  }
  
  .hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
  }
  
  .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 25px;
    border: 1px solid var(--border-primary);
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
  }
  
  [data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  }
  
  .btn-secondary {
    background: transparent;
    color: var(--accent-tertiary);
    border: 2px solid var(--accent-primary);
  }
  
  [data-theme="light"] .btn-secondary {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
  }
  
  .btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  /* Icons */
  .icon {
    width: 20px;
    height: 20px;
  }
  
  .icon-small {
    width: 16px;
    height: 16px;
  }
  
  /* Section Styles */
  section {
    padding: 80px 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 2px;
  }
  
  .section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
  }
  
  /* About Section */
  .about {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
  }
  
  .highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .highlight-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .highlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .highlight-card:hover::before {
    transform: scaleX(1);
  }
  
  .highlight-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-xl);
  }
  
  .highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
  }
  
  [data-theme="light"] .highlight-icon {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
  }
  
  .highlight-icon .icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
  }
  
  /* Make icon colors suitable for light theme */
  [data-theme="light"] .highlight-icon .icon,
  [data-theme="light"] .project-icon .icon,
  [data-theme="light"] .skill-header .icon,
  [data-theme="light"] .contact-icon .icon {
    color: rgba(0, 0, 0, 0.7);
  }
  
  /* Hover states for icons in light theme */
  [data-theme="light"] .highlight-card:hover .highlight-icon,
  [data-theme="light"] .project-card:hover .project-icon,
  [data-theme="light"] .skill-category:hover .skill-header .icon,
  [data-theme="light"] .contact-item:hover .contact-icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
  }
  
  .highlight-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }
  
  .highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  /* Projects Section */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .project-card:hover::before {
    transform: scaleX(1);
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-xl);
  }
  
  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  [data-theme="light"] .project-icon {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
  }
  
  .project-icon .icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
  }
  
  .project-meta {
    text-align: right;
  }
  
  .project-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-primary);
  }
  
  .project-year {
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  .project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }
  
  .project-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .project-features h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .project-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
  }
  
  .project-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .project-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
  }
  
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tech-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
  }

  .project-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
  }
  
  .project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
  }
  
  .project-link:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
  }
  
  .tech-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-secondary);
    border-color: var(--accent-primary);
  }
  
  /* Skills Section */
  .skills {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .skill-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .skill-category:hover::before {
    transform: scaleX(1);
  }
  
  .skill-category:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-xl);
  }
  
  .skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .skill-header .icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    padding: 8px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
  }
  
  [data-theme="light"] .skill-header .icon {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
  }
  
  .skill-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
  }
  
  .skill-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
  }
  
  /* Contact Section */
  .contact {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
  }
  
  .contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
  }
  
  .contact-card h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
  }
  
  .contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
  }
  
  .contact-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-secondary);
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  [data-theme="light"] .contact-icon {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
  }
  
  .contact-icon .icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
  }
  
  .contact-info {
    flex: 1;
  }
  
  .contact-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
  }
  
  .contact-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  .contact-link {
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
  }
  
  .contact-link:hover {
    color: var(--accent-tertiary);
    background: var(--bg-card);
  }
  
  .contact-cta {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
  }
  
  /* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1100;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--accent-primary);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    position: absolute;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: scale(0.5);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: scale(0.5);
}

/* Technology icon styling - updated to match the standard skill tags layout */
.tech-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.tech-icon-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
}

.tech-icon-container:hover {
  transform: translateY(-2px);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.tech-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: brightness(1);
}

.tech-icon-container:hover .tech-icon {
  filter: brightness(1.2);
}

/* Adjustment for skill tags when used with icons */
.tech-icon-container .skill-tag {
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tech-icon-container:hover .skill-tag {
  color: var(--bg-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background: var(--bg-primary);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: var(--shadow-lg);
      padding: 2rem 0;
      border-top: 1px solid var(--border-primary);
    }
  
    .nav-menu.active {
      left: 0;
    }
  
    .nav-toggle {
      display: flex;
    }
  
    .nav-toggle.active .bar:nth-child(2) {
      opacity: 0;
    }
  
    .nav-toggle.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
  
    .nav-toggle.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
  
    .hero-info {
      flex-direction: column;
      gap: 1rem;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    .skills-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-card {
      padding: 2rem;
    }
  
    .theme-toggle {
        margin-right: 1rem;
        margin-left: 0;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 15px;
    }
  
    .hero {
      padding: 80px 15px 30px;
    }
  
    section {
      padding: 60px 0;
    }
  
    .project-card {
      padding: 1.5rem;
    }
  
    .skill-category {
      padding: 1.5rem;
    }
  
    .contact-card {
      padding: 1.5rem;
    }
  }
  
  /* Smooth animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in-up {
    animation: fadeInUp 0.6s ease-out;
  }
  
  /* Glow effects for interactive elements */
  .btn-primary:hover {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(59, 130, 246, 0.3);
  }
  
  .project-card:hover,
  .skill-category:hover,
  .highlight-card:hover {
    box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.1);
  }
  
  /* Selection styling */
  ::selection {
    background: var(--accent-primary);
    color: var(--text-primary);
  }
  
  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
  }

  /* Skills Section - Adjusted grid layout */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.skill-category {
  /* ...existing code... */
}

/* Make specific categories side-by-side */
.skill-category.half-width {
  grid-column: span 1;
}

/* Create a wrapper for the half-width categories */
.half-width-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  grid-column: span 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .half-width-container {
    grid-template-columns: 1fr;
  }
}

/* Project Slideshow Styles */
.project-slideshow {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 250px;
  background-color: var(--bg-secondary);
  cursor: pointer;
}

.project-slideshow:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.slideshow-swipe-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.project-slideshow img {
  height: 100%;
  width: 100%;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  /* Optimize image rendering quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}
