/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #080808;
    --bg-card: rgba(20, 20, 20, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Neon Accents */
    --accent-cyan: #00f0ff;
    --accent-purple: #8a2be2;
    --accent-glow: rgba(0, 240, 255, 0.5);

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Borders & Spacing */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-hover: 1px solid rgba(255, 255, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Custom cursor hide default */
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
    /* Managed by custom cursor */
}

ul {
    list-style: none;
}

/* ==========================================================================
   Noise Overlay & Custom Cursor
   ========================================================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border 0.2s;
}

/* Cursor Hover States */
.cursor-outline.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* Hidden state for scroll animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: var(--transition-slow);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    border: var(--border-subtle);
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-fast);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-cyan);
}

.hero-title {
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
}

.hero-roles .dot {
    color: var(--accent-purple);
}

/* Base Buttons */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.primary-btn:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-container {
    padding: 2rem 0;
    background: var(--accent-purple);
    color: var(--text-primary);
    transform: rotate(-2deg) scale(1.05);
    margin: 4rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
}

.marquee {
    display: flex;
    white-space: nowrap;
}

.marquee span {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding-left: 100%;
    /* Important for seamless loop */
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* ==========================================================================
   About / Bento Box
   ========================================================================== */
.about-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.bento-item {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
}

.bento-item:hover {
    border: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Specific Bento Grid Placement */
.bio-item {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.bio-content {
    flex: 1;
}

.bio-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform var(--transition-slow);
}

.bio-item:hover .bio-image img {
    transform: scale(1.05);
}

.stats-item {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(0, 240, 255, 0.1) 100%);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.skills-item {
    grid-column: span 1;
    grid-row: span 2;
}

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

.tags span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hobbies-item {
    grid-column: span 2;
}

.hobby-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hobby-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.leadership-item {
    grid-column: span 2;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-slow);
}

.project-card:hover {
    border: var(--border-hover);
}

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

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

.project-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    color: var(--accent-cyan);
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.project-content .tags {
    margin-top: 1rem;
}

/* Dynamic Gradients/Images for Projects */
.bg-image-1 {
    background: url('luminous_map1.jpg') center/cover no-repeat;
}

.bg-image-2 {
    background: url('library_project.jpg') center/contain no-repeat;
    background-color: #ffffff;
    /* White bg for logo */
}

.bg-image-3 {
    background: url('hardware_project_new.jpg') center/cover no-repeat;
}

.bg-gradient-5 {
    background: url(image.png) center/cover no-repeat;
}

.project-visual {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    /* Inner shadow for blending */
}

/* ==========================================================================
   Stat Sublabel
   ========================================================================== */
.stat-sublabel {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-secondary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(138, 43, 226, 0.15) 100%);
}

/* ==========================================================================
   Skills Secondary Items
   ========================================================================== */
.skills-item-secondary {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
}

.skills-item-secondary:hover {
    border: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.skills-item-secondary h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

/* ==========================================================================
   Achievements & Certifications
   ========================================================================== */
.achievements-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.achievement-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
}

.achievement-card:hover {
    border: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cert-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(0, 240, 255, 0.05) 100%);
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.experience-section {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
}

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

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 2px solid var(--bg-dark);
    transform: translateX(-5px);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    transition: var(--transition-slow);
}

.timeline-content:hover {
    border: var(--border-hover);
}

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

.timeline-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ==========================================================================
   Languages Section
   ========================================================================== */
.languages-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.languages-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lang-chip {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.lang-chip em {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 6rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: var(--border-subtle);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 6rem;
}

.footer-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.footer-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.footer-contact-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.india-badge {
    font-family: var(--font-heading);
    color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bio-item {
        grid-column: span 2;
    }

    .stats-item {
        grid-column: span 1;
    }

    .skills-item {
        grid-column: span 1;
    }

    .hobbies-item {
        grid-column: span 2;
    }

    .leadership-item {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0.8rem 1.5rem;
        border-radius: var(--radius-md);
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        /* Can be replaced with a hamburger menu later */
    }

    .hero-section {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 4rem);
    }

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

    .marquee span {
        font-size: 1.5rem;
    }

    .about-section,
    .projects-section,
    .achievements-section,
    .experience-section {
        padding: 4rem 1.5rem;
    }

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

    .bento-item,
    .skills-item-secondary {
        padding: 1.5rem;
    }

    .bio-item {
        grid-column: span 1;
        flex-direction: column-reverse;
        text-align: center;
    }

    .bio-image {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .stats-item {
        grid-column: span 1;
        padding: 2rem;
    }

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

    .skills-item {
        grid-column: span 1;
    }

    .hobbies-item {
        grid-column: span 1;
    }

    .leadership-item {
        grid-column: span 1;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

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

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

    .project-title {
        font-size: 1.8rem;
    }

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

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

    .timeline {
        padding-left: 2rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        padding: 4rem 1.5rem 1.5rem;
    }

    .footer-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

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

    .footer-contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}