/* ==================================================
   HIGH-END GRAPHICS PORTFOLIO 
   Pure Black, Neon Accents, Awwwards Style
   ================================================== */

:root {
    --bg: #030303;
    --card-bg: rgba(20, 20, 20, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --accent: #00f2fe;
    --accent2: #4facfe;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
    
    --font: 'Inter', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==================================================
   ORIGINAL PARTICLES BACKGROUND
   ================================================== */
#particles {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; background: var(--bg); pointer-events: none;
}

/* ==================================================
   TYPOGRAPHY & GLOBALS
   ================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    background-color: var(--bg); color: var(--text); font-family: var(--font);
    line-height: 1.6; overflow-x: hidden; cursor: default;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* ==================================================
   BG EFFECTS (Noise, Particles)
   ================================================== */
.noise {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.04;
    background: 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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: -1;
    transform: translate(-50%, -50%); transition: opacity 0.3s;
    mix-blend-mode: screen; opacity: 0;
}

/* ==================================================
   NAVBAR (Radiused Pill)
   ================================================== */
#header {
    position: fixed; top: 15px; left: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: center;
    transition: all 0.4s var(--ease-out);
}
.nav { 
    display: flex; justify-content: space-between; align-items: center; 
    width: 95%; max-width: 1100px; padding: 1.25rem 2.5rem;
    border-radius: 100px; /* Fully radiused nav bar */
    background: transparent;
    transition: all 0.4s var(--ease-out);
}
#header.scrolled .nav {
    background: rgba(10, 10, 10, 0.75); backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9); 
    /* Absolutely no white borders or lines */
}
.logo { 
    font-family: 'Mr De Haviland', cursive; font-size: 3.8rem; font-weight: 400; 
    line-height: 0.5; color: var(--text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-out);
    transform-origin: left center;
    padding-right: 15px; opacity: 0.9;
}
.logo:hover {
    color: var(--accent); opacity: 1;
    transform: scale(1.05) rotate(-2deg);
}
.dot { color: var(--accent); }
.nav__list { display: flex; gap: 2.5rem; }
.nav__link {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-dim); transition: color 0.3s; font-weight: 600; display: flex; gap: 8px;
}
.nav__link span { color: var(--accent2); font-weight: 900; }
.nav__link:hover, .nav__link.active { color: var(--text); }

.nav__toggle { display: none; flex-direction: column; gap: 6px; width: 30px; z-index: 1001; }
.nav__toggle span {
    display: block; width: 100%; height: 2px; background: var(--text); transition: 0.3s;
}

/* ==================================================
   HERO
   ================================================== */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 160px; padding-bottom: 120px;
}
.hero__content { max-width: 800px; z-index: 10; position: relative; }
.hero__tag {
    font-size: 0.9rem; letter-spacing: 4px; color: var(--accent); font-weight: 700;
    margin-bottom: 1.5rem; display: inline-block;
}
.hero__title-wrapper { position: relative; margin-bottom: 1rem; }
.hero__name {
    font-size: clamp(4rem, 12vw, 9rem); line-height: 0.9; letter-spacing: -4px;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__name.outline {
    position: absolute; top: 0; left: 0; -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.3));
    transform: translate(-4px, -4px); z-index: -1;
}
.hero__type-wrap {
    font-family: var(--font-head); font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--text-dim); margin-bottom: 2rem; height: 2.5rem;
}
.hero__typed { color: var(--text); font-weight: 600; }
.hero__cursor { color: var(--accent); animation: blink 1s step-end infinite; }
.hero__desc {
    font-size: 1.15rem; color: var(--text-dim); max-width: 550px; margin-bottom: 3rem; line-height: 1.8;
}
.hero__bottom { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.hero__btns { display: flex; gap: 1rem; }
.hero__socials { display: flex; gap: 1rem; }

/* Buttons & Magnetics */
.btn {
    padding: 1rem 2.5rem; font-family: var(--font-head); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; border-radius: 100px;
    display: inline-flex; justify-content: center; align-items: center; cursor: pointer;
    position: relative; overflow: hidden; transition: 0.3s;
}
.btn span { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; }
.btn--glow {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}
.btn--glow::before {
    content: ''; position: absolute; inset: 0; background: var(--gradient); z-index: 1;
    opacity: 0; transition: 0.3s;
}
.btn--glow:hover { color: #000; box-shadow: 0 0 30px rgba(0, 242, 254, 0.5); border-color: transparent; }
.btn--glow:hover::before { opacity: 1; }

.btn--outline { border: 1px solid var(--card-border); color: var(--text); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.05); }

.magnetic { display: inline-block; } /* JS handles the movement */
.hero__socials a {
    width: 50px; height: 50px; border: 1px solid var(--card-border); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: var(--text);
    transition: 0.3s; font-size: 1.2rem;
}
.hero__socials a:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 242, 254, 0.05); }

.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 20;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0; animation: fadeUp 1s 1.5s forwards;
}
.scroll-down::before {
    content: 'SCROLL'; font-size: 0.65rem; letter-spacing: 4px;
    color: var(--accent); font-weight: 700;
}
.mouse {
    width: 28px; height: 46px; border: 2px solid rgba(0, 242, 254, 0.4); border-radius: 20px; position: relative;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.mouse::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--accent); border-radius: 4px;
    box-shadow: 0 0 10px var(--accent);
    animation: scroll 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

/* ==================================================
   CLEAN CARDS
   ================================================== */
.card {
    background-color: var(--card-bg); border-radius: 24px; position: relative;
    display: flex; flex-direction: column;
    border: 1px solid var(--card-border);
    transition: all 0.4s var(--ease-out);
}
.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    transform: translateY(-5px) scale(1.01);
}
/* Card Inner */
.card-content {
    border-radius: inherit; z-index: 2; position: relative;
    padding: 2.5rem; overflow: hidden; display: flex; flex-direction: column;
    height: 100%; width: 100%;
}

/* 3D Tilt */
.tilt { transform-style: preserve-3d; transform: perspective(1000px); }
.card-content { transform: translateZ(30px); transition: transform 0.1s; }

/* ==================================================
   SECTIONS & BENTO GRID
   ================================================== */
.section { padding: 90px 0; }
.section__header { margin-bottom: 2rem; display: flex; align-items: center; gap: 2rem; }
.section__title { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -1px; }
.section__line { flex-grow: 1; height: 1px; background: linear-gradient(90deg, var(--card-border), transparent); }

.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.bento-large { grid-column: span 3; }
.bento-medium { grid-column: span 1; }
.bento-small { grid-column: span 1; }

.card-icon-bg { position: absolute; right: -20px; top: -20px; font-size: 10rem; color: rgba(255, 255, 255, 0.02); z-index: 0; }
.card-title { font-size: 1.5rem; margin-bottom: 1.5rem; position: relative; z-index: 2; color: var(--accent); }
.card-text { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 1rem; position: relative; z-index: 2; }
.card-text strong { color: var(--text); }
.about__tags { display: flex; gap: 1rem; margin-top: 2rem; position: relative; z-index: 2; flex-wrap: wrap; }
.about__tags span {
    padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--card-border);
    border-radius: 100px; font-size: 0.85rem; color: var(--text-dim);
}

.stat-card { 
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; 
    padding: 2.5rem; height: 100%; text-align: left;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}
.stat-icon { 
    font-size: 1.5rem; color: var(--accent); 
    background: rgba(0, 242, 254, 0.08); 
    width: 55px; height: 55px; display: flex; justify-content: center; align-items: center; 
    border-radius: 16px; margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.05);
    transition: all 0.4s ease;
}
.card:hover .stat-icon {
    transform: translateY(-3px) scale(1.05);
    background: rgba(0, 242, 254, 0.15);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.15);
    color: #fff;
}
.stat-info { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num { 
    font-family: var(--font-head); font-size: 4.8rem; font-weight: 700; line-height: 1; 
    background: linear-gradient(to bottom right, #ffffff, #666666); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem; letter-spacing: -3px;
}
.stat-label { 
    font-size: 0.85rem; font-weight: 500; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; 
}

/* ==================================================
   TIMELINE (Trophies)
   ================================================== */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.timeline-card { border-left: 3px solid rgba(255,255,255,0.04); overflow: hidden; }
.timeline-card:hover { border-left-color: var(--accent); }
.timeline-content { position: relative; padding-top: 3.5rem; }
.timeline-year {
    position: absolute; top: -10px; right: -10px; font-family: var(--font-head);
    font-size: 6rem; font-weight: 900; color: rgba(255, 255, 255, 0.02); z-index: 0; line-height: 1;
    transition: all 0.5s var(--ease-out); pointer-events: none;
}
.timeline-card:hover .timeline-year { color: rgba(0, 242, 254, 0.04); transform: scale(1.05); }
.timeline-body { position: relative; z-index: 2; margin-top: auto; }
.timeline-body h3 { 
    font-size: 1.35rem; margin-bottom: 0.75rem; 
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.timeline-body p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.bg-icon { 
    position: absolute; bottom: -1rem; right: -1rem; font-size: 5rem; 
    color: var(--accent); opacity: 0.05; transition: all 0.5s var(--ease-out); z-index: 0;
}
.timeline-card:hover .bg-icon { opacity: 0.15; transform: rotate(-15deg) scale(1.1); }

/* ==================================================
   EDUCATION (Sleek List Layout)
   ================================================== */
.edu-list { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
.edu-row { 
    display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 2rem;
    padding: 2.5rem 3rem; background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 20px; transition: all 0.4s var(--ease-out);
    position: relative; overflow: hidden;
}
.edu-row:hover { 
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.015);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    transform: translateY(-4px);
}
.edu-year { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 0.85rem; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.edu-year i { color: var(--accent); font-size: 1.2rem; }
.edu-details h3 { font-size: 1.5rem; margin-bottom: 0.3rem; color: var(--text); }
.edu-details h4 { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.edu-score .highlight { 
    font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; color: var(--text); 
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ==================================================
   CONTACT
   ================================================== */
.contact-box { width: 100%; }
.contact-inner { padding: 5vw; text-align: center; align-items: center; justify-content: center; }
.contact-title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-desc { max-width: 600px; color: var(--text-dim); font-size: 1.15rem; margin-bottom: 3rem; }
.contact-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.contact-btn {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--card-border); border-radius: 100px;
    font-family: var(--font-head); font-weight: 700; transition: 0.3s;
}
.contact-btn:hover { background: rgba(0, 242, 254, 0.1); border-color: var(--accent); color: var(--accent); }

/* ==================================================
   FOOTER
   ================================================== */
.footer { padding: 2rem 0; border-top: 1px solid var(--card-border); text-align: center; }
.footer p { color: var(--text-dim); font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.heart-beat { display: inline-block; animation: heartbeat 1.5s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.25); } 60%, 100% { transform: scale(1); } }

/* ==================================================
   ANIMATIONS (Reveal & Delays)
   ================================================== */
.reveal-fade { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease-out); }
.reveal-text { overflow: hidden; }
.reveal-text > * { transform: translateY(100%); transition: all 0.8s var(--ease-out); }

.revealed.reveal-fade { opacity: 1; transform: translateY(0); }
.revealed > * { transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; } .delay-1 > * { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; } .delay-2 > * { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; } .delay-3 > * { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; } .delay-4 > * { transition-delay: 0.4s; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes scroll { 
    0% { top: 8px; opacity: 1; height: 8px; } 
    50% { top: 24px; opacity: 0.1; height: 4px; } 
    100% { top: 8px; opacity: 0; height: 8px; } 
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 900px) {
    .bento-large, .bento-medium, .bento-small { grid-column: span 3; }
    .bento-large, .timeline, .edu-list { grid-template-columns: 1fr; }
    .edu-row { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; text-align: center; justify-items: center; }
    .edu-year { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .hero__content h1 { font-size: 3rem; }
    .edu-grid { grid-template-columns: 1fr; }
    
    .nav__list {
        position: fixed; inset: 0; background: var(--bg); flex-direction: column;
        justify-content: center; align-items: center; gap: 2rem;
        opacity: 0; pointer-events: none; transition: 0.4s;
    }
    .nav__list.open { opacity: 1; pointer-events: all; }
    .nav__link { font-size: 1.5rem; }
    .nav__toggle { display: flex; }
    .nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}
