/* ========================================
   Portfolio Website - Prithvi HN
   Modern Dark Theme with Glassmorphism
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #0d1225;
    --bg-tertiary: #111830;
    --bg-card: rgba(17, 24, 48, 0.7);

    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #5a6480;

    --accent-primary: #64ffda;
    --accent-secondary: #bb86fc;
    --accent-tertiary: #f57c00;
    --accent-gradient: linear-gradient(135deg, #64ffda 0%, #bb86fc 100%);

    --glass-bg: rgba(17, 24, 48, 0.6);
    --glass-border: rgba(100, 255, 218, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(100, 255, 218, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ========== Loader ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-code {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    animation: pulse 1.5s ease infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: load 1.5s ease forwards;
}

.loader-text {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@keyframes load {
    to {
        width: 100%;
    }
}

@keyframes pulse {

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

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* ========== Cursor Effect ========== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

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

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.logo-bracket {
    color: var(--accent-primary);
}

.logo-slash {
    color: var(--accent-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--glass-border);
    color: var(--text-secondary);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 60px;
    overflow: visible;
}

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

.hero-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 1600px;
    padding: 0 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    flex: 1;
}

/* Hero Photo with Orbital Animation */
.hero-photo-orbit {
    flex-shrink: 0;
    position: relative;
    width: 700px;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orbit-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.35;
}

.orbit-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: orbit-rotate 32s ease-in-out infinite;
}

.orbit-icon {
    position: absolute;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle)) translateX(350px) rotate(calc(-1 * var(--angle)));
    margin: -32.5px 0 0 -32.5px;
}

.orbit-icon i {
    opacity: 1;
}

.orbit-icon:nth-child(1) i {
    color: #3776ab;
}

.orbit-icon:nth-child(2) i {
    color: #61dafb;
}


.orbit-icon:nth-child(3) i {
    color: #2496ed;
}

.orbit-icon:nth-child(4) i {
    color: #ff9900;
}

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

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

.hero-photo {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 420px;
    max-height: 80vh;
    overflow: visible;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radial gradient glow behind the photo */
.hero-photo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center,
            rgba(100, 255, 218, 0.1) 0%,
            rgba(100, 255, 218, 0.05) 30%,
            rgba(0, 150, 136, 0.03) 50%,
            transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    pointer-events: none;
}

.hero-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    /* Cool down highlights and reduce warm tones */
    filter:
        drop-shadow(0 0 60px rgba(100, 255, 218, 0.15)) drop-shadow(0 0 30px rgba(0, 150, 136, 0.08)) contrast(1.02) saturate(0.95) brightness(0.98);
    /* Soft feathered edge mask for natural blending */
    -webkit-mask-image: radial-gradient(ellipse 95% 95% at center,
            black 70%,
            rgba(0, 0, 0, 0.9) 80%,
            rgba(0, 0, 0, 0.6) 90%,
            transparent 100%);
    mask-image: radial-gradient(ellipse 95% 95% at center,
            black 70%,
            rgba(0, 0, 0, 0.9) 80%,
            rgba(0, 0, 0, 0.6) 90%,
            transparent 100%);
}

/* ========================================
   HERO SECTION - COMPREHENSIVE RESPONSIVE
   ======================================== */

/* Extra Large Screens (1920px+) */
@media (min-width: 1920px) {
    .hero-wrapper {
        max-width: 1800px;
        padding: 0 4rem;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-photo-orbit {
        width: 750px;
        height: 750px;
    }

    .orbit-icon {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
        transform: rotate(var(--angle)) translateX(375px) rotate(calc(-1 * var(--angle)));
        margin: -36px 0 0 -36px;
    }

    .hero-photo {
        max-width: 520px;
        max-height: 82vh;
    }

    .hero-photo img {
        max-height: 80vh;
    }

    .greeting-hi {
        font-size: 1.2rem;
    }

    .hero-name {
        font-size: 5rem;
    }

    .hero-roles {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero-wrapper {
        max-width: 1600px;
        padding: 0 3rem;
    }

    .hero-photo-orbit {
        width: 700px;
        height: 700px;
    }

    .orbit-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        transform: rotate(var(--angle)) translateX(350px) rotate(calc(-1 * var(--angle)));
        margin: -32.5px 0 0 -32.5px;
    }

    .hero-photo {
        max-width: 480px;
        max-height: 80vh;
    }

    .hero-photo img {
        max-height: 78vh;
    }

    .hero-name {
        font-size: 4.5rem;
    }

    .hero-roles {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-wrapper {
        max-width: 1400px;
        gap: 2rem;
        padding: 0 2rem;
    }

    .hero-content {
        max-width: 550px;
    }

    .hero-photo-orbit {
        width: 600px;
        height: 600px;
    }

    .orbit-icon {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
        transform: rotate(var(--angle)) translateX(300px) rotate(calc(-1 * var(--angle)));
        margin: -29px 0 0 -29px;
    }

    .hero-photo {
        max-width: 400px;
        max-height: 75vh;
    }

    .hero-photo img {
        max-height: 73vh;
    }

    .greeting-hi {
        font-size: 1rem;
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .hero-roles {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.05rem;
        max-width: 500px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        padding: 100px 20px 50px;
    }

    .hero-wrapper {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .hero-content {
        max-width: 420px;
        flex: 1;
    }

    .hero-photo-orbit {
        width: 480px;
        height: 480px;
    }

    .orbit-ring {
        border-width: 2px;
    }

    .orbit-icons {
        animation-duration: 28s;
    }

    .orbit-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
        transform: rotate(var(--angle)) translateX(240px) rotate(calc(-1 * var(--angle)));
        margin: -24px 0 0 -24px;
    }

    .hero-photo {
        max-width: 320px;
        max-height: 65vh;
    }

    .hero-photo img {
        max-height: 63vh;
    }

    .greeting-hi {
        font-size: 0.95rem;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .hero-roles {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 380px;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-socials {
        gap: 1rem;
    }

    .hero-socials a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Mobile Large (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .hero {
        padding: 90px 20px 40px;
        min-height: auto;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 2.5rem;
        padding: 0;
        justify-content: center;
    }

    .hero-content {
        order: 1;
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .hero-photo-orbit {
        order: 2;
        width: 380px;
        height: 380px;
    }

    .orbit-icons {
        animation-duration: 30s;
    }

    .orbit-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        transform: rotate(var(--angle)) translateX(190px) rotate(calc(-1 * var(--angle)));
        margin: -21px 0 0 -21px;
    }

    .hero-photo {
        max-width: 260px;
        max-height: 55vh;
    }

    .hero-photo img {
        max-height: 53vh;
    }

    .greeting-hi {
        font-size: 0.9rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-roles {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0 auto 1.5rem;
        max-width: 450px;
        padding: 0 10px;
    }

    .hero-cta {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .hero-socials {
        gap: 1rem;
    }

    .hero-socials a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .hero-scroll {
        display: none;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    .hero {
        padding: 80px 15px 30px;
        min-height: auto;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        justify-content: center;
    }

    .hero-content {
        order: 1;
        max-width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .hero-photo-orbit {
        order: 2;
        width: 320px;
        height: 320px;
    }

    .orbit-ring {
        border-width: 1.5px;
    }

    .orbit-icons {
        animation-duration: 32s;
        will-change: transform;
    }

    .orbit-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle)));
        margin: -18px 0 0 -18px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }

    .hero-photo {
        max-width: 220px;
        max-height: 50vh;
    }

    .hero-photo img {
        max-height: 48vh;
    }

    .greeting-hi {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .hero-name {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-roles {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        min-height: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0 auto 1.25rem;
        max-width: 100%;
        padding: 0 5px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .hero-socials {
        gap: 0.875rem;
    }

    .hero-socials a {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .hero-scroll {
        display: none;
    }
}

/* Extra Small Mobile (under 360px) */
@media (max-width: 359px) {
    .hero {
        padding: 70px 10px 25px;
    }

    .hero-photo-orbit {
        width: 280px;
        height: 280px;
    }

    .orbit-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        transform: rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle)));
        margin: -24px 0 0 -24px;
    }

    .hero-photo {
        max-width: 180px;
        max-height: 45vh;
    }

    .hero-photo img {
        max-height: 43vh;
    }

    .hero-name {
        font-size: 1.75rem;
    }

    .hero-roles {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-cta {
        padding: 0 10px;
    }

    .btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767px) {
    .orbit-icons {
        will-change: transform;
    }

    .particles {
        opacity: 0.5;
    }

    .cursor-glow {
        display: none;
    }
}

.hero-greeting {
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease forwards;
}

.greeting-hi {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-roles {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.typed-cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.hero-socials a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.hero-socials a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease 1.2s forwards;
    opacity: 0;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--accent-primary);
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

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

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

/* ========== Section Styles ========== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
    max-width: 300px;
}

/* ========== Glass Card ========== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ========== About Section ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text .highlight {
    color: var(--accent-primary);
    font-weight: 500;
}

.about-education {
    margin-top: 2rem;
}

.education-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
}

.education-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.education-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.education-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.education-card .cgpa {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
}

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

.stat-card {
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(187, 134, 252, 0.1));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== Skills Section ========== */
.skills-filter,
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.skill-card.hidden {
    display: none;
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(187, 134, 252, 0.15));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.skill-icon.python {
    color: #3776ab;
}

.skill-icon.cpp {
    color: #00599c;
}

.skill-icon.javascript {
    color: #f7df1e;
}

.skill-icon.html {
    color: #e34f26;
}

.skill-icon.react {
    color: #61dafb;
}

.skill-icon.node {
    color: #339933;
}

.skill-icon.tensorflow {
    color: #ff6f00;
}

.skill-icon.pytorch {
    color: #ee4c2c;
}

.skill-icon.docker {
    color: #2496ed;
}

.skill-icon.kubernetes {
    color: #326ce5;
}

.skill-icon.aws {
    color: #ff9900;
}

.skill-icon.git {
    color: #f05032;
}

.skill-icon.mongodb {
    color: #47a248;
}

.skill-icon.mysql {
    color: #4479a1;
}

.skill-icon.postgres {
    color: #4169e1;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ========== Projects Section ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.project-card.hidden {
    display: none;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-icon-large {
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-icon-large {
    transform: scale(1.2);
    opacity: 0.8;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-normal);
}

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

.project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

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

.project-features {
    list-style: none;
    margin-bottom: 1rem;
}

.project-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-features i {
    color: var(--accent-primary);
    font-size: 0.75rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

.projects-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========== Experience Section ========== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
    z-index: 1;
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-date,
.timeline-location {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    margin-bottom: 1rem;
}

.timeline-details li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

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

.timeline-details .highlight {
    color: var(--accent-primary);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ========== Achievements Section ========== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    padding: 2rem;
    text-align: center;
    cursor: pointer;
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.achievement-icon.cert {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(100, 255, 218, 0.05));
    color: var(--accent-primary);
}

.achievement-icon.opensource {
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.2), rgba(187, 134, 252, 0.05));
    color: var(--accent-secondary);
}

.achievement-icon.hackathon {
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.2), rgba(245, 124, 0, 0.05));
    color: var(--accent-tertiary);
}

.achievement-icon.coding {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(187, 134, 252, 0.2));
    color: var(--accent-primary);
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.achievement-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

/* ========== Contact Section ========== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(187, 134, 252, 0.1));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-value:hover {
    color: var(--accent-primary);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.copy-btn.copied {
    color: var(--accent-primary);
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

.contact-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

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

.form-error {
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff6b6b;
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-bottom i {
    color: #ff6b6b;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
}

/* ========== Animations ========== */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-marker {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

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

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

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

    .timeline-content {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ========== Print Styles ========== */
@media print {

    .navbar,
    .particles,
    .back-to-top,
    .loader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}