:root {
    /* Premium HSL Color Palette - Vibrant yet sophisticated */
    --hue-red: 0;
    --hue-blue: 210;
    --hue-green: 140;
    --hue-purple: 270;
    --hue-cyan: 180;

    --neon-primary: hsl(var(--hue-red), 100%, 56%);
    --neon-secondary: hsl(var(--hue-red), 100%, 65%);
    --neon-tertiary: hsl(var(--hue-red), 100%, 75%);
    --neon-text: #ffffff;

    --text-primary: #ffffff;
    --text-secondary: hsla(0, 0%, 100%, 0.85);
    --text-muted: hsla(0, 0%, 100%, 0.65);

    --bg-darker: hsl(0, 10%, 4%);
    --bg-dark: hsl(0, 10%, 6%);
    --bg-card: hsla(0, 0%, 100%, 0.03);

    --glass-bg: hsla(0, 0%, 100%, 0.03);
    --glass-border: hsla(0, 0%, 100%, 0.1);
    --glass-shadow: 0 8px 32px 0 hsla(0, 0%, 0%, 0.4);

    --circuit-color: hsla(var(--hue-red), 100%, 56%, 0.1);

    --bg-gradient: radial-gradient(circle at top left, var(--bg-dark), var(--bg-darker));

    /* Layout Constants */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-width: 1300px;
    --border-radius: 24px;
    --border-radius-lg: 32px;

    /* Transitions */
    --transition-premium: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-primary), var(--neon-secondary));
    border-radius: 10px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-secondary);
}

/* Enhanced Theme Variations */
.theme-blue {
    --neon-primary: hsl(var(--hue-blue), 100%, 56%);
    --neon-secondary: hsl(var(--hue-blue), 100%, 65%);
    --neon-tertiary: hsl(var(--hue-blue), 100%, 75%);
    --bg-dark: hsl(var(--hue-blue), 20%, 6%);
    --bg-darker: hsl(var(--hue-blue), 20%, 4%);
    --circuit-color: hsla(var(--hue-blue), 100%, 56%, 0.1);
}

.theme-green {
    --neon-primary: hsl(var(--hue-green), 100%, 56%);
    --neon-secondary: hsl(var(--hue-green), 100%, 65%);
    --neon-tertiary: hsl(var(--hue-green), 100%, 75%);
    --bg-dark: hsl(var(--hue-green), 20%, 6%);
    --bg-darker: hsl(var(--hue-green), 20%, 4%);
    --circuit-color: hsla(var(--hue-green), 100%, 56%, 0.1);
}

.theme-purple {
    --neon-primary: hsl(var(--hue-purple), 100%, 56%);
    --neon-secondary: hsl(var(--hue-purple), 100%, 65%);
    --neon-tertiary: hsl(var(--hue-purple), 100%, 75%);
    --bg-dark: hsl(var(--hue-purple), 20%, 6%);
    --bg-darker: hsl(var(--hue-purple), 20%, 4%);
    --circuit-color: hsla(var(--hue-purple), 100%, 56%, 0.1);
}

.theme-cyan {
    --neon-primary: hsl(var(--hue-cyan), 100%, 56%);
    --neon-secondary: hsl(var(--hue-cyan), 100%, 65%);
    --neon-tertiary: hsl(var(--hue-cyan), 100%, 75%);
    --bg-dark: hsl(var(--hue-cyan), 20%, 6%);
    --bg-darker: hsl(var(--hue-cyan), 20%, 4%);
    --circuit-color: hsla(var(--hue-cyan), 100%, 56%, 0.1);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.theme-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.theme-btn.active::after {
    border-color: rgba(255, 255, 255, 0.9);
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.red {
    background: linear-gradient(45deg, #ff1f1f, #ff4444);
}

.theme-btn.blue {
    background: linear-gradient(45deg, #1f90ff, #44b4ff);
}

.theme-btn.green {
    background: linear-gradient(45deg, #1fff1f, #44ff44);
}

.theme-btn.purple {
    background: linear-gradient(45deg, #9f1fff, #b444ff);
}

.theme-btn.cyan {
    background: linear-gradient(45deg, #1ffff1, #44ffb4);
}

/* Responsive Theme Switcher */
@media (max-width: 768px) {
    .theme-switcher {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        border-radius: 50px;
        padding: 10px 15px;
        gap: 8px;
    }

    .theme-btn {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .theme-switcher {
        bottom: 15px;
        padding: 8px 12px;
        gap: 6px;
    }

    .theme-btn {
        width: 25px;
        height: 25px;
    }
}

/* Profile Image Styles */
.profile-container {
    flex-shrink: 0;
    position: relative;
    padding: 30px;
    animation: float 6s ease-in-out infinite;
}

.profile-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    animation: borderRotate 10s linear infinite;
}

.profile-container::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    animation: borderRotate 15s linear infinite reverse;
}

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

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

.profile-container .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.profile-container .corner-tl {
    top: 15px;
    left: 15px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 10px 0 0 0;
}

.profile-container .corner-tr {
    top: 15px;
    right: 15px;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 10px 0 0;
}

.profile-container .corner-bl {
    bottom: 15px;
    left: 15px;
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 0 10px;
}

.profile-container .corner-br {
    bottom: 15px;
    right: 15px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 10px 0;
}

.profile-wrapper {
    width: clamp(200px, 40vw, 300px);
    height: clamp(200px, 40vw, 300px);
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0.1) 55%,
            transparent 60%);
    filter: blur(10px);
    animation: shine 3s infinite;
}

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

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.1) brightness(1.1);
}

.profile-wrapper:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow:
        -10px -10px 30px rgba(255, 255, 255, 0.05),
        10px 10px 30px rgba(0, 0, 0, 0.2);
}

/* Typewriter Animation */
.typewriter {
    font-family: 'Fira Code', monospace;
    font-size: 2rem;
    color: var(--neon-secondary);
    margin: 1.5rem 0;
    position: relative;
    width: max-content;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1s;
}

.typewriter::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--neon-secondary);
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(30) 1.5s forwards;
    border-right: 3px solid var(--neon-primary);
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Import additional fonts */
@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Montserrat:wght@300;400;600;700&family=Fira+Code:wght@400;500;600&display=swap');

/* Neon Heading Styles */
.glitch {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--neon-text);
    text-shadow:
        0 0 5px var(--neon-text),
        0 0 10px var(--neon-primary),
        0 0 20px var(--neon-primary),
        0 0 40px var(--neon-primary);
    animation: glowPulse 2s ease-in-out infinite alternate;
    position: relative;
}

@keyframes glowPulse {
    from {
        text-shadow:
            0 0 5px var(--neon-text),
            0 0 10px var(--neon-primary),
            0 0 20px var(--neon-primary),
            0 0 40px var(--neon-primary);
    }

    to {
        text-shadow:
            0 0 10px var(--neon-text),
            0 0 20px var(--neon-primary),
            0 0 40px var(--neon-primary),
            0 0 80px var(--neon-primary);
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-effect 3s infinite linear alternate-reverse;
    text-shadow: 2px 0 var(--neon-primary);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    animation: glitch-effect 2s infinite linear alternate-reverse;
    text-shadow: -2px 0 var(--neon-secondary);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-effect {
    0% {
        transform: none;
        opacity: 0.8;
    }

    7% {
        transform: translate(2px, 3px);
        opacity: 0.7;
    }

    10% {
        transform: none;
        opacity: 0.8;
    }

    27% {
        transform: none;
        opacity: 0.8;
    }

    30% {
        transform: translate(-5px, -2px);
        opacity: 0.6;
    }

    35% {
        transform: none;
        opacity: 0.8;
    }

    52% {
        transform: none;
        opacity: 0.8;
    }

    55% {
        transform: translate(3px, 1px);
        opacity: 0.7;
    }

    50% {
        transform: none;
        opacity: 0.8;
    }

    100% {
        transform: none;
        opacity: 0.8;
    }
}

/* Education Details Styles */
.education-details p {
    font-size: 0.95rem;
    color: var(--neon-text);
    margin: 0.7rem 0;
    padding-left: 0;
    line-height: 1.6;
}

.education-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 2rem;
    padding: var(--container-padding);
}

/* Education Section */
.education-section {
    padding: var(--section-padding) var(--container-padding);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* Experience Section */
.experience-section {
    padding: var(--section-padding) var(--container-padding);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: var(--container-padding);
}

.experience-card {
    max-width: 800px;
    width: 100%;
    background: hsla(0, 0%, 0%, 0.2) !important;
    border: 1px solid var(--neon-primary) !important;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
}

.experience-card:hover {
    background: hsla(0, 0%, 0%, 0.3) !important;
    border-color: var(--neon-secondary) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--shadow-neon) !important;
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.experience-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    /* HSBC logo usually looks better on white or light background */
    padding: 5px;
}

.experience-title-group h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-secondary);
    margin-bottom: 0.2rem;
}

.experience-header .institution {
    font-size: 1.1rem;
    color: var(--neon-text);
    opacity: 0.9;
    margin: 0;
}

/* Institution moved to header title group */

.experience-body .duration {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.experience-details p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0.8rem 0;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.experience-details p::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-primary);
}

.education-card,
.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.education-card:hover,
.achievement-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--neon-primary-rgb), 0.2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: hsla(0, 0%, 100%, 0.05);
    border-color: var(--neon-secondary);
    box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.6), 0 0 20px hsla(var(--hue-red), 100%, 56%, 0.1);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.tool-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tool-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-primary);
    box-shadow: 0 0 20px var(--neon-primary);
}

.tool-icon {
    font-size: 3rem;
    color: var(--neon-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tool-item:hover .tool-icon {
    transform: scale(1.1);
    color: var(--neon-secondary);
}

.tool-name {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: var(--neon-text);
}

.education-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.education-header i {
    font-size: 2rem;
    color: var(--neon-primary);
}

.education-header h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-text);
}

.education-body p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.institution {
    font-weight: 600;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Coursework Section */
.coursework-section {
    padding: var(--section-padding) var(--container-padding);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.coursework-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.coursework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.course-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-primary);
}

.course-year {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--neon-primary);
}

.course-list {
    list-style: none;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1rem 0;
    transition: all 0.3s ease;
}

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

.course-item i {
    color: var(--neon-primary);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: clamp(0.75rem, 2vw, 1rem) var(--container-padding);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 0.5rem;
    letter-spacing: clamp(1px, 0.5vw, 3px);
}

.nav-logo::before {
    content: '<DEV/>';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    filter: blur(8px);
    opacity: 0.7;
    color: var(--neon-primary);
    z-index: -1;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--neon-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1001;
    /* Above the overlay */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu:hover {
    color: var(--neon-primary);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--neon-primary-rgb), 0.3);
}

.mobile-menu.active {
    background: var(--neon-primary);
    color: white;
    box-shadow: 0 0 25px var(--neon-primary);
    transform: rotate(90deg);
}

.mobile-menu:active {
    transform: scale(0.9);
}

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

.nav-item {
    color: var(--neon-text);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:hover {
    color: var(--neon-primary);
}

/* Enhanced Mobile Navigation */
@media (max-width: 968px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }

    .nav-item {
        font-size: 1.4rem;
        font-weight: 500;
        padding: 1.2rem 2.5rem;
        width: 90%;
        max-width: 400px;
        text-align: center;
        margin: 0.6rem 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        opacity: 0;
        transform: translateY(20px);
    }

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

    /* Staggered animation for nav items */
    .nav-links.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active .nav-item:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active .nav-item:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active .nav-item:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active .nav-item:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active .nav-item:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links.active .nav-item:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--neon-primary);
        color: var(--neon-primary);
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(var(--neon-primary-rgb), 0.2);
    }

    .nav-item::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-item {
        width: 90%;
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) var(--container-padding);
    position: relative;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 4rem);
    max-width: 1400px;
    width: 100%;
    padding: 0 var(--container-padding);
}

.intro-text {
    flex-grow: 1;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.3);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glitch {
    font-family: 'Syncopate', sans-serif;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    position: relative;
    color: var(--neon-text);
    white-space: nowrap;
    overflow: visible;
    word-break: keep-all;
}

.typewriter {
    font-family: 'Fira Code', monospace;
    font-size: var(--font-size-2xl);
    color: var(--neon-secondary);
    margin: clamp(1rem, 3vw, 1.5rem) 0;
    width: max-content;
    max-width: 100%;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1s;
    white-space: nowrap;
    overflow: visible;
    word-break: keep-all;
}

.typewriter::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--neon-secondary);
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(30) 1.5s forwards;
    border-right: 3px solid var(--neon-primary);
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tagline {
    font-family: 'Quicksand', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 300;
    letter-spacing: clamp(0.5px, 0.2vw, 1.5px);
    margin: clamp(1rem, 3vw, 1.5rem) 0;
    color: var(--neon-secondary);
}

.social-links {
    margin-top: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    color: var(--neon-text);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

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

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .social-icon:hover {
        transform: none;
    }

    .social-icon:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.15);
    }
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: var(--bg-darker);
}

.section-title {
    font-family: 'Syncopate', sans-serif;
    font-size: var(--font-size-3xl);
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    color: var(--neon-primary);
    text-shadow:
        0 0 10px var(--neon-primary),
        0 0 20px var(--neon-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--neon-primary) 50%,
            transparent 100%);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary);
}

.timeline-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--neon-primary);
    box-shadow: 0 0 20px rgba(255, 31, 31, 0.1);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 31, 31, 0.2);
}

/* Projects Section */
.projects-section {
    padding: var(--section-padding) var(--container-padding);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1400px;
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: 0 var(--container-padding);
}

.project-card {
    position: relative;
    height: clamp(300px, 50vw, 350px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-primary) rgba(0, 0, 0, 0.3);
}

.project-content::-webkit-scrollbar {
    width: 6px;
}

.project-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.project-content::-webkit-scrollbar-thumb {
    background: var(--neon-primary);
    border-radius: 3px;
}

.project-card:hover .project-content {
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: clamp(0.75rem, 2vw, 1rem) 0;
    z-index: 1;
    line-height: 1.3;
}

.project-description {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.25rem, 1vw, 0.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.tech-tag {
    font-size: var(--font-size-xs);
    padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.5rem, 2vw, 0.75rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(4px, 1vw, 8px);
    color: var(--neon-text);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--neon-primary);
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    color: var(--neon-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.project-link:hover {
    color: var(--neon-primary);
    border-color: var(--neon-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* Enhanced Global Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: var(--neon-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 31, 31, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 31, 31, 0.05) 0%, transparent 70%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }

    33% {
        transform: translateY(-20px) rotate(120deg);
        opacity: 0.8;
    }

    66% {
        transform: translateY(10px) rotate(240deg);
        opacity: 0.6;
    }
}

/* Floating Geometric Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: floatShapes 15s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    animation-delay: -2s;
}

.floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -7s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 80%;
    border-radius: 50%;
    animation-delay: -12s;
}

@keyframes floatShapes {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Enhanced Tool Items with 3D Effects */
.tools-section {
    padding: var(--section-padding) var(--container-padding);
    background: var(--bg-gradient);
    position: relative;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.tool-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.8s ease;
}

.tool-item:hover::before {
    left: 100%;
}

.tool-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-primary);
    box-shadow:
        var(--shadow-neon),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--neon-primary);
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 0 10px var(--neon-primary));
}

.tool-item:hover .tool-icon {
    transform: scale(1.2) rotateY(360deg);
    color: var(--neon-secondary);
    filter: drop-shadow(0 0 20px var(--neon-secondary));
}

.tool-name {
    font-family: 'Syncopate', sans-serif;
    font-size: var(--font-size-lg);
    color: var(--neon-text);
    margin: 0;
    transition: all var(--transition-normal);
}

.tool-item:hover .tool-name {
    color: var(--neon-primary);
    text-shadow: 0 0 10px var(--neon-primary);
}

/* Enhanced Footer with Gradient Background */
.footer {
    background: linear-gradient(135deg,
            var(--bg-darker) 0%,
            var(--bg-dark) 50%,
            var(--bg-darker) 100%);
    padding: var(--section-padding) var(--container-padding) 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--neon-primary) 25%,
            var(--neon-secondary) 50%,
            var(--neon-primary) 75%,
            transparent 100%);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-left h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: var(--font-size-xl);
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-style: italic;
}

.footer-socials {
    text-align: center;
}

.footer-socials h4 {
    font-family: 'Syncopate', sans-serif;
    color: var(--neon-primary);
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
}

.footer-socials a {
    color: var(--neon-text);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: all var(--transition-normal);
    display: inline-block;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.footer-socials a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.footer-socials a:hover::before {
    left: 100%;
}

.footer-socials a:hover {
    color: var(--neon-primary);
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: var(--neon-primary);
    box-shadow:
        var(--shadow-neon),
        0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Individual social platform colors on hover */
.footer-socials a[href*="linkedin"]:hover {
    color: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.4);
}

.footer-socials a[href*="github"]:hover {
    color: #333;
    border-color: #333;
    box-shadow: 0 0 20px rgba(51, 51, 51, 0.4);
}

.footer-socials a[href*="mailto"]:hover {
    color: #ea4335;
    border-color: #ea4335;
    box-shadow: 0 0 20px rgba(234, 67, 53, 0.4);
}

.footer-socials a[href*="youtube"]:hover {
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Advanced Scroll Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Reveal Classes */
.scroll-reveal-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.scroll-reveal-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.scroll-reveal-up {
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
}

.scroll-reveal-scale {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
}

/* Loading Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    color: var(--neon-text);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s ease;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow:
        var(--shadow-neon-strong),
        0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-secondary), var(--neon-tertiary));
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .glitch {
        white-space: normal;
        word-break: break-word;
    }

    .typewriter {
        white-space: normal;
        word-break: break-word;
    }

    .floating-shapes {
        display: none;
    }

    .tool-item:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-socials a {
        margin: 0 0.5rem;
        font-size: 1.25rem;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shapes,
    body::before {
        display: none;
    }
}

/* Print Styles */
@media print {

    .theme-switcher,
    .floating-shapes,
    .navbar {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .section-title {
        color: black !important;
        text-shadow: none !important;
    }
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    color: var(--neon-primary);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    text-shadow: 0 0 10px var(--neon-primary);
    transform: translateY(-2px);
}

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

/* Developer Tools Section */
.tools-section {
    padding: var(--section-padding) var(--container-padding);
    background: var(--bg-dark);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: clamp(2rem, 5vw, 3rem) auto;
}

.tool-item {
    text-align: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--neon-primary);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 31, 31, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.tool-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--neon-primary);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.tool-name {
    font-family: 'Fira Code', monospace;
    color: var(--neon-text);
    font-size: var(--font-size-base);
    text-align: center;
    line-height: 1.3;
}

/* Touch device improvements for tools */
@media (hover: none) and (pointer: coarse) {
    .tool-item:hover {
        transform: none;
    }

    .tool-item:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.12);
    }
}

/* Skills Section */
.skills-section {
    padding: 6rem 2rem;
    background: var(--bg-darker);
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary);
    animation: fillBar 2s ease-out;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: var(--bg-dark);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-primary);
    border-radius: 5px;
    color: var(--neon-text);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 31, 31, 0.2);
}

.submit-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--neon-primary);
    color: var(--neon-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--neon-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-primary);
}

/* Coursework Section */
.coursework-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.coursework-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 31, 31, 0.1) 0%, transparent 60%);
    animation: pulse 4s infinite;
}

.coursework-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.course-card {
    background: rgba(255, 31, 31, 0.05);
    border: 1px solid var(--neon-primary);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 31, 31, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.course-card:hover::before {
    transform: translateX(100%);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 31, 31, 0.2);
}

.course-year {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-primary);
}

.course-list {
    list-style: none;
}

.course-item {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.course-item::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-primary);
    text-shadow: 0 0 5px var(--neon-primary);
}

/* Footer */
.footer {
    padding: 2rem;
    background: var(--bg-darker);
    text-align: center;
}

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

.footer-links a {
    color: var(--neon-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-primary);
    text-shadow: 0 0 10px var(--neon-primary);
}

/* Course Content Styles */
.course-content {
    flex: 1;
}

.course-content h4 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.education-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.education-details p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1rem;
    position: relative;
}

.education-details p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--neon-primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.duration,
.grade {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Fotter new code  */
.footer {
    background-color: #111;
    color: #eee;
    padding: 40px 20px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-left,
.footer-links,
.footer-socials {
    flex: 1 1 250px;
    min-width: 200px;
}

.footer-left h3 {
    margin-bottom: 10px;
    color: #00bcd4;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 6px 0;
}

.footer-links a,
.footer-socials a {
    color: #eee;
    text-decoration: none;
}

.footer-socials a {
    margin-right: 10px;
    font-size: 22px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #00bcd4;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #aaa;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-left,
    .footer-links,
    .footer-socials {
        flex: 1 1 100%;
    }

    .footer-socials a {
        margin: 0 8px;
    }
}



/* Comprehensive Responsive Design */

/* Large laptops and desktops */
@media (max-width: 1440px) and (min-width: 1025px) {
    .glitch {
        font-size: clamp(3rem, 5vw, 4.5rem);
        white-space: normal;
        word-break: keep-all;
        line-height: 1.1;
    }

    .intro-text {
        max-width: 600px;
        width: 100%;
    }
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .home-content {
        gap: clamp(2rem, 4vw, 3rem);
    }

    .intro-text {
        max-width: 100%;
        width: 100%;
    }

    .glitch {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
        white-space: normal;
        word-break: keep-all;
        text-align: center;
        line-height: 1.1;
    }

    .typewriter {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        text-align: center;
        white-space: normal;
        word-break: keep-all;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    }
}

/* Tablets */
@media (max-width: 768px) {
    .navbar {
        padding: clamp(0.75rem, 2vw, 1rem);
    }

    .home-content {
        flex-direction: column;
        text-align: center;
        gap: clamp(2rem, 5vw, 3rem);
        padding: 0 1rem;
    }

    .intro-text {
        max-width: 100%;
        order: 2;
        width: 100%;
        box-sizing: border-box;
        padding: clamp(1.5rem, 4vw, 2.5rem);
    }

    .profile-container {
        order: 1;
    }

    .glitch {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        text-align: center;
        width: 100%;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.1;
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
    }

    .typewriter {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        text-align: center;
        width: 100%;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.2;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: clamp(1.5rem, 4vw, 2rem);
    }

    .education-container {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
        gap: clamp(1rem, 3vw, 1.5rem);
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --section-padding: clamp(40px, 10vw, 60px);
        --container-padding: 1rem;
        --font-size-4xl: clamp(1.8rem, 8vw, 2.5rem);
        --font-size-2xl: clamp(1.2rem, 5vw, 1.6rem);
    }

    .home-section {
        min-height: 100vh;
        padding-top: 80px;
    }

    .intro-text {
        padding: clamp(1.5rem, 4vw, 2rem);
        width: 100%;
        max-width: 100%;
    }

    .glitch {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: normal;
        text-align: center;
        line-height: 1.1;
        hyphens: none;
    }

    .typewriter {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: normal;
        text-align: center;
        line-height: 1.3;
        width: 100%;
        max-width: 100%;
    }

    .typewriter::before {
        white-space: normal;
        word-break: keep-all;
        text-align: center;
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        height: clamp(280px, 60vw, 320px);
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .tool-item {
        min-height: 100px;
        padding: 1rem 0.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        min-width: 40px;
        min-height: 40px;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    :root {
        --section-padding: 40px 1rem;
        --container-padding: 0.75rem;
    }

    .glitch {
        font-size: 1.65rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.2;
    }

    .typewriter {
        font-size: 1rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .experience-card,
    .education-card,
    .achievement-card {
        padding: 1.25rem !important;
    }

    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .experience-logo {
        width: 50px;
        height: 50px;
    }

    .nav-item {
        width: 95%;
        padding: 0.8rem;
        font-size: 1rem;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

p {
    font-family: 'Quicksand', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.8;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--neon-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Advanced Responsive Utilities */

/* Container utility classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Responsive spacing utilities */
.spacing-xs {
    margin: clamp(0.25rem, 1vw, 0.5rem);
}

.spacing-sm {
    margin: clamp(0.5rem, 2vw, 1rem);
}

.spacing-md {
    margin: clamp(1rem, 3vw, 1.5rem);
}

.spacing-lg {
    margin: clamp(1.5rem, 4vw, 2rem);
}

.spacing-xl {
    margin: clamp(2rem, 5vw, 3rem);
}

/* Responsive text utilities */
.text-responsive-xs {
    font-size: var(--font-size-xs);
}

.text-responsive-sm {
    font-size: var(--font-size-sm);
}

.text-responsive-base {
    font-size: var(--font-size-base);
}

.text-responsive-lg {
    font-size: var(--font-size-lg);
}

.text-responsive-xl {
    font-size: var(--font-size-xl);
}

/* Responsive visibility utilities */
.hidden-mobile {
    display: block;
}

.hidden-tablet {
    display: block;
}

.hidden-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }

    .hidden-tablet {
        display: block;
    }

    .hidden-desktop {
        display: block;
    }
}

@media (max-width: 480px) {
    .hidden-mobile {
        display: none;
    }

    .hidden-tablet {
        display: none;
    }

    .hidden-desktop {
        display: block;
    }
}

/* Responsive grid utilities */
.grid-responsive {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

/* Responsive flex utilities */
.flex-responsive {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

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

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

/* Responsive border radius */
.border-radius-responsive {
    border-radius: var(--border-radius);
}

/* Responsive padding */
.padding-responsive {
    padding: var(--container-padding);
}

.padding-responsive-lg {
    padding: clamp(2rem, 5vw, 3rem);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 31, 31, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 31, 31, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 31, 31, 0);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--neon-primary), -0.05em -0.025em 0 var(--neon-secondary);
    }

    14% {
        text-shadow: 0.05em 0 0 var(--neon-primary), -0.05em -0.025em 0 var(--neon-secondary);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 var(--neon-primary), 0.025em 0.025em 0 var(--neon-secondary);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 var(--neon-primary), 0.025em 0.025em 0 var(--neon-secondary);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 var(--neon-primary), 0.05em 0 0 var(--neon-secondary);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 var(--neon-primary), 0.05em 0 0 var(--neon-secondary);
    }

    100% {
        text-shadow: -0.025em 0 0 var(--neon-primary), -0.025em -0.025em 0 var(--neon-secondary);
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--neon-primary)
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes textGlow {
    from {
        text-shadow:
            0 0 10px var(--neon-primary),
            0 0 20px var(--neon-primary),
            0 0 30px var(--neon-primary);
    }

    to {
        text-shadow:
            0 0 20px var(--neon-primary),
            0 0 30px var(--neon-primary),
            0 0 40px var(--neon-primary),
            0 0 50px var(--neon-primary);
    }
}

@keyframes borderGlow {
    from {
        opacity: 0.5;
        filter: blur(10px);
    }

    to {
        opacity: 0.8;
        filter: blur(15px);
    }
}

/* Enhanced Touch and Mobile Interactions */

/* Improve touch targets */
@media (hover: none) and (pointer: coarse) {

    /* Project cards - show content on tap instead of hover */
    .project-card .project-content {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.85);
    }

    .project-card .project-image {
        filter: brightness(0.3);
    }

    /* Education and course cards */
    .education-card:hover,
    .course-card:hover {
        transform: none;
    }

    .education-card:active,
    .course-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08);
    }

    /* Navigation items */
    .nav-item:hover {
        transform: none;
    }

    .nav-item:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.95);
    }

    /* Profile wrapper */
    .profile-wrapper:hover {
        transform: none;
    }

    .profile-wrapper:active {
        transform: scale(0.98);
    }

    /* Course items */
    .course-item:hover {
        transform: none;
    }

    .course-item:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.98);
    }
}

/* Improve scrolling on mobile */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Better touch scrolling for project content */
    .project-content {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent zoom on input focus */
    input,
    textarea,
    select {
        font-size: 16px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .glitch::before,
    .glitch::after {
        animation: none;
    }

    .typewriter::before {
        animation: none;
        width: 100%;
        border-right: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --neon-primary: #ff0000;
        --neon-secondary: #ff6666;
        --neon-text: #ffffff;
        --bg-dark: #000000;
        --bg-darker: #000000;
    }

    .education-card,
    .course-card,
    .tool-item,
    .project-card {
        border-width: 2px;
    }
}

/* Smooth Transition for Theme Changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced Hover Effects */
.project-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--neon-primary);
}

.tool-item:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px var(--neon-primary);
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.2);
    filter: drop-shadow(0 10px 20px var(--neon-primary));
}

/* Glitch Effect Enhancement */
.glitch::before,
.glitch::after {
    animation-duration: 0.5s;
}

/* Pulse Animation */
.pulse-glow {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--neon-primary);
    }

    50% {
        box-shadow: 0 0 25px var(--neon-primary);
    }
}