/*
 * Modern Design System
 * Version 2.0.0
 * 
 * A comprehensive design system featuring:
 * - Semantic color palette
 * - Typography scale
 * - Spacing system
 * - Advanced animations
 * - Responsive breakpoints
 * - Component primitives
 * - Dark/Light mode support
 */

/* ==========================================================================
   Color System - Semantic naming for better maintainability
   ========================================================================== */

:root {
  /* Brand Colors */
  --brand-primary: #0D9488; /* Teal 600 - Professional Teal */
  --brand-primary-light: #5EEAD4; /* Teal 300 */
  --brand-primary-dark: #115E59; /* Teal 900 */

  --brand-secondary: #334155; /* Slate 700 - Muted Slate */
  --brand-secondary-light: #64748B; /* Slate 500 */
  --brand-secondary-dark: #1E293B; /* Slate 800 */

  --brand-accent: #F97316; /* Orange 500 - Professional Orange */
  --brand-accent-light: #FDBA74; /* Orange 300 */
  --brand-accent-dark: #C2410C; /* Orange 700 */

  /* Surface System */
  --surface-ground: #0F172A; /* Slate 900 - Deep Blue */
  --surface-base: #1E293B; /* Slate 800 */
  --surface-elevated: #334155; /* Slate 700 */
  --surface-overlay: #475569; /* Slate 600 */

  /* Typography Colors */
  --text-high-contrast: #E2E8F0; /* Slate 200 - Light Gray */
  --text-medium-contrast: #94A3B8; /* Slate 400 */
  --text-low-contrast: #64748B; /* Slate 500 */
  --text-inverted: #0F172A; /* Slate 900 */

  /* Semantic Colors */
  --success: #10B981; /* Emerald 500 */
  --warning: #F59E0B; /* Amber 500 */
  --error: #EF4444; /* Red 500 */
  --info: #3B82F6; /* Blue 500 */

  /* Interaction States */
  --hover-overlay: rgba(255, 255, 255, 0.1);
  --active-overlay: rgba(255, 255, 255, 0.16);
  --disabled-overlay: rgba(0, 0, 0, 0.4);

  /* Focus States */
  --focus-ring: 0 0 0 2px var(--surface-ground), 0 0 0 4px var(--brand-primary);

  /* ========================================================================== 
     Typography System - Modular scale 
     ========================================================================== */

  /* Font Families */
  --font-family-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-code: 'JetBrains Mono', 'SF Mono', Consolas, Monaco, monospace;

  /* Font Sizes - Using fluid typography with clamp() */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --font-size-3xl: clamp(2rem, 1.8rem + 1.25vw, 2.5rem);

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ========================================================================== 
     Spacing System - Based on 4px grid 
     ========================================================================== */

  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */

  /* ========================================================================== 
     Effects System 
     ========================================================================== */

  /* Shadows */
  --shadow-color: rgba(45, 212, 191, 0.1);
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color);
  --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);

  /* Glass Morphism */
  --glass-background: rgba(31, 41, 55, 0.7);
  --glass-border: rgba(245, 245, 244, 0.3);
  --glass-blur: blur(12px);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}
/* ==========================================================================
   Light Mode Overrides
   ========================================================================== */

.light-mode {
  /* Background Colors */
    --surface-ground: #F2F2F2;    /* Clean, Soft Platinum */
  --surface-base: #A8B5AE;      /* Elegant Muted Sage Gray */
  --surface-elevated: #8aa097;  /* Deep Luxurious Teal-Green */



  --surface-overlay: rgba(255, 255, 255, 0.85); /* Glass Effect */

  /* Text Colors */
  --text-high-contrast: #1e293b;    /* Deep Blue-Gray */
  --text-medium-contrast: #475569;  /* Balanced Gray */
  --text-low-contrast: #64748b;     /* Subtle Gray */
  --text-inverted: #ffffff;         /* Pure White */

  /* Brand Colors */
  --brand-primary: #2C7A7B;         /* Professional Teal */
  --brand-primary-light: #09332d;   /* Light Aqua */
  --brand-primary-dark: #20504F;    /* Deep Teal */

  /* UI Effects */
  --glass-background: rgba(255, 255, 255, 0.6); /* Soft Transparency */
  --glass-border: rgba(203, 213, 225, 0.5);     /* Subtle Border */
  --shadow-color: rgba(17, 24, 39, 0.08);       /* Soft Drop Shadow */
  --blur-effect: blur(12px);                    /* Frosted Glass Blur */

  /* Border & Spacing */
  --border-radius: 14px;          /* Smooth Rounded Corners */
  --shadow-elevation: 0px 6px 16px var(--shadow-color); /* Soft Depth */
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface-ground);
  color: var(--text-high-contrast);
  font-family: var(--font-family-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ==========================================================================
   Component Primitives
   ========================================================================== */

/* Card Component */
.card {
  background-color: var(--surface-base);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-elevated);
  padding: var(--space-6);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Glass Component */
.glass {
  background: var(--glass-background);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* Button Component */
.button {
  background-color: var(--brand-primary);
  color: var(--text-inverted);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.button:hover {
  background-color: var(--brand-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button:focus {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 2px;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.fade-in {
  animation: fadeIn var(--transition-normal) ease-out forwards;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--surface-base);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: 0 2px 10px var(--header-shadow);
  background-color: var(--header-scrolled-bg);
}

/* Navbar Container */
#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--surface-base);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Logo Styling */
.logo-img {
  width: 70px;
  height: 63px;
  border-radius: 35px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1);
}

/* Navigation Links */
.navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation ul li a {
  color: var(--text-high-contrast);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--surface-elevated);
}

.navigation ul li a:hover {
  background-color: var(--brand-primary);
  color: var(--text-inverted);
  transform: translateY(-2px);
}

.navigation ul li.active a {
  background-color: var(--brand-primary);
  color: var(--text-inverted);
}

.download-cv {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-secondary-dark));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.download-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
  border:1px solid var(--brand-secondary-dark);
}

/* Menu Toggle (Hamburger Icon) */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-high-contrast);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1188px) {
  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: var(--surface-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }

  .navigation.active {
    right: 0;
    background-color: var(--brand-secondary);
    height: auto;
    width: auto;
    border: #09332d;
    border-radius: 12px 0px 0px 12px;
  }

  .navigation ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .navigation ul li a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  /* Hamburger Animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}




/* Dropdown Menu Styling */
.navigation ul li {
    position: relative;
}

.navigation ul li .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-overlay); /* Replaced #6d7574 with --surface-overlay */
    min-width: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 12px;
    border: 0.4px solid transparent;
    animation: borderAnimation 0.5s ease-in-out forwards, pulse 2s infinite;
}

.navigation ul li .dropdown-content li {
    padding: 12px 16px;
}

.navigation ul li .dropdown-content li a {
    color: black;
    text-decoration: none;
    display: block;
}

.navigation ul li .dropdown-content li a:hover {
    background-color: hwb(64 87% 0%);
}

.navigation ul li:hover .dropdown-content {
    display: block;
}



/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
    }
    70% {
        box-shadow: 0 0 10px 20px rgba(45, 212, 191, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
}

/* ==========================================================================
   Main Content
   ========================================================================== */

main {
  margin-top: 120px;
}

.glass-box {
  background-color: var(--surface-base);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--glass-box-shadow);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-high-contrast);
  z-index: 1;
}

.text-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: var(--brand-primary);
  font-weight: 700;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-content .typewriter {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  color: var(--text-medium-contrast);
  border-right: 2px solid var(--brand-primary);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--brand-primary) }
}

.contact-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  color: var(--text-high-contrast);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  margin-right: 0.5rem;
  color: var(--brand-primary);
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--brand-primary-light);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.contact-item:hover i {
  color: var(--brand-primary-light);
}

/* Enhanced CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-primary);
  color: var(--text-inverted);
  padding: 1rem 2.5rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-md);
}



.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   About Section
   ========================================================================== */

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 2rem);
    align-items: start;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 320px;
    height: 350px;
    border-radius: 20%;
    transform: rotate(-5deg);
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    left: 10px;
    position: relative;
    z-index: 2;
    object-fit: cover;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20%;
    top: 20px;
    right: -2px;
    z-index: 1;
    transition: all 0.5s ease;
}

.hero-image-container:hover .hero-image {
    transform: rotate(0deg) translateY(-10px);
}

.hero-image-container:hover::before {
    transform: rotate(-5deg) translateY(10px);
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.125rem; /* 18px */
    line-height: 1.6;
    color: var(--text-medium-contrast);
}

.about-text p::first-letter {
    font-size: 2rem; /* 32px */
    font-weight: bold;
    color: var(--brand-primary);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-image-container::before {
        width: 100%;
        height: auto;
        top: 10px;
        right: -10px;
    }
}

/* ==========================================================================
   education Section
   ========================================================================== */

#education {
    padding: var(--space-8) var(--space-4);
}

.timeline {
    position: relative;
    padding: var(--space-8) 0;
    margin: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--brand-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-8);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
    text-align: left;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: var(--space-4);
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.timeline-content h3 {
    margin-bottom: var(--space-2);
    color: var(--brand-primary-dark);
    font-size: var(--font-size-lg);
}

.timeline-content p {
    margin: 0;
    color: var(--text-medium-contrast);
}

.timeline-content .date {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-low-contrast);
}
/* Responsive Design */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 20px;
        width: calc(100% - 40px);
        text-align: left;
    }
}


/* ==========================================================================
   Skills Section
   ========================================================================== */

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.skill-category {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.skill-category h3 {
    color: var(--brand-primary-light);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), transparent);
    border-radius: 3px;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.skill-item i {
    font-size: 1.75rem;
    color: var(--brand-primary);
    margin-right: 1.25rem;
    transition: transform 0.3s ease;
}

.skill-item:hover i {
    transform: rotate(5deg);
}

.skill-details {
    flex-grow: 1;
}

.skill-name {
    font-weight: 600;
    color: var(--text-high-contrast);
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.proficiency-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.proficiency-level {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--brand-primary), 
        var(--brand-primary-light)
    );
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.proficiency-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
}

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

.skill-description {
    font-size: 0.9rem;
    color: var(--text-medium-contrast);
    line-height: 1.5;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}


/* ========================================================================== 
   Projects Section 
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.project-card {
    background-color: var(--surface-elevated);
    border: 1px solid rgba(45, 212, 191, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-2);
    box-shadow: var(--shadow-md);
}

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

.project-image {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    background-position: center;
    background-size: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-image:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-button svg {
    width: 100%;
    height: 100%;
}

.play-button svg circle {
    stroke-width: 2;
    stroke: var(--surface-elevated);
    fill: rgba(45, 212, 191, 0.9);
}

.play-button svg polygon {
    fill: var(--surface-elevated);
}

.project-content {
    padding: var(--space-4);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--brand-primary);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center; 
}

.project-content p {
    flex-grow: 1;
    margin-bottom: var(--space-4);
    color: var(--text-medium-contrast);
    font-size: var(--font-size-base);
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    justify-content: center;
}

.project-tools span {
    background-color: rgba(45, 212, 191, 0.1);
    color: var(--brand-primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem; /* Adjusted padding for resizing */
    border-radius: var(--radius-md);
    color: var(--text-inverted);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    cursor: pointer;
    font-size: var(--font-size-sm); /* Adjusted font size for resizing */
}

.project-link:hover {
    background-color: var(--brand-primary-dark);
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    color: var(--text-inverted);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.project-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 2rem;
    }

    .project-content {
        padding: var(--space-3);
    }

    .project-content h3 {
        font-size: var(--font-size-base);
    }

    .project-content p {
        font-size: var(--font-size-sm);
    }

    .project-link {
        font-size: var(--font-size-sm);
        padding: var(--space-2) var(--space-3);
    }

    .project-tools span {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-1);
    }
}


/* ==========================================================================
   Contact Section
   ========================================================================== */

#contact-form {
    display: grid;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 5px;
}

#contact-form button {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: var(--text-inverted);
    border: none;
    width: auto;
    padding: 0.6rem 1.2rem; /* Adjusted padding for resizing */
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: var(--font-size-sm); /* Adjusted font size for resizing */
    font-weight: var(--font-weight-semibold);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#contact-form button:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}
/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    text-align: center;
    padding: 1.6rem 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.social-links {
    margin-bottom: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: var(--brand-primary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--surface-1);
        padding: 2rem;
        transition: var(--transition-smooth);
    }
    
    .navigation.active {
        right: 0;
    }
    
    .navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 4rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.animate-fadeUp {
    animation: fadeUp 0.5s ease forwards;
}

/* ==========================================================================
   Typewriter Effect
   ========================================================================== */

.typewriter {
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .contact-item {
        font-size: 0.7rem;
        padding: 0.3rem;
    }
}
