:root {
    --bg-dark: #09090b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #ff0066; /* Neon pink from image */
    --secondary: #00ffff; /* Cyan */
    --accent: #ffaa00; /* Yellow */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1rem;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Typography & Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch {
    position: relative;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(255, 0, 102, 0.4);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #cc0052);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 0, 102, 0.5);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: all 0.3s;
    opacity: 0;
}
.btn-glow:hover::after {
    opacity: 1;
    left: 100%;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* 3D Background Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out alternate;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 50px) scale(1.1); }
    100% { transform: translate(50px, -30px) scale(0.9); }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo-dot {
    color: var(--primary);
}

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

.nav-link {
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Glass & 3D Cards Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.tilt-card-wrapper {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.tilt-card {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    transform-style: preserve-3d;
    position: relative;
}

.tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
    pointer-events: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(255, 0, 102, 0.4);
    color: white;
}

.hero-visual {
    position: relative;
}

.profile-card {
    border-radius: 20px;
    overflow: visible;
    position: relative;
    background: transparent;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    transform: translateZ(30px); /* 3D pop effect */
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    transform: translateZ(-20px);
    border-radius: 20px;
}

.floating-badge {
    position: absolute;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: translateZ(60px); /* Pops out more than image */
}

.floating-badge i {
    margin-right: 8px;
}

.badge-1 { top: 10%; right: -20px; color: var(--primary); }
.badge-2 { bottom: 20%; left: -30px; color: var(--secondary); }
.badge-3 { bottom: -15px; right: 20px; color: var(--accent); }

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    padding: 2.5rem;
    height: 100%;
}

.info-card .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 102, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transform: translateZ(40px);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(30px);
}

.info-card p, .info-card .edu-item {
    color: var(--text-muted);
    transform: translateZ(20px);
}

.edu-item h4 {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.edu-item .org {
    color: var(--secondary);
    font-weight: 600;
}

.edu-item .date {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateZ(40px);
}

.skill-list {
    list-style: none;
    transform: translateZ(20px);
}

.skill-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transform: translateZ(30px);
}

.project-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(40px);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transform: translateZ(20px);
}

.project-bullets {
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: auto;
    transform: translateZ(10px);
}

.project-bullets li {
    margin-bottom: 0.5rem;
}

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

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

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-content {
    padding: 2rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 0, 102, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    transform: translateZ(40px);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    transform: translateZ(30px);
}

.timeline-content h4 {
    color: var(--secondary);
    font-weight: 400;
    margin-bottom: 1rem;
    transform: translateZ(25px);
}

.timeline-content ul {
    padding-left: 1.2rem;
    color: var(--text-muted);
    transform: translateZ(20px);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(9, 9, 11, 0.8);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations Triggered by JS Intersection Observer */
.has-scroll-effects [data-scroll] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.has-scroll-effects [data-scroll].scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-desc {
        margin: 1.5rem auto 2.5rem;
    }
    .glitch {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-dot {
        left: 11px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .profile-card {
        margin: 0 auto;
        max-width: 350px;
    }
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--glass-border);
    transform: translateZ(10px);
}
.project-card {
    padding: 0;
}
.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-link-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 0, 102, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 0, 102, 0.2);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    transform: translateZ(25px);
}
.project-link-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateZ(35px) translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 102, 0.3);
}


.project-link-btn {
    position: relative;
    z-index: 10;
}


.project-link-btn {
    pointer-events: auto;
    z-index: 999;
}


.project-external-btn {
    display: block;
    margin: 1.5rem auto 0;
    text-align: center;
    width: 100%;
    max-width: 250px;
    background: rgba(255, 0, 102, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 0, 102, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s;
    pointer-events: auto;
}
.project-external-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.4);
}

/* Additions and compatibility for the imported project pages. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 5px; }
.about-grid,.skills-container { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.projects-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mobile-menu-btn { background: transparent; border: 0; color: var(--text-light); padding: .5rem; }
.education-detail { margin-top: 1rem; }
.education-detail strong { color: var(--text-light); }
.project-art { height: 200px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--glass-border); border-radius: 16px 16px 0 0; font-size: 3.5rem; }
.project-art-video { background: rgba(255,0,102,.08); color: var(--primary); }
.project-art-site { background: rgba(0,255,255,.05); font-size: 2rem; font-weight: 700; }
.project-wrapper { display: flex; flex-direction: column; min-width: 0; }
.project-wrapper .project-card { height: auto; flex: 1; }
.project-wrapper .project-content { height: auto; flex: 1; }
.project-wrapper .project-img,.project-wrapper .project-art,.project-external-btn { flex-shrink: 0; }
.project-archive { margin-top: 4rem; }
.archive-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.archive-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem; border: 1px solid var(--glass-border); border-radius: 8px; background: var(--bg-card); }
.archive-links a:hover { border-color: var(--secondary); color: var(--secondary); }
.footer-links address { font-style: normal; color: var(--text-muted); max-width: 380px; }
.footer-links a { overflow-wrap: anywhere; }
.navbar { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(9,9,11,.9); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); }
.nav-logo { font-size: 1.1rem; font-weight: 700; }
.nav-menu { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; }
.project-detail { padding-bottom: 5rem; }
.project-header { margin-bottom: 2.5rem; }
.project-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
.project-subtitle { color: var(--secondary); margin-bottom: 1.5rem; }
.project-detail .project-content { padding: 0; height: auto; gap: 2rem; }
.project-detail .project-content > div { padding: 2rem; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--bg-card); }
.project-detail p,.project-detail li { color: var(--text-muted); }
.tech-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.tech-item { padding: .4rem .9rem; color: var(--secondary); background: rgba(0,255,255,.06); border: 1px solid var(--glass-border); border-radius: 8px; }
.feature-list { list-style: none; }
.feature-list li,.process-list li { margin-bottom: .65rem; }
.feature-list i { margin-right: .6rem; color: var(--primary); }
.process-list { padding-left: 1.25rem; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }

@media (max-width: 1024px) {
    .nav-links { gap: 1rem; }
    .nav-container { gap: 1rem; }
}
@media (max-width: 768px) {
    .nav-links.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; padding: 1.5rem 2rem; background: rgba(9,9,11,.98); border-bottom: 1px solid var(--glass-border); }
    .nav-links.is-open a { display: block; padding: .4rem 0; }
    .hero { padding: 125px 0 65px; }
    .hero-actions { flex-wrap: wrap; gap: 1.5rem; }
    .hero-visual { margin: 1rem 0; }
    .glitch { font-size: clamp(1.9rem, 7vw, 2.5rem); line-height: 1.2; }
    .section-title { font-size: 2rem; }
    .section { padding: 4rem 0; }
    .navbar .nav-container { flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; }
    .project-detail .project-content > div { padding: 1.5rem; }
    .timeline-content { padding: 1.5rem; }
}
@media (max-width: 400px) {
    .container,.nav-container { padding-left: 1.25rem; padding-right: 1.25rem; }
    .nav-contact { padding: .65rem 1rem; font-size: .9rem; }
    .profile-card { max-width: 260px; }
    .floating-badge { padding: .5rem .65rem; font-size: .75rem; }
    .badge-1 { right: -10px; }
    .badge-2 { left: -10px; }
    .project-content,.info-card,.skill-card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { animation: none !important; transition: none !important; }
    .has-scroll-effects [data-scroll] { opacity: 1; transform: none; }
}
