/* ========================================
   DESIGN SYSTEM - CSS CUSTOM PROPERTIES
   ======================================== */

/* Color Palette */
:root[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #ffffff;
    --primary-hover: #f0f0f0;
    --primary-active: #e0e0e0;
    
    /* Secondary Colors */
    --secondary-color: #ffffff;
    --secondary-hover: #f0f0f0;
    --secondary-active: #e0e0e0;
    
    /* Accent Colors */
    --accent-color: #ff0055;
    --accent-hover: #e6004d;
    --accent-active: #cc0044;
    
    /* Neutral Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --text-inverse: #1a1a1a;
    
    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    /* Surface Colors */
    --surface-primary: #1a1a1a;
    --surface-secondary: #2a2a2a;
    --surface-elevated: #3a3a3a;
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.2);
    --border-focus: #ffffff;
    
    /* Status Colors */
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    --info: #00b8ff;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.6);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
    --gradient-secondary: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 0, 85, 0.2));
}

:root[data-theme="light"] {
    /* Primary Colors */
    --primary-color: #1a1a1a;
    --primary-hover: #333333;
    --primary-active: #4a4a4a;
    
    /* Secondary Colors */
    --secondary-color: #1a1a1a;
    --secondary-hover: #333333;
    --secondary-active: #4a4a4a;
    
    /* Accent Colors */
    --accent-color: #ff0055;
    --accent-hover: #e6004d;
    --accent-active: #cc0044;
    
    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-inverse: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    
    /* Surface Colors */
    --surface-primary: #ffffff;
    --surface-secondary: #f8f9fa;
    --surface-elevated: #ffffff;
    
    /* Border Colors */
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.2);
    --border-focus: #1a1a1a;
    
    /* Status Colors */
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    --info: #0077ff;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    --gradient-secondary: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(255, 0, 85, 0.1));
}

/* Typography Scale */
:root {
    --font-family-primary: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* Spacing Scale */
:root {
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
}

/* Border Radius */
:root {
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-base: 0.25rem;  /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
}

/* Transitions */
:root {
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-all: all var(--transition-base);
}

/* Z-Index Scale */
:root {
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Legacy Variables for Backward Compatibility */
:root[data-theme="dark"] {
    --text-color: var(--text-secondary);
    --dark-bg: var(--bg-primary);
    --card-bg: var(--surface-primary);
    --navbar-bg: var(--bg-primary);
    --navbar-text: var(--text-primary);
    --navbar-active: var(--secondary-color);
    --navbar-hover: var(--secondary-color);
    --gradient-start: rgba(255, 255, 255, 0.1);
    --gradient-end: rgba(255, 255, 255, 0.1);
    --box-shadow: var(--shadow-md);
    --border-color: var(--border-primary);
}

:root[data-theme="light"] {
    --text-color: var(--text-secondary);
    --dark-bg: var(--bg-primary);
    --card-bg: var(--surface-secondary);
    --navbar-bg: var(--bg-overlay);
    --navbar-text: var(--text-primary);
    --navbar-active: var(--secondary-color);
    --navbar-hover: var(--secondary-color);
    --gradient-start: rgba(0, 0, 0, 0.1);
    --gradient-end: rgba(0, 0, 0, 0.1);
    --box-shadow: var(--shadow-sm);
    --border-color: var(--border-primary);
}

/* Theme Switcher Styles */
.theme-switch {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.theme-switch:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle i {
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 0;
    position: absolute;
}

.theme-toggle .fa-moon {
    opacity: 1;
    position: absolute;
}

:root[data-theme="light"] .theme-toggle .fa-sun {
    opacity: 1;
}

:root[data-theme="light"] .theme-toggle .fa-moon {
    opacity: 0;
}

@media (max-width: 768px) {
    .theme-switch {
        bottom: 1rem;
        right: 1rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        padding: 0.6rem;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
}

/* Add transition for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Remove default root variables to prevent theme mixing */
:root {
    /* Remove duplicate variable declarations */
}

/* Force immediate transition for navbar background to prevent flashing */
.navbar {
    transition: background-color 0s;
}

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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

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

a:hover {
    color: var(--secondary-hover);
}

a:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
}

/* Focus Management */
:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: var(--secondary-color);
    color: var(--text-inverse);
}

::-moz-selection {
    background-color: var(--secondary-color);
    color: var(--text-inverse);
}

/* ========================================
   NAVIGATION COMPONENT
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--navbar-bg);
    padding: var(--space-4) var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-all);
}

.nav-brand {
    color: var(--navbar-text);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: var(--transition-all);
}

.nav-brand:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.nav-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    object-fit: cover;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.nav-profile-pic.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--navbar-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--navbar-hover);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--gradient-start);
}

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

.nav-links li a:hover::after {
    width: 80%;
}

.nav-links li a.active {
    color: var(--navbar-active);
}

.nav-links li a.active::after {
    width: 80%;
    background: var(--navbar-active);
}

.nav-search {
    position: relative;
    margin-left: var(--space-4);
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: var(--secondary-color);
    background-color: var(--surface-secondary);
    transform: scale(1.05);
}

.search-toggle:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.search-container {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-primary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    width: 320px;
    margin-top: var(--space-2);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.search-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.search-result-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

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

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

@media (max-width: 768px) {
    .navbar {
        padding: var(--space-4);
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--navbar-bg);
        flex-direction: column;
        align-items: center;
        padding: var(--space-8) 0;
        gap: var(--space-4);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-primary);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-all);
    }

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

    .nav-links li a {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        width: 100%;
        text-align: center;
        border-radius: var(--radius-lg);
    }

    .search-container {
        width: calc(100vw - var(--space-8));
        right: var(--space-4);
        left: var(--space-4);
    }

    .hero-content h1 {
        font-size: var(--text-4xl);
    }

    .hero-content p {
        font-size: var(--text-xl);
    }

    section {
        padding: var(--space-16) var(--space-4);
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

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

.hero {
    height: 100vh;
    min-height: 600px;
    background: url('images/INDEX1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.35)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.profile-container {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic.hide {
    opacity: 0;
    transform: scale(0.5);
}

.hero-content h1,
.hero-content p {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    animation: centerExpand 2s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    text-align: center;
}

@keyframes centerExpand {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translateY(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.hero-content p {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    border-right: 4px solid #ffffff;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end) 2s,
               blink-caret 0.75s step-end infinite;
    animation-fill-mode: forwards;
    opacity: 0;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 0.8rem;
    padding: 0.8rem 1.5rem;
    position: relative;
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.scroll-down {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    cursor: pointer;
    z-index: 3;
    gap: var(--space-2);
    background: none;
    border: none;
    padding: var(--space-4);
    border-radius: var(--radius-full);
    transition: var(--transition-all);
}

.scroll-down:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-down:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.scroll-down i {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-4xl);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: var(--transition-all);
    animation: bounce 2s infinite;
}

.scroll-down .arrow1 { animation-delay: 0s; }
.scroll-down .arrow2 { animation-delay: 0s; }
.scroll-down .arrow3 { animation-delay: 0s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                     0 0 20px rgba(255, 255, 255, 0.3),
                     0 0 30px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
                     0 0 30px rgba(255, 255, 255, 0.4),
                     0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

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

/* About Section Styles */
.about {
    background-color: var(--dark-bg);
    padding: 5rem 2rem;
    position: relative;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(400px, 2fr);
    gap: 3rem;
    align-items: start;
    padding: 0 1rem;
}

.about-image {
    position: sticky;
    top: 5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1;
    max-height: 400px;
    margin-top: 4.5rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
}

.about-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 0.5rem;
}

.about-intro {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
    margin-top: 1rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.highlight-item span {
    color: var(--text-color);
    font-weight: 500;
}

.about-achievements {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-achievements:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-achievements h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.about-achievements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-achievements li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.about-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-top: 8px;
}

/* Media Queries for About Section */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
        margin-top: 0;
        aspect-ratio: 1;
    }

    .about-content {
        text-align: center;
        padding: 1rem;
    }

    .about-title::after {
        margin: 0.5rem auto 0;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 1rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-description {
        font-size: 1rem;
    }
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    background-color: var(--dark-bg);
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--surface-primary);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-all);
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition-all);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-focus);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card i {
    font-size: var(--text-5xl);
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: var(--transition-all);
}

.skill-card:hover i {
    transform: scale(1.1);
    color: var(--primary-hover);
}

.skill-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.skill-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-card li {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    padding-left: var(--space-6);
    position: relative;
    line-height: var(--leading-relaxed);
}

.skill-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

/* Projects Section */
.projects {
    background-color: var(--dark-bg);
    padding: 5rem 2rem;
    position: relative;
}

.projects h2 {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.projects h2::after {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.projects-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 300px;
    width: 100%;
}

.projects-search-input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.projects-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.projects-search-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-color);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.projects-search-input:focus + .projects-search-icon {
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-details {
    list-style-position: inside;
    margin-top: 1rem;
    padding-left: 1rem;
}

.project-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.project-details li::before {
    content: '>';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.project-card .btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.project-card .btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.project-card .btn i {
    font-size: 1.2rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    background: var(--card-bg);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-results i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .projects-search {
        max-width: 100%;
    }
}

/* Contact Section */
.contact {
    background-color: var(--card-bg);
    padding: 5rem 2rem;
}

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

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--dark-bg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
}

.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.social-link i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.social-link span {
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover span {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 1rem;
        min-width: 100px;
    }
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
    border: 2px solid var(--primary-color);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    min-height: 44px; /* Touch target size */
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-inverse);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.btn-secondary {
    background-color: var(--surface-primary);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.btn-secondary:hover {
    background-color: var(--surface-secondary);
    border-color: var(--border-focus);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Certifications Section */
.certifications {
    background-color: var(--dark-bg);
    padding: 5rem 2rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.certification-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.certification-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.certification-details {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    padding: 0;
}

.certification-details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.certification-details li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.certification-card .btn {
    margin-top: 1rem;
    display: inline-block;
}

/* Extracurricular Activities Section */
.extracurricular {
    background-color: var(--dark-bg);
    padding: 5rem 2rem;
    position: relative;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.5s ease;
}

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

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(100px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.timeline-date {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.timeline-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.timeline-description {
    color: var(--text-color);
    line-height: 1.6;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    right: -10px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 3rem;
    height: 2px;
    background-color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.timeline-item:nth-child(even)::after {
    left: 0;
}

/* Media Queries for Timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 1rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::before {
        left: 21px;
        right: auto;
    }
    
    .timeline-item::after {
        left: 31px;
        right: auto;
        width: 2rem;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 21px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 31px;
    }
}

.project-section {
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.project-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(2px);
    z-index: -1;
}

.project-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-section .project-links {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.project-section .project-links a {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-section .project-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Update theme toggle for light mode */
:root[data-theme="light"] .theme-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
}

:root[data-theme="light"] .theme-toggle:hover {
    border-color: var(--secondary-color);
    background: var(--gradient-start);
}

/* Base responsive settings */
html {
    font-size: 16px; /* Base font size for responsive units */
}

/* Enhanced Media Queries for Better Responsiveness */
/* Large devices (laptops/desktops) */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 960px;
        padding: 0 2rem;
    }
}

/* Medium devices (tablets) */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .container {
        max-width: 720px;
    }
    
    .projects-grid,
    .skills-grid,
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Small devices (mobile phones) */
@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--navbar-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .projects-grid,
    .skills-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .project-card:hover,
    .skill-card:hover,
    .certification-card:hover {
        transform: none;
    }
    
    .nav-links li a:hover {
        background: var(--navbar-bg);
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Flexible video embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--navbar-text);
    font-size: var(--text-xl);
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-all);
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    color: var(--navbar-hover);
    background-color: var(--surface-secondary);
    transform: scale(1.05);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-search {
        margin-left: auto;
    }
}

/* Platforms Section */
.platforms {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
    background-image: url('images/nature.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.75)
    );
    z-index: 1;
}

.platforms h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

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

.platform-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.562);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.425);
    border-color: var(--primary-color);
}

.platform-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.platform-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.platform-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.platform-card .rank {
    color: var(--primary-color);
    font-weight: bold;
}

.platform-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.platform-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

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

:root[data-theme="light"] .platforms {
    background-color: var(--card-bg);
    background-image: url('images/nature.png');
}

:root[data-theme="light"] .platforms::before {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.85),
        rgba(255,255,255,0.75)
    );
}

:root[data-theme="light"] .platform-card {
    background-color: rgba(255,255,255,0.85);
    color: var(--primary-color);
}

:root[data-theme="light"] .platform-card h3,
:root[data-theme="light"] .platform-card .rank {
    color: var(--primary-color);
}

:root[data-theme="light"] .platform-card p {
    color: var(--text-color);
}

:root[data-theme="light"] .platform-link {
    background-color: var(--primary-color);
    color: var(--card-bg);
}

:root[data-theme="light"] .platform-link:hover {
    background-color: var(--secondary-color);
    color: var(--card-bg);
} 