/* ===========================
   Loading Page
   =========================== */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-page.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 3px solid rgba(0, 217, 255, 0.2);
    border-top-color: #00D9FF;
    border-right-color: #BD6BFF;
    border-bottom-color: #FF6B9D;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

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

.loader-text {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ===========================
   Project Modal
   =========================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.3);
    animation: slideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-year {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.modal-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.modal-link:hover {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body p {
        font-size: 1rem;
    }
}

.modal-image-container {
    width: 100%;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-darker);
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Colors */
    --primary-color: #00D9FF;
    --secondary-color: #FF6B9D;
    --accent-color: #BD6BFF;
    --tertiary-color: #FFB627;
    --success-color: #00FF94;
    --bg-dark: #0d0f1a;
    --bg-darker: #050610;
    --bg-card: #1a1d2e;
    --text-light: #ffffff;
    --text-gray: #c4c4c4;
    --text-dark: #808080;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #BD6BFF 50%, #FF6B9D 100%);
    --gradient-secondary: linear-gradient(135deg, #FFB627 0%, #FF6B9D 100%);
    --gradient-tertiary: linear-gradient(135deg, #00FF94 0%, #00D9FF 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 29, 46, 0.6), rgba(13, 15, 26, 0.8));
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 217, 255, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 217, 255, 0.4);
    --shadow-lg: 0 8px 40px rgba(189, 107, 255, 0.5);
    --shadow-glow: 0 0 40px rgba(189, 107, 255, 0.6);
    --shadow-glow-pink: 0 0 40px rgba(255, 107, 157, 0.6);
    --shadow-glow-cyan: 0 0 40px rgba(0, 217, 255, 0.6);
    --shadow-glow-yellow: 0 0 40px rgba(255, 182, 39, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.logo-bracket {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo-text {
    color: var(--text-light);
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-special {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.nav-link-special:hover {
    color: var(--accent-color) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 var(--spacing-xl);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(255, 107, 157, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(189, 107, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px, 40px 40px, 35px 35px;
    animation: twinkle 8s ease-in-out infinite;
}

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

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

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.1fr);
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.media-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    padding: 1rem;
    border-radius: 20px;
    background: var(--gradient-card);
    border: 2px solid rgba(0, 217, 255, 0.25);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.media-frame::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: conic-gradient(
        from 0deg,
        #00D9FF,
        #BD6BFF,
        #FF6B9D,
        #FFB627,
        #00FF94,
        #00D9FF
    );
    filter: blur(30px);
    opacity: 0.6;
    animation: rotate 8s linear infinite;
    z-index: 0;
}

.media-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(255, 107, 157, 0.1));
    z-index: 1;
}

.hero-video,
.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    z-index: 2;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-video {
    background: transparent;
    pointer-events: none;
    object-fit: contain;
}

.hero-photo {
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.hero-photo.is-visible {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

.hero-video.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-text {
    text-align: left;
    max-width: 640px;
    margin-left: auto;
}

.highlight-name {
    color: var(--primary-color);
    font-weight: 800;
}

.glitch {
    position: relative;
    color: var(--text-light);
    text-shadow: 
        0 0 20px rgba(0, 217, 255, 0.8),
        0 0 40px rgba(189, 107, 255, 0.6),
        0 0 60px rgba(255, 107, 157, 0.4);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(0, 217, 255, 0.8),
            0 0 40px rgba(189, 107, 255, 0.6),
            0 0 60px rgba(255, 107, 157, 0.4);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(0, 217, 255, 1),
            0 0 60px rgba(189, 107, 255, 0.8),
            0 0 90px rgba(255, 107, 157, 0.6);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    animation: fadeInUp 1s ease 0.6s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--primary-color);
}

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

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.4),
        0 4px 20px rgba(189, 107, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 
        0 0 50px rgba(0, 217, 255, 0.8),
        0 0 70px rgba(189, 107, 255, 0.6),
        0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.6),
        0 0 60px rgba(189, 107, 255, 0.4);
    transform: translateY(-3px);
}

/* ===========================
   About Section
   =========================== */
.about {
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: var(--transition-normal);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-cyan);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.6));
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(91, 159, 213, 0.3);
    position: relative;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #00D9FF,
        #BD6BFF,
        #FF6B9D,
        #FFB627,
        #00FF94,
        #00D9FF
    );
    opacity: 0.6;
    animation: rotate 6s linear infinite;
    filter: blur(20px);
}

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

.image-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-placeholder svg {
    width: 70%;
    height: 70%;
    color: var(--primary-color);
    opacity: 0.3;
}

/* ===========================
   Projects Section
   =========================== */
.projects {
    background: var(--bg-darker);
    min-height: 80vh;
}

.projects-header {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.projects-intro {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    overflow: hidden;
    position: relative;
    max-height: calc(2 * (300px + var(--spacing-md)));
}

.projects-grid.expanded {
    max-height: none;
}

.projects-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-darker) 100%);
    pointer-events: none;
    z-index: 10;
}

.projects-grid.expanded::after {
    display: none;
}

.project-card.hidden {
    visibility: hidden;
}

.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.project-card {
    background: var(--gradient-card);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.4),
        0 0 50px rgba(189, 107, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-image {
    width: 100%;
    height: 250px;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
    opacity: 0.3;
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-meta {
    margin-bottom: 0.5rem;
}

.project-year {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.project-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
    transition: var(--transition-fast);
}

.project-tag:hover {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.project-link:hover {
    color: var(--text-light);
    gap: 0.7rem;
}

/* ===========================
   Skills Section
   =========================== */
.skills {
    background: var(--bg-dark);
}

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

.skill-category {
    background: var(--gradient-card);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
}

.skill-category:nth-child(1):hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-5px);
}

.skill-category:nth-child(2):hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow-pink);
    transform: translateY(-5px);
}

.skill-category:nth-child(3):hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.skill-category:nth-child(1) h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-category:nth-child(2) h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-category:nth-child(3) h3 {
    background: var(--gradient-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-darker);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* ===========================
   Contact Section
   =========================== */
.contact {
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--gradient-card);
    border: 1px solid rgba(91, 159, 213, 0.25);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 
        0 0 25px rgba(0, 217, 255, 0.5),
        0 4px 15px rgba(189, 107, 255, 0.3);
}

.contact-method:nth-child(1) .contact-icon {
    background: var(--gradient-primary);
}

.contact-method:nth-child(2) .contact-icon {
    background: var(--gradient-secondary);
}

.contact-method:nth-child(3) .contact-icon {
    background: var(--gradient-tertiary);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.contact-details p {
    font-size: 1rem;
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid rgba(91, 159, 213, 0.25);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(91, 159, 213, 0.3);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

/* ===========================
   About Page
   =========================== */
.about-page {
    min-height: 100vh;
    background: var(--bg-darker);
}

.about-page .about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-text-full {
    max-width: 800px;
}

.about-text-full h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text-full h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text-full p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.interests-list {
    list-style: none;
    margin: 1.5rem 0;
}

.interests-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.interests-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.interests-list strong {
    color: var(--text-light);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.about-image-sidebar {
    position: sticky;
    top: 120px;
}

.quick-facts {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 16px;
}

.quick-facts h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quick-facts ul {
    list-style: none;
}

.quick-facts li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-facts li:last-child {
    border-bottom: none;
}

.cta-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gradient-card);
    border: 2px solid transparent;
    border-radius: 16px;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.cta-section h3 {
    margin-top: 0;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        gap: 2rem;
        transition: var(--transition-normal);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero {
        padding: 100px 0 var(--spacing-lg);
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-text {
        text-align: center;
        margin-left: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-page .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image-sidebar {
        position: relative;
        top: 0;
    }
    
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ===========================
   Animations & Effects
   =========================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: var(--bg-darker);
}