@import url(https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
/* main font - Space Grotesk looks super clean */

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

/* color palette - spent way too long picking these */
:root {
    --primary: #00f0ff;    /* cyan/aqua */
    --secondary: #bf5af2;  /* purple */
    --accent: #ff006e;     /* hot pink */
    --dark: #0a0a0f;       /* almost black */
    --light: #ffffff;
}

html {
    scroll-behavior: smooth;  /* buttery smooth scrolling */
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    cursor: none;  /* using custom cursor instead */
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;  /* so clicks go through */
}

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

.cosmic-loader {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 40px;
}

.loader-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--secondary);
    animation: pulse-core 2s ease-in-out infinite;
}

@keyframes pulse-core {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid;
    border-radius: 50%;
    border-color: var(--primary) transparent var(--secondary) transparent;
    animation: spin-orbit 3s linear infinite;
}

.orbit-1 {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    animation-duration: 2s;
}

.orbit-2 {
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    animation-duration: 3s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    animation-duration: 4s;
}

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

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.loading-letter {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wave-letter 1.5s ease-in-out infinite;
}

.loading-letter:nth-child(1) { animation-delay: 0s; }
.loading-letter:nth-child(2) { animation-delay: 0.1s; }
.loading-letter:nth-child(3) { animation-delay: 0.2s; }
.loading-letter:nth-child(4) { animation-delay: 0.3s; }
.loading-letter:nth-child(5) { animation-delay: 0.4s; }
.loading-letter:nth-child(6) { animation-delay: 0.5s; }
.loading-letter:nth-child(7) { animation-delay: 0.6s; }

@keyframes wave-letter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--primary);
}

.loading-percentage {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

/* === CUSTOM CURSOR === */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;  /* inverts colors underneath */
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    box-shadow: 0 0 20px var(--primary);
    will-change: transform;
    backface-visibility: hidden;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

.cursor-hover .cursor-dot {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.2);
}

.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--secondary);
}

/* scroll indicator at the very top */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 9998;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease;
    box-shadow: 0 0 20px var(--primary);  /* glowy effect */
}

/* particle trail canvas */
.cursor-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;  /* can click through it */
    z-index: 9997;
}

/* === GALAXY CANVAS === */
.webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
    filter: blur(0px);
    transition: opacity 0.6s ease, filter 0.6s ease;
    pointer-events: all;
    outline: none;
    will-change: transform, opacity;  /* performance hint for browser */
    transform: translateZ(0);  /* hardware acceleration ftw */
    backface-visibility: hidden;
}

.webgl.dimmed {
    opacity: 0.15;
    filter: blur(2px);  /* fade out when scrolling */
}

/* content sits on top of galaxy */
.content-wrapper {
    position: relative;
    z-index: 2;
    pointer-events: none;  /* let clicks fall through to galaxy */
}

/* but these elements should be clickable */
.content-wrapper a,
.content-wrapper button,
.content-wrapper .glass-card,
.content-wrapper .skill-orb,
.content-wrapper .project-mega-card,
.content-wrapper .contact-card,
.content-wrapper .orbit-card,
.content-wrapper nav {
    pointer-events: all;
}

#hero h1, #hero .subtitle, #hero .typing-text {
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 
                 0 0 80px rgba(0, 0, 0, 0.7),
                 0 4px 30px rgba(0, 0, 0, 0.8);
}

section:not(#hero) h1, 
section:not(#hero) h2, 
section:not(#hero) h3, 
section:not(#hero) p {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: slideDown 0.8s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 1px rgba(255, 255, 255, 0.1) inset;
}

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

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

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

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

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 0 40px;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.glitch-text::before {
    content: 'UDARSH MARTHALA';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00f0ff, #bf5af2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}
.glitch-text {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(
        45deg,
        #00f0ff 0%,
        #00d4ff 20%,
        #bf5af2 40%,
        #ff006e 60%,
        #be45fb 80%,
        #00f0ff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: rainbowShift 5s ease infinite;
    letter-spacing: 0.05em;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.typing-text {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 50px;
    min-height: 60px;
    will-change: contents;
    contain: layout style;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.typing-cursor {
    color: var(--primary);
    animation: blink 0.7s infinite;
}

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

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.neon-btn {
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

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

.neon-btn:hover::before {
    width: 400px;
    height: 400px;
}

.neon-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.neon-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.8);
}

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

.neon-btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: scrollDown 2s ease-in-out infinite;
}

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

@keyframes scrollDown {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

section {
    min-height: 100vh;
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    margin-bottom: 80px;
}

.glass-card {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
    background: rgba(10, 10, 15, 0.9);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.3),
                0 0 80px rgba(0, 240, 255, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

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

.about-text p {
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    animation: float-card 3s ease-in-out infinite;
    cursor: none;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 1s; }
.stat-card:nth-child(4) { animation-delay: 1.5s; }

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

.stat-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.5);
    animation-play-state: paused;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
}

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

.skill-card-modern {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.skill-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s;
}

.skill-card-modern:hover::before {
    left: 100%;
}

.skill-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.3),
                0 0 80px rgba(0, 240, 255, 0.2);
}

.skill-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.skill-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(191, 90, 242, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.skill-icon-modern svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.skill-card-modern:hover .skill-icon-modern {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(191, 90, 242, 0.3));
    transform: scale(1.1) rotate(5deg);
}

.skill-progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-ring {
    transform: rotate(-90deg);
    transition: all 0.4s;
}

.progress-ring-circle-progress {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: fillProgress 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fillProgress {
    to {
        stroke-dashoffset: var(--offset);
    }
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.skill-card-modern h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.skill-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tech-list span {
    padding: 6px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.skill-card-modern:hover .skill-tech-list span {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item:hover .timeline-marker {
    box-shadow: 0 0 0 6px rgba(0, 240, 255, 0.4),
                0 0 30px rgba(0, 240, 255, 0.8);
}

.timeline-item:hover .glass-card {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.3),
                0 0 60px rgba(0, 240, 255, 0.2);
}

.timeline-marker {
    position: absolute;
    left: -52px;
    top: 30px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid var(--dark);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.3),
                0 0 20px rgba(0, 240, 255, 0.6);
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.timeline-content {
    padding: 40px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.timeline-header h3 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
}

.timeline-company {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 600;
}

.timeline-period {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.timeline-highlights {
    list-style: none;
    margin: 25px 0;
}

.timeline-highlights li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.timeline-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.timeline-highlights strong {
    color: var(--primary);
    font-weight: 600;
}

/* Projects Section */
.projects-showcase {
    display: grid;
    gap: 60px;
}

.project-mega-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    padding: 60px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    cursor: none;
}

.project-mega-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.project-mega-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.project-mega-card:hover {
    background: rgba(10, 10, 15, 0.95);
    border-color: var(--primary);
    transform: scale(1.02) translateY(-10px) rotateX(2deg);
    box-shadow: 0 25px 70px rgba(0, 240, 255, 0.4),
                0 0 120px rgba(0, 240, 255, 0.15),
                inset 0 0 50px rgba(0, 240, 255, 0.05);
}

.project-mega-card:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.project-mega-card:nth-child(even) .project-visual {
    order: 2;
}

.project-visual {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(191, 90, 242, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-visual svg {
    width: 80%;
    height: 80%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
    animation: floatSVG 3s ease-in-out infinite;
}

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

.project-visual svg circle,
.project-visual svg path,
.project-visual svg rect {
    animation: pulseElement 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes pulseElement {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.project-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.project-mega-card:hover .project-visual::before {
    transform: translateX(100%);
}

.project-mega-card:hover .project-visual svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.6));
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.project-date {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.tech-badge {
    padding: 10px 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 25px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    padding: 12px 30px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

#contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* New structured layout for Let's Connect */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
}

.contact-intro {
    position: relative;
    overflow: hidden;
}

.contact-intro h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.accent-underline {
    width: 140px;
    height: 4px;
    margin: 0 auto 18px auto;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
    position: relative;
    overflow: hidden;
}

.accent-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -40%; }
    100% { left: 100%; }
}

.contact-intro p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.meta-chip {
    padding: 8px 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px) saturate(130%);
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-hero {
    margin: 60px 0;
}

.contact-main-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.contact-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(191, 90, 242, 0.1) 100%);
    opacity: 0.3;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.contact-main-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-main-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.contact-option-card {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    flex: 0 1 auto;
}

.contact-option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(191, 90, 242, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

.contact-option-card:hover::before {
    opacity: 1;
}

.contact-option-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.3),
                0 0 80px rgba(0, 240, 255, 0.2);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(191, 90, 242, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    transition: all 0.4s;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
}

.contact-option-card:hover .contact-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(191, 90, 242, 0.4));
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.6);
}

.contact-option-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.contact-option-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.contact-email {
    font-size: 1rem !important;
    word-break: break-all;
}

.contact-action {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.contact-option-card:hover .contact-action {
    opacity: 1;
    transform: translateY(0);
}

.contact-visual {
    margin: 80px 0 60px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.5),
                inset 0 -5px 20px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.4s;
}

.pulse-ring.delay-2 {
    animation-delay: 0.8s;
}

@keyframes pulse {
    0% {
        width: 120px;
        height: 120px;
        opacity: 1;
    }
    100% {
        width: 280px;
        height: 280px;
        opacity: 0;
    }
}

.orbit-card {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.orbit-card:hover {
    transform: scale(1.15) translateY(-10px);
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.5),
                0 0 100px rgba(0, 240, 255, 0.3);
}

.email-card {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitFloat1 4s ease-in-out infinite;
}

.linkedin-card {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: orbitFloat2 4s ease-in-out infinite 0.5s;
}

.github-card {
    bottom: 0;
    left: 0;
    animation: orbitFloat3 4s ease-in-out infinite 1s;
}

@keyframes orbitFloat1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

@keyframes orbitFloat2 {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(15px); }
}

@keyframes orbitFloat3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(-10px); }
}

.orbit-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
}

.orbit-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.contact-details {
    position: relative;
    min-height: 180px;
    margin-top: 40px;
}

.detail-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.detail-card.active {
    opacity: 1;
    visibility: visible;
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.4);
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.detail-email {
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 10px;
    word-break: break-all;
}

.detail-text {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 10px;
}

.detail-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    #hero {
        padding: 100px 40px 0 40px;
    }

    .about-grid,
    .project-mega-card,
    .project-mega-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .project-mega-card:nth-child(even) .project-visual {
        order: 1;
    }

    .orbit-container {
        width: 400px;
        height: 400px;
    }

    .orbit-card {
        width: 120px;
        height: 120px;
    }

    .orbit-icon {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    .cursor-particles {
        display: none;
    }

    section {
        padding: 80px 20px;
    }

    nav {
        top: 10px;
        padding: 10px 15px;
        width: calc(100% - 20px);
        left: 10px;
        transform: translateX(0);
    }

    #hero {
        padding: 100px 20px 0 20px;
    }

    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .glitch-text {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .typing-text {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        min-height: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .neon-btn {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
        font-size: 1rem;
    }

    .project-mega-card,
    .project-mega-card:nth-child(even) {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .project-mega-card:nth-child(even) .project-visual {
        order: 1;
    }

    .project-info h3 {
        font-size: 1.8rem;
    }

    .tech-stack {
        gap: 10px;
    }

    .tech-badge {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

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

    .skill-card-modern {
        padding: 25px;
    }

    .skill-header-modern {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .skill-icon-modern {
        width: 50px;
        height: 50px;
    }

    .skill-icon-modern svg {
        width: 28px;
        height: 28px;
    }

    .skill-progress-ring {
        width: 70px;
        height: 70px;
    }

    .progress-ring {
        width: 70px !important;
        height: 70px !important;
    }

    .progress-ring circle {
        r: 30 !important;
    }

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

    .experience-timeline {
        padding-left: 40px;
        max-width: 100%;
    }

    .experience-timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -42px;
    }

    .timeline-content {
        padding: 25px 20px;
    }

    .timeline-header h3 {
        font-size: 1.5rem;
    }

    .timeline-company {
        font-size: 1.1rem;
    }

    .timeline-period {
        font-size: 0.95rem;
    }

    .timeline-highlights li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .contact-main-card {
        padding: 40px 30px;
    }

    .contact-main-card h3 {
        font-size: 1.5rem;
    }

    .contact-main-card p {
        font-size: 1rem;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-option-card {
        padding: 30px 25px;
        width: 100%;
        max-width: 400px;
    }

    .orbit-container {
        width: 320px;
        height: 400px;
    }

    .orbit-card {
        width: 100px;
        height: 100px;
    }

    .orbit-icon {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .orbit-label {
        font-size: 0.9rem;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .pulse-ring {
        width: 100px;
        height: 100px;
    }

    @keyframes pulse {
        0% {
            width: 100px;
            height: 100px;
            opacity: 1;
        }
        100% {
            width: 240px;
            height: 240px;
            opacity: 0;
        }
    }

    .email-card {
        top: 10px;
    }

    .linkedin-card {
        top: 50%;
        right: 10px;
    }

    .github-card {
        bottom: 10px;
        left: 10px;
    }

    .detail-card {
        padding: 30px 20px;
    }

    .detail-card h3 {
        font-size: 1.4rem;
    }

    .detail-email,
    .detail-text {
        font-size: 1rem;
    }

    .contact-actions {
        gap: 12px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    #hero {
        padding: 90px 15px 0 15px;
    }

    .glitch-text {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: 0.02em;
    }

    .subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        letter-spacing: 1px;
    }

    .typing-text {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        min-height: 35px;
        margin-bottom: 30px;
    }

    section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .project-mega-card {
        padding: 25px 15px;
        gap: 25px;
    }

    .project-info h3 {
        font-size: 1.5rem;
    }

    .project-info p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .neon-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 20px 15px;
    }

    .timeline-header h3 {
        font-size: 1.3rem;
    }

    .timeline-highlights li {
        font-size: 0.9rem;
        padding-left: 25px;
    }

    .contact-main-card {
        padding: 30px 20px;
    }

    .contact-main-card h3 {
        font-size: 1.3rem;
    }

    .contact-option-card {
        padding: 25px 20px;
        min-width: 100%;
    }

    .contact-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Extra Small Mobile Devices (max-width: 375px) */
@media (max-width: 375px) {
    nav {
        padding: 8px 10px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 0.65rem;
        padding: 4px 6px;
    }

    #hero {
        padding: 85px 10px 0 10px;
    }

    .glitch-text {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .cta-buttons {
        gap: 12px;
    }

    .neon-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    section {
        padding: 50px 10px;
    }

    .project-mega-card {
        padding: 20px 10px;
    }

    .skill-card-modern {
        padding: 20px 15px;
    }

    .tech-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .timeline-highlights li {
        font-size: 0.85rem;
    }

    .orbit-container {
        width: 280px;
        height: 350px;
    }

    .orbit-card {
        width: 90px;
        height: 90px;
    }

    .orbit-icon {
        font-size: 1.8rem;
    }

    .orbit-label {
        font-size: 0.8rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .neon-btn,
    .glass-card,
    .skill-card-modern,
    .project-mega-card,
    .contact-option-card,
    .stat-card {
        -webkit-tap-highlight-color: rgba(0, 240, 255, 0.2);
    }

    /* Make interactive elements larger for easier tapping */
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .neon-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove hover effects on touch devices */
    .neon-btn:hover::before,
    .project-mega-card:hover::after {
        width: 0;
        height: 0;
    }

    /* Simplify animations on touch devices for better performance */
    .skill-card-modern::before,
    .project-visual::before {
        display: none;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 20px 40px 20px;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        min-height: auto;
        padding: 60px 20px;
    }
}

/*# sourceMappingURL=styles.b36f8e627627459e07ca.css.map*/