﻿/* =========================
   RESET & GLOBAL SETTINGS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #0d0d0d;
    color: #f2f2f2;
    line-height: 1.6;
    overflow-x: hidden; /* prevent horizontal scrollbars */
}
html {
    scroll-behavior: smooth;
}
h1, h2, h3 {
    color: #FF6700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
}

a {
    color: #FF6700;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

    a:hover {
        color: #cfcfcf;
    }

/* =========================
   NAVIGATION BAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d0d0d;
  padding: 8px 20px;
  border-bottom: 1px solid #1b1b1b;
  position: sticky;
  top: 0;
  z-index: 1000;

}
.navbar,
.navbar * {
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        text-transform: none;
    }
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo img {
  height: 42px; /* slightly smaller for balance */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 95, 31, 0.4));
}

.logo span {
  font-weight: 600;
  color: #b5b5b5;
  letter-spacing: 0.4px;
  font-size: 1rem; /* reverted to cleaner size */
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

/* Menu links */
.menu a {
    color: #d6d6d6;
    margin: 0 0 0 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    padding: 6px 0;
    position: relative;
}

    /* underline base */
    .menu a::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: #ff6700;
        transition: none;
    }

    /* hover: only color (no underline) */
    .menu a:hover {
        color: #ff6700;
    }

    /* active link: orange text + underline */
    .menu a.active {
        color: #ff6700;
        font-weight: 600;
    }

        .menu a.active::after {
            width: 100%;
            transition: none;
        }

/* ✨ fix: when hovering another link, the active one goes gray temporarily */
.menu:hover a.active:not(:hover) {
    color: #d6d6d6;
}

/* =========================
   HERO SECTION
========================= */

/* ===== HERO – Refined Cinematic Version ===== */

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 0; /* keep behind text */
}

    /* 🎞️ Background animation layer */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("content/bgcircuit.png") no-repeat center center;
        background-size: cover;
        animation: bgDrift 12s ease-in-out infinite, bgZoom 15s ease-in-out infinite alternate;
        z-index: -2; /* stays behind everything */
        transform-origin: center;
    }

    /* 🌑 Seamless but tighter fade from hero to pitch black */
    .hero::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 25%; /* reduced from 60% for a tighter fade */
        background: linear-gradient( to bottom, rgba(10, 10, 10, 0) 0%, rgba(0, 0, 0, 0.8) 70%, #000 100% );
        pointer-events: none;
        z-index: -1;
    }
/* 🔥 Quick orange point-light flare — independent element */
.hero-flare {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 50% 50%, rgba(255, 200, 60, 1) 0%, rgba(255, 120, 0, 0.8) 8%, rgba(255, 80, 0, 0.35) 14%, transparent 25% );
    filter: blur(15px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1; /* between bg and fade */
    opacity: 0.9;
    transform-origin: center;
    animation: quickFlare 2.2s ease-out forwards;
}


        /* 🔥 Quick orange point-light flare (on top of fade) */
        .hero::marker,
        .hero::after + * {
        }
    /* ignore placeholder, next rule stays same */
    .hero .flare {
        display: none;
    }

    /* === Quick orange point-light flare (ends at center) === */
    .hero .flare,
    .hero::after + .flare {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient( circle at 50% 50%, rgba(255, 200, 60, 1) 0%, rgba(255, 120, 0, 0.8) 8%, rgba(255, 80, 0, 0.35) 14%, transparent 25% );
        filter: blur(15px);
        mix-blend-mode: screen;
        pointer-events: none;
        z-index: 2;
        opacity: 0.9;
        transform-origin: center;
        animation: quickFlare 2.2s ease-out forwards;
    }

@keyframes bgDrift {
    0% {
        background-position: 50% 50%;
    }

    25% {
        background-position: 52% 48%;
    }

    50% {
        background-position: 48% 52%;
    }

    75% {
        background-position: 51% 49%;
    }

    100% {
        background-position: 50% 50%;
    }
}

@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}


@keyframes quickFlare {
    0% {
        transform: translate(var(--start-x, 0px), var(--start-y, 0px)) scale(0.3);
        opacity: 0.8;
    }

    80% {
        transform: translate(var(--target-x, 0px), var(--target-y, 0px)) scale(0.7);
        opacity: 1;
    }

    100% {
        transform: translate(var(--target-x, 0px), var(--target-y, 0px)) scale(0.5);
        opacity: 0;
    }
}

/* Dark overlay on top of moving light */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    mix-blend-mode: multiply;
    z-index: 2; /* 👈 ABOVE the light */
}

/* Text & logo layer */
.hero-content {
    position: relative;
    z-index: 3;
}


/* --- Main Content --- */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 900px;
    transform: translateY(-10vh);
}

/* --- Logo Glow (appears after light hits center) --- */
.hero-logo {
    width: clamp(130px, 28vw, 320px);
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    filter: drop-shadow(0 0 0 #FF6700);
    margin-bottom: 0.5rem;
    /* start slightly before flare ends */
    animation: powerOn 1.6s ease-out forwards 1.7s, glowBreathe 8s ease-in-out infinite 3.3s;
}


/* ⚡ "Power-on" flash */
@keyframes powerOn {
    0% {
        opacity: 0.4; /* visible from the first frame */
        transform: scale(0.9);
        filter: drop-shadow(0 0 5px rgba(255,103,0,0.3));
    }

    20% {
        opacity: 0.8;
        transform: scale(1.03);
        filter: drop-shadow(0 0 25px rgba(255,140,0,0.8));
    }

    50% {
        opacity: 1;
        transform: scale(1.00);
        filter: drop-shadow(0 0 35px rgba(255,180,0,1));
    }

    70% {
        filter: drop-shadow(0 0 20px rgba(255,120,0,0.7));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 14px rgba(255,103,0,0.5));
    }
}


/* 🔥 breathing halo after powering up */
@keyframes glowBreathe {
    0%,100% {
        filter: drop-shadow(0 0 10px rgba(255,103,0,0.4));
    }

    50% {
        filter: drop-shadow(0 0 22px rgba(255,150,0,0.75));
    }
}

/* --- Title & Subtitle --- */
.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    color: #FF6700;
    text-shadow: 0 0 14px rgba(255,103,0,0.35);
    opacity: 0;
    transform: translateY(10px);
    animation: riseIn 0.9s ease-out forwards;
    animation-delay: 0.25s;
}

.subtitle {
    color: #cfcfcf;
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0;
    transform: translateY(10px);
    animation: riseIn 0.9s ease-out forwards;
    animation-delay: 0.55s;
}

.vision {
    color: #9d9d9d;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    max-width: 720px;
    margin: 0.8rem auto 0;
    opacity: 0;
    transform: translateY(8px);
    animation: riseIn 0.9s ease-out forwards;
    animation-delay: 0.9s;
    line-height: 1.6;
    font-style: italic;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


@keyframes scrollPulse {
    0%, 20% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(14px);
    }

    80%,100% {
        opacity: 0;
        transform: translateY(24px);
    }
}

@keyframes fadeOnly {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================
   PROJECTS SECTION
========================= */
/* === PROJECTS SECTION === */
.projects {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 0 120px;
    background: #000; /* same as hero’s darkest black */
    overflow: hidden;
}
.project img {
    display: block; /* removes inline gap */
    width: 100%;
    height: 55vh;
    object-fit: cover;
    object-position: center 90%;
    border-bottom: none; /* remove orange from image */
}

.project-info {
    border-top: 2px solid #ff6700; /* orange border here instead */
    margin-top: 0;
    padding: 35px 45px;
    background: #131313; /* ensure same tone as card */
}
@keyframes driftFog {
    0% {
        transform: translate(-2%, -2%);
    }

    100% {
        transform: translate(3%, 3%);
    }
}


@keyframes driftFog {
    0% {
        transform: translate(-2%, -2%);
    }

    100% {
        transform: translate(3%, 3%);
    }
}

    /* --- Section Title --- */
    .projects h2 {
        font-size: 2.3rem;
        margin-bottom: 50px;
        color: #ff6700;
        font-weight: 700;
        border: none;
        position: relative;
        z-index: 2;
    }

        .projects h2::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 3px;
            background: #ff6700;
            border-radius: 2px;
        }

/* --- Project Card --- */
.project {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(255, 255, 255, 0.03) inset;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    width: 95%; /* wider across the screen */
    max-width: 1600px; /* almost full desktop width */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
}

    .project:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(255, 103, 0, 0.25);
    }

    /* --- Banner Image --- */
    .project img {
        width: 100%;
        height: 40vh; /* shorter, banner-like */
        object-fit: cover;
        border-bottom: 2px solid #ff6700;
        transition: transform 0.6s ease;
    }

    .project:hover img {
        transform: scale(1.02); /* subtle movement, no warp */
    }

/* --- Info below --- */
.project-info {
    padding: 35px 50px;
    text-align: left;
    color: #ccc;
    background: #111; /* clean separation from image */
}

    .project-info h3 {
        font-size: 1.9rem;
        color: #ff6700;
        margin-bottom: 0.8rem;
    }

    .project-info p {
        font-size: 1.1rem;
        margin: 15px 0 25px;
        color: #bbb;
        line-height: 1.6;
    }

    .project-info .btn {
        background: #ff6700;
        color: #fff;
        padding: 10px 24px;
        border-radius: 6px;
        font-weight: 600;
        transition: all 0.25s ease;
        text-decoration: none;
    }

        .project-info .btn:hover {
            background: #ffa44f;
            box-shadow: 0 0 15px rgba(255, 103, 0, 0.6);
        }

/* --- Tech corner icons --- */
.tech-corner {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    overflow: visible; /* ✅ prevents cutting the edges of icons */
}

    .tech-corner img {
        display: block; /* ✅ removes text baseline gap */
        vertical-align: middle; /* fallback in case display:inline used */
        width: 26px;
        height: auto;
        filter: brightness(1.3) contrast(1.2);
        mix-blend-mode: lighten;
        background-color: transparent;
        border: none !important; /* 🚫 kills that orange underline */
        box-shadow: none !important; /* just in case */
        outline: none; /* safety cleanup */
        object-fit: contain;
    }

.project:hover .tech-corner {
    opacity: 0.9;
}

.tech-corner img {
    width: 22px;
    height: 22px;

}

    .tech-corner img:hover {
        transform: scale(1.1);
     
    }

.tech-corner span {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 3px;
}

/* --- Reveal on Scroll --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

    [data-reveal].visible {
        opacity: 1;
        transform: translateY(0);
    }


/* ===== ABOUT SECTION ===== */
/* === ABOUT – Cinematic Fade From Black === */
.about {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url("content/Banner.png") no-repeat center center;
    background-size: cover;
    padding: 180px 0;
    overflow: hidden;
}


    /* 🔥 LAYER 2 — cinematic fade top & bottom  */
    .about::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( to bottom, rgba(0, 0, 0, 1) 0%, /* solid black top */
        rgba(0, 0, 0, 0) 25%, /* fade to clear */
        rgba(0, 0, 0, 0) 75%, /* clear middle */
        rgba(0, 0, 0, 1) 100% /* solid black bottom */
        );
        z-index: 1;
    }

@keyframes glowFloat {
    0% {
        opacity: 0.25;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}


/*  LAYER 1 — dark blur overlay */
.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
}
.about h2,
.about-container {
    position: relative;
    z-index: 2;
}
/* === GLITCH ANIMATIONS – Scoped to About === */
#about h2.visible,
#about p.visible,
#about h3.visible,
#about .badge.visible {
    opacity: 1;
    transform: translateY(0);
    animation: glitchVisible 1.4s ease-out forwards;
}

@keyframes glitchVisible {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        color: #ff3300;
        text-shadow: 2px 2px #00ffff, -2px -2px #ff6700;
    }

    10% {
        opacity: 1;
        transform: translateY(2px);
        text-shadow: -2px 0 #ff3300, 2px 0 #00ffff;
    }

    20% {
        transform: translateY(-2px);
        text-shadow: 3px 3px #ff6700, -3px -3px #00ffff;
    }

    30% {
        transform: translateY(1px);
        text-shadow: none;
    }

    40% {
        color: #ffffff;
        filter: brightness(1.8);
    }

    60% {
        color: #ff6700;
        text-shadow: 0 0 10px rgba(255,103,0,0.7);
    }

    100% {
        opacity: 1;
        transform: none;
        text-shadow: none;
        filter: none;
        color: #e4e4e4;
    }
}

/* === CONTENT === */
.about-container {
    position: relative;
    z-index: 2; /* above fades */
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.about h2 {
    font-size: 2.8rem;
    color: #ff6700 !important;
    margin-bottom: 70px;
    text-shadow: 0 0 25px rgba(255,103,0,0.5);
}
.about h3 {
    color: #ff6700 !important;
}
.about-text p {
    color: #e4e4e4;
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 850px;
    margin-bottom: 25px;
}

.about-text strong {
    color: #ff6700;
    text-shadow: 0 0 10px rgba(255,103,0,0.4);
}
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 850px;
}
/* 🟧 Compact tag-style badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px; /* smaller size */
    border: 1.5px solid #ff6700; /* thin orange border */
    border-radius: 999px; /* full-rounded edges like tags */
    color: #ff6700;
    background: rgba(255, 103, 0, 0.08);
    font-size: 0.85rem; /* smaller font */
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 103, 0, 0.1);
    transition: all 0.25s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

    /* 🧡 Hover glow effect */
    .badge:hover {
        color: #fff;
        background: rgba(255, 103, 0, 0.15);
        border-color: #ffa347;
        box-shadow: 0 0 25px rgba(255, 150, 50, 0.45);
        transform: translateY(-3px);
    }

/* =========================
   CONTACT SECTION
========================= */
.contact {
    width: 100vw;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
    padding: 80px 20px;
}

    .contact h2 {
        color: #FF6700;
        margin-bottom: 20px;
    }

    .contact p {
        max-width: 600px;
        margin-bottom: 30px;
    }

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

    .socials a {
        background: #1a1a1a;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.25s ease;
    }

        .socials a:hover {
            background: #FF6700;
            color: #fff;
        }

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid #FF6700;
    box-shadow: 0 0 8px rgba(255, 103, 0, 0.6), 0 0 16px rgba(255, 140, 26, 0.4), 0 0 32px rgba(255, 169, 77, 0.25);
    font-size: 0.9rem;
    color: #888;
    background: #000;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 24px;
    }

    .logo img {
        height: 36px;
    }
  
    /* ===== HERO – Refined Cinematic Version ===== */
    .hero {
        min-height: 100dvh; /* actual visible mobile height */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding: 80px 20px 40px; /* controlled spacing top/bottom */
        overflow: visible; /* allow breathing room for long text */       
    }
    .hero-content {
        margin-top: 65px;
    }
    .hero-logo {
        width: 120px;
        max-width: 35vw;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        font-style: italic;
        opacity: 0.9;
        color: #ccc;
        margin: 0.3rem 0 0.8rem;
        max-width: 90%;
    }

    .hero .vision {
        font-size: 0.95rem;
        color: #aaa;
        line-height: 1.5;
        margin-top: 0.5rem;
        padding: 0 10px;
        max-width: 95%;
        opacity: 0.85;
    }

    /* === PROJECTS SECTION === */
    .projects {
        padding: 70px 0;
    }

    .project {
        position: relative !important;
    }

        .project img {
            height: 30vh; /* shorter banner */
        }

    .project-info {
        position: relative !important;
        padding: 25px 22px 35px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

        .project-info h3 {
            text-align: left !important;
            font-size: 1.6rem !important;
            margin: 0 0 0.6rem 0 !important;
            line-height: 1.1;
            color: #ff6700;
        }

    /* 🔹 Tech icons + year aligned with title */
    .tech-corner {
        position: absolute !important;
        top: calc(13px + 1.8rem) !important; /* adjusts just above description text */
        right: 22px !important;
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        opacity: 0.9 !important;
        z-index: 10 !important;
        transform: translateY(-50%) !important; /* aligns vertically with title line */
    }

        .tech-corner img {
            width: 20px !important;
            height: 20px !important;
            margin: 0;
            margin-bottom: 3px;
            scroll-margin-right: 2px;
        }

        .tech-corner span {
            color: #d4d4d4 !important;
            font-size: 0.9rem !important;
            line-height: 1;
            top: 1px;
        }

    /* 🔹 Description text below */
    .project-info p {
        font-size: 1rem !important;
        margin: 10px 0 22px !important;
        line-height: 1.55 !important;
        text-align: left !important;
    }

    /* 🔹 Button spacing */
    .project-info .btn {
        display: block;
        margin: 25px auto 0 auto !important; /* centers it horizontally */
        text-align: center;
        width: fit-content; /* adjusts to button text width */
        padding: 12px 26px;
    }

        .about {
            padding: 70px 0 90px;
        }

        .about-container {
            grid-template-columns: 1fr; /* stack */
            gap: 22px;
            padding: 26px 20px;
            width: 92%;
        }

        .about h2 {
            margin-bottom: 28px;
        }

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

        .skill-badges {
            gap: 8px;
        }

        .badge {
            font-size: 0.9rem;
            padding: 7px 11px;
        }
   

}

