/*
============================================================
AKHIL / ID — COMPLETE RESPONSIVE PORTFOLIO UI
Replacement for: css/style.css

Design goals
- Premium dark blue + emerald visual system
- Mobile-first responsive layout
- True single-column mobile experience
- Thumb-friendly controls (44px+)
- Tablet 2-column layouts
- Spacious desktop layouts
- No accidental horizontal overflow
- Responsive typography with clamp()
- Accessible focus states
- Reduced-motion support
- Swipe-friendly project galleries
- Works with the existing Tailwind-based HTML
============================================================
*/

/* ==========================================================
   01. DESIGN TOKENS
   ========================================================== */

:root {
    --bg: #06101d;
    --bg-2: #081522;
    --bg-3: #040b14;

    --surface: #0d1b2b;
    --surface-2: #101f31;
    --surface-soft: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(53, 230, 173, 0.055);

    --text: #e8eef7;
    --text-strong: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;

    --accent: #35e6ad;
    --accent-bright: #72f4c9;
    --accent-dark: #12b982;

    --blue: #64a1ff;
    --purple: #ad8cff;
    --amber: #ffc764;
    --gold: #ffd866;
    --rose: #ff7893;

    --line: rgba(255, 255, 255, 0.085);
    --line-soft: rgba(255, 255, 255, 0.055);
    --line-strong: rgba(255, 255, 255, 0.15);

    --container: 1180px;
    --nav-width: 1180px;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --nav-height: 66px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-sm: 0 14px 40px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 24px 65px rgba(0, 0, 0, 0.23);
    --shadow-lg: 0 35px 100px rgba(0, 0, 0, 0.32);
}


/* ==========================================================
   02. RESET / GLOBAL
   ========================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
}

body,
body.bg-darkBg {
    margin: 0 !important;
    min-width: 0;
    overflow-x: hidden !important;

    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(53, 230, 173, 0.075),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 25%,
            rgba(100, 161, 255, 0.06),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--bg) 0%,
            var(--bg-2) 52%,
            var(--bg-3) 100%
        ) !important;

    color: var(--text) !important;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img {
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none !important;
}

::selection {
    background: var(--accent);
    color: #03130d;
}


/* ==========================================================
   03. BACKGROUND SYSTEM
   ========================================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            rgba(0, 0, 0, 0.5) 58%,
            transparent 100%
        );
}

body::after {
    content: "";
    position: fixed;
    width: 480px;
    height: 480px;
    right: -220px;
    top: 35%;
    z-index: -4;
    pointer-events: none;

    border-radius: 50%;
    background: rgba(53, 230, 173, 0.035);
    filter: blur(115px);
}


/* ==========================================================
   04. ACCESSIBILITY / FOCUS
   ========================================================== */

:where(a, button):focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 4px;
    border-radius: 8px;
}

@media (pointer: coarse) {
    :where(a, button) {
        min-height: 44px;
    }
}


/* ==========================================================
   05. SCROLLBAR
   ========================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #040b14;
}

::-webkit-scrollbar-thumb {
    background: #263b54;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.hide-scrollbar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none !important;
}


/* ==========================================================
   06. SHARED CONTAINER
   ========================================================== */

.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl {
    min-width: 0;
}

@media (min-width: 768px) {
    .max-w-7xl {
        max-width: var(--container) !important;
    }
}


/* ==========================================================
   07. NAVIGATION
   ========================================================== */

#navbar {
    position: fixed !important;
    top: 12px !important;
    left: 50% !important;
    z-index: 1000 !important;

    width: min(var(--nav-width), calc(100% - 28px)) !important;

    transform: translateX(-50%);
    background: transparent !important;
    border: 0 !important;
}

#navbar > div:first-child {
    min-height: var(--nav-height);
    padding: 8px 14px !important;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid var(--line);
    border-radius: 19px;

    background: rgba(6, 16, 29, 0.84) !important;

    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);

    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* Logo */

#navbar a[href="index.html"] {
    min-height: 44px;

    display: inline-flex;
    align-items: center;

    color: #fff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -0.055em !important;
}

#navbar a[href="index.html"] .text-accent {
    color: var(--accent) !important;
}

#navbar a[href="index.html"]::before {
    content: "";

    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-right: 9px;

    border-radius: 50%;
    background: var(--accent);

    box-shadow:
        0 0 0 4px rgba(53, 230, 173, 0.07),
        0 0 18px rgba(53, 230, 173, 0.42);
}


/* Desktop navigation */

#navbar .hidden.lg\:flex {
    display: flex;
    align-items: center;
    gap: 3px !important;
}

#navbar .hidden.lg\:flex a {
    min-height: 44px;

    display: inline-flex;
    align-items: center;

    padding: 9px 12px;
    border-radius: 11px;

    color: #91a0b3 !important;

    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: 0.045em;

    transition:
        color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease !important;
}

#navbar .hidden.lg\:flex a::after {
    display: none !important;
}

#navbar .hidden.lg\:flex a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

#navbar .hidden.lg\:flex a.text-accent {
    color: var(--accent) !important;
    background: rgba(53, 230, 173, 0.075);
}


/* Mobile menu trigger */

#mobile-menu-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--line) !important;
    border-radius: 14px !important;

    background: rgba(255, 255, 255, 0.045) !important;
    color: #e8eef7 !important;

    cursor: pointer;
}

#mobile-menu-btn:hover,
#mobile-menu-btn[aria-expanded="true"] {
    color: var(--accent) !important;
    border-color: rgba(53, 230, 173, 0.28) !important;
    background: rgba(53, 230, 173, 0.075) !important;
}

#mobile-menu-btn svg {
    width: 22px !important;
    height: 22px !important;
}


/* Mobile dropdown */

#mobile-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;

    margin: 0 !important;
    padding: 10px !important;

    background: rgba(6, 16, 29, 0.97) !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;

    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44) !important;

    backdrop-filter: blur(25px) saturate(140%);
    -webkit-backdrop-filter: blur(25px) saturate(140%);

    overflow-y: auto;
    overscroll-behavior: contain;
}

#mobile-menu a {
    width: 100%;

    min-height: 52px !important;

    display: flex !important;
    align-items: center;

    padding: 13px 15px !important;

    border-radius: 13px !important;

    color: #cbd5e1 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
}

#mobile-menu a:hover,
#mobile-menu a:focus-visible,
#mobile-menu a.text-accent {
    color: var(--accent) !important;
    background: rgba(53, 230, 173, 0.075) !important;
}


/* ==========================================================
   08. PAGE HEADERS
   ========================================================== */

body > header {
    position: relative;

    padding:
        clamp(125px, 15vw, 165px)
        20px
        clamp(55px, 8vw, 90px) !important;

    border-bottom: 1px solid var(--line) !important;
    background: transparent !important;

    overflow: hidden;
}

body > header::before {
    content: "";

    position: absolute;

    width: min(700px, 90vw);
    height: 360px;

    left: 50%;
    top: -230px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(53, 230, 173, 0.06);
    filter: blur(105px);

    pointer-events: none;
}

body > header > div {
    position: relative;
    z-index: 2;
}

body > header h1 {
    margin: 0 0 18px !important;

    font-size: clamp(40px, 7vw, 82px) !important;
    line-height: 0.98 !important;

    letter-spacing: -0.065em !important;
    font-weight: 900 !important;

    color: var(--text-strong) !important;
}

body > header h1 .text-accent {
    color: var(--accent) !important;
}

body > header p {
    max-width: 720px !important;
    margin-inline: auto;

    color: var(--muted) !important;

    font-size: clamp(14px, 2vw, 17px) !important;
    line-height: 1.75 !important;
}


/* ==========================================================
   09. HOME HERO
   ========================================================== */

#about {
    min-height: 100svh !important;

    padding:
        clamp(105px, 13vw, 140px)
        20px
        clamp(65px, 9vw, 100px) !important;

    display: flex;
    align-items: center;

    position: relative;
}

#about > div.max-w-4xl {
    width: min(var(--container), 100%) !important;
    max-width: var(--container) !important;

    margin-inline: auto !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(330px, 0.75fr);

    grid-template-rows:
        auto
        auto
        auto
        auto;

    column-gap: clamp(45px, 7vw, 105px);

    align-items: center;

    text-align: left !important;
}


/* Hero profile */

#about > div.max-w-4xl > div:nth-child(1) {
    grid-column: 2;
    grid-row: 1 / 5;

    justify-self: center;

    width: 100%;
    max-width: 430px;

    margin: 0 !important;

    position: relative;

    animation: heroFloat 7s ease-in-out infinite;
}

#about > div.max-w-4xl > div:nth-child(1) > div > div:last-child {
    width: min(410px, 100%) !important;
    height: 520px !important;

    border-radius: 32px !important;

    border: 1px solid rgba(255, 255, 255, 0.13) !important;

    background: #0c1827 !important;

    overflow: hidden;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.38),
        0 0 80px rgba(53, 230, 173, 0.05);

    transform: rotate(1.5deg);

    transition:
        transform 0.65s var(--ease),
        box-shadow 0.65s var(--ease) !important;
}

#about > div.max-w-4xl > div:nth-child(1) img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: saturate(0.9) contrast(1.04);

    transition:
        transform 0.8s var(--ease),
        filter 0.8s var(--ease) !important;
}

#about > div.max-w-4xl > div:nth-child(1):hover
> div > div:last-child {
    transform: rotate(0deg) translateY(-8px);

    box-shadow:
        0 45px 110px rgba(0, 0, 0, 0.48),
        0 0 100px rgba(53, 230, 173, 0.09);
}

#about > div.max-w-4xl > div:nth-child(1):hover img {
    transform: scale(1.04);
    filter: saturate(1) contrast(1.05);
}


/* Availability label */

#about > div.max-w-4xl > div:nth-child(1)::after {
    content: "AVAILABLE FOR OPPORTUNITIES";

    position: absolute;

    right: -18px;
    bottom: 28px;

    padding: 10px 13px;

    border: 1px solid rgba(53, 230, 173, 0.2);
    border-radius: 9px;

    background: rgba(5, 14, 25, 0.88);

    backdrop-filter: blur(15px);

    color: var(--accent);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);

    pointer-events: none;
}


/* Hero status / CGPA */

#about > div.max-w-4xl > div:nth-child(2) {
    grid-column: 1;
    grid-row: 1;

    justify-self: start;

    margin: 0 0 18px !important;
    padding: 9px 14px !important;

    border-radius: 999px !important;

    background: rgba(53, 230, 173, 0.055) !important;
    border: 1px solid rgba(53, 230, 173, 0.18) !important;

    box-shadow: none !important;
}

#about > div.max-w-4xl > div:nth-child(2) p {
    color: var(--accent) !important;

    font-size: 10px !important;
    letter-spacing: 0.13em !important;
}


/* Hero title */

#about > div.max-w-4xl > div:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

#about h1 {
    margin: 0 0 14px !important;

    font-size: clamp(54px, 7.2vw, 100px) !important;
    line-height: 0.88 !important;

    letter-spacing: -0.075em !important;
    font-weight: 900 !important;

    color: var(--text-strong) !important;
}

#about h2 {
    margin: 0 !important;
    padding: 0 !important;

    font-size: clamp(25px, 3vw, 44px) !important;
    line-height: 1.05 !important;

    letter-spacing: -0.05em !important;
    font-weight: 800 !important;

    color: var(--accent) !important;

    background: none !important;
    animation: none !important;
}

#about h2::before {
    content: "// ";
    color: rgba(53, 230, 173, 0.34);
}


/* Hero description */

#about > div.max-w-4xl > p {
    grid-column: 1;
    grid-row: 3;

    max-width: 620px !important;

    margin: 28px 0 0 !important;
    padding: 0 !important;

    color: var(--muted) !important;

    font-size: 15px !important;
    line-height: 1.85 !important;
}

#about > div.max-w-4xl > p strong {
    color: #fff !important;
}


/* Hero CTA */

#about > div.max-w-4xl > div:nth-child(5) {
    grid-column: 1;
    grid-row: 4;

    width: auto !important;

    justify-content: flex-start !important;

    margin-top: 31px;
    padding: 0 !important;
}

#about > div.max-w-4xl > div:nth-child(5) a {
    min-width: 170px;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 20px !important;

    border-radius: 12px !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    text-transform: uppercase;
    letter-spacing: 0.05em;

    transition:
        transform 0.3s var(--ease),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}

#about > div.max-w-4xl > div:nth-child(5) a:first-child {
    background: var(--accent) !important;
    color: #03130d !important;
    border: 1px solid transparent;
}

#about > div.max-w-4xl > div:nth-child(5) a:first-child:hover {
    background: var(--accent-bright) !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(53, 230, 173, 0.18);
}

#about > div.max-w-4xl > div:nth-child(5) a:last-child {
    background: rgba(255, 255, 255, 0.025) !important;
    color: #e3eaf2 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#about > div.max-w-4xl > div:nth-child(5) a:last-child:hover {
    background: rgba(255, 255, 255, 0.065) !important;
    color: var(--accent) !important;
    border-color: rgba(53, 230, 173, 0.23) !important;
    transform: translateY(-3px);
}


/* ==========================================================
   10. HOME SECTION LABELS
   ========================================================== */

#skills,
#leadership,
#achievements {
    position: relative;

    border-color: var(--line) !important;
    background: transparent !important;
}

#skills::before,
#leadership::before,
#achievements::before {
    position: absolute;

    top: 36px;
    left: max(20px, calc((100% - var(--container)) / 2));

    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;

    color: rgba(148, 163, 184, 0.32);
}

#skills::before {
    content: "01 / EXPERTISE";
}

#leadership::before {
    content: "02 / LEADERSHIP";
}

#achievements::before {
    content: "03 / RECOGNITION";
}


/* ==========================================================
   11. SKILLS
   ========================================================== */

#skills {
    padding:
        clamp(90px, 10vw, 150px)
        20px
        clamp(90px, 10vw, 155px) !important;
}

#skills > div {
    width: min(var(--container), 100%) !important;
}

#skills > div > div:first-child {
    text-align: left !important;
    margin-bottom: 60px !important;
}

#skills h2,
#achievements h2 {
    font-size: clamp(40px, 5vw, 70px) !important;
    line-height: 0.93 !important;
    letter-spacing: -0.065em !important;
    font-weight: 900 !important;
}

#skills h2 .text-accent,
#achievements h2 .text-accent {
    color: var(--accent) !important;
}

#skills > div > div:first-child > div,
#achievements > div > div:first-child > div {
    width: 42px !important;
    height: 3px !important;
    background: var(--accent) !important;
    opacity: 1 !important;
}

#skills .grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

#skills .grid > div {
    position: relative;

    min-width: 0;
    min-height: 280px;

    padding: 27px !important;

    border-radius: var(--radius-md) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.012)
        ) !important;

    border: 1px solid var(--line) !important;

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 0.45s var(--ease),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.45s var(--ease) !important;
}

#skills .grid > div::before {
    position: absolute;
    top: 18px;
    right: 20px;

    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;

    color: rgba(255, 255, 255, 0.15);
}

#skills .grid > div:nth-child(1)::before { content: "01"; }
#skills .grid > div:nth-child(2)::before { content: "02"; }
#skills .grid > div:nth-child(3)::before { content: "03"; }
#skills .grid > div:nth-child(4)::before { content: "04"; }

#skills .grid > div::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width 0.5s var(--ease);
}

#skills .grid > div:hover {
    transform: translateY(-7px);

    border-color: rgba(53, 230, 173, 0.24) !important;

    background:
        linear-gradient(
            180deg,
            rgba(53, 230, 173, 0.06),
            rgba(255, 255, 255, 0.018)
        ) !important;

    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.28);
}

#skills .grid > div:hover::after {
    width: 100%;
}

#skills .grid > div > div:first-child {
    width: 52px !important;
    height: 52px !important;

    margin-bottom: 48px !important;

    border-radius: 14px !important;

    background: rgba(53, 230, 173, 0.065) !important;
    border: 1px solid rgba(53, 230, 173, 0.14) !important;

    transition:
        transform 0.4s var(--ease),
        background 0.3s ease !important;
}

#skills .grid > div:hover > div:first-child {
    transform: translateY(-3px) scale(1.04);
    background: rgba(53, 230, 173, 0.11) !important;
}

#skills .grid svg {
    color: var(--accent) !important;
}

#skills .grid h3 {
    margin-bottom: 9px !important;
    font-size: 20px !important;
    line-height: 1.15;
}

#skills .grid p {
    color: var(--muted) !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}


/* ==========================================================
   12. PROJECT FEATURE PANEL
   ========================================================== */

section.bg-cardBg\/20 {
    padding:
        clamp(75px, 9vw, 115px)
        20px !important;

    background: transparent !important;
    border-color: var(--line) !important;
}

section.bg-cardBg\/20 > div {
    position: relative;

    width: min(var(--container), 100%);
    max-width: var(--container) !important;

    padding: clamp(30px, 5vw, 58px) !important;

    text-align: left !important;

    border-radius: 28px !important;

    background:
        radial-gradient(
            circle at 95% 5%,
            rgba(53, 230, 173, 0.12),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            rgba(15, 30, 47, 0.94),
            rgba(7, 16, 28, 0.9)
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.1) !important;

    box-shadow: var(--shadow-md) !important;

    overflow: hidden;
}

section.bg-cardBg\/20 > div::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    pointer-events: none;
}

section.bg-cardBg\/20 > div > * {
    position: relative;
    z-index: 1;
}

section.bg-cardBg\/20 h2 {
    font-size: clamp(38px, 5vw, 70px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.067em !important;
}

section.bg-cardBg\/20 h2 .text-accent {
    color: var(--accent) !important;
}

section.bg-cardBg\/20 p {
    max-width: 720px !important;
    margin-left: 0 !important;

    color: var(--muted) !important;
    line-height: 1.8 !important;
}

section.bg-cardBg\/20 a {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 21px !important;

    background: var(--accent) !important;
    color: #03130d !important;

    border-radius: 12px !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    text-transform: uppercase;
    letter-spacing: 0.05em;

    box-shadow: none !important;

    transition:
        transform 0.3s var(--ease),
        background 0.3s ease,
        box-shadow 0.3s ease !important;
}

section.bg-cardBg\/20 a:hover {
    background: var(--accent-bright) !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(53, 230, 173, 0.16) !important;
}


/* ==========================================================
   13. LEADERSHIP
   ========================================================== */

#leadership {
    padding:
        clamp(90px, 10vw, 150px)
        20px !important;
}

#leadership > div {
    width: min(var(--container), 100%) !important;
}

#leadership > div > div {
    gap: clamp(38px, 7vw, 85px) !important;
}

#leadership h2 {
    font-size: clamp(42px, 5vw, 78px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.065em !important;
}

#leadership h2 .text-accent {
    color: var(--accent) !important;
}

#leadership > div > div > div:first-child > div:first-child {
    border-radius: 999px !important;

    padding: 9px 13px !important;

    background: rgba(173, 140, 255, 0.065) !important;
    border: 1px solid rgba(173, 140, 255, 0.16) !important;

    box-shadow: none !important;
}

#leadership > div > div > div:first-child > p {
    color: var(--muted) !important;
}

#leadership ul {
    padding: 22px !important;

    background: rgba(255, 255, 255, 0.022) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
}

#leadership li {
    color: var(--muted) !important;

    padding-bottom: 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

#leadership li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

#leadership li strong {
    color: #fff !important;
}

#leadership .relative.w-full.aspect-square {
    min-height: 550px;
}

#leadership .relative.w-full.aspect-square > div:first-child {
    width: 70% !important;
    height: 455px !important;

    border-radius: 26px !important;

    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36) !important;
}

#leadership .relative.w-full.aspect-square > div:last-child {
    width: 72% !important;
    height: 275px !important;

    border-radius: 24px !important;

    border: 7px solid var(--bg) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46) !important;
}

#leadership img {
    transition: transform 0.8s var(--ease) !important;
}

#leadership .group:hover img {
    transform: scale(1.045) !important;
}


/* ==========================================================
   14. ACHIEVEMENTS
   ========================================================== */

#achievements {
    padding:
        clamp(90px, 10vw, 150px)
        20px !important;
}

#achievements > div {
    width: min(var(--container), 100%) !important;
}

#achievements > div > div:first-child {
    text-align: left !important;
    margin-bottom: 62px !important;
}

#achievements > div > div:first-child p {
    margin-left: 0 !important;
    color: var(--muted) !important;
}

#achievements > div > div:nth-child(2),
#achievements > div > div:nth-child(3) {
    min-width: 0;

    border-radius: 27px !important;

    background:
        linear-gradient(
            135deg,
            rgba(15, 30, 47, 0.94),
            rgba(8, 18, 31, 0.91)
        ) !important;

    border: 1px solid var(--line) !important;

    box-shadow: var(--shadow-sm) !important;

    transition:
        transform 0.45s var(--ease),
        border-color 0.35s ease !important;
}

#achievements > div > div:nth-child(2):hover,
#achievements > div > div:nth-child(3):hover {
    transform: translateY(-6px);
    border-color: rgba(53, 230, 173, 0.2) !important;
}

#achievements img {
    transition: transform 0.8s var(--ease) !important;
}

#achievements .group:hover img {
    transform: scale(1.04) !important;
}

#achievements h3 {
    font-size: clamp(31px, 4vw, 59px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.06em !important;
}

#achievements p {
    color: var(--muted) !important;
}

#achievements strong {
    color: #fff !important;
}

#achievements blockquote {
    background: rgba(100, 161, 255, 0.03) !important;

    border-left-width: 2px !important;
    border-radius: 0 13px 13px 0 !important;

    color: #cdd6e2 !important;
}


/* ==========================================================
   15. PROJECT / CASE STUDY PAGES
   ========================================================== */

body:has(article) {
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(53, 230, 173, 0.05),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #06101d,
            #071321
        ) !important;
}

article {
    position: relative;
    min-width: 0;

    border-color: var(--line) !important;
    background: transparent !important;
}

article:last-of-type {
    border-bottom: none !important;
}

article > div {
    width: min(var(--container), 100%) !important;
    max-width: var(--container) !important;
    min-width: 0;
}

article h2 {
    margin-top: 0 !important;

    font-size: clamp(36px, 4.5vw, 66px) !important;
    line-height: 0.94 !important;

    letter-spacing: -0.065em !important;
    font-weight: 900 !important;

    color: #fff !important;

    overflow-wrap: anywhere;
}

article h3 {
    letter-spacing: -0.035em;
}

article > div > div:first-child > p {
    color: #bdc9d7 !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
}

article > div > div:first-child > span:first-child {
    padding: 8px 12px !important;

    border-radius: 999px !important;

    font-size: 9px !important;
    letter-spacing: 0.1em !important;

    background: rgba(53, 230, 173, 0.055) !important;
    border-color: rgba(53, 230, 173, 0.18) !important;
}

article a[target="_blank"] {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px !important;

    border-radius: 10px !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;

    text-transform: uppercase;

    transition:
        transform 0.3s var(--ease),
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease !important;
}

article a[target="_blank"]:hover {
    transform: translateY(-2px);
}


/* Project quote */

article blockquote {
    max-width: 950px !important;

    margin-bottom: 58px !important;

    padding: 15px 22px !important;

    border-left-width: 2px !important;
    border-radius: 0 15px 15px 0 !important;

    background: rgba(255, 255, 255, 0.022) !important;
    border-color: rgba(53, 230, 173, 0.5) !important;

    color: #bbc7d5 !important;

    font-size: 15px !important;
    line-height: 1.8 !important;
}


/* Project gallery */

article .overflow-x-auto {
    width: 100%;

    padding-bottom: 18px !important;

    display: flex;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x proximity;
}

article .overflow-x-auto img {
    flex: 0 0 auto;

    border-radius: 18px !important;

    border-color: rgba(255, 255, 255, 0.09) !important;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;

    transition:
        transform 0.65s var(--ease),
        border-color 0.35s ease,
        box-shadow 0.4s ease !important;
}

article .overflow-x-auto img:hover {
    transform: translateY(-5px) !important;

    border-color: rgba(53, 230, 173, 0.25) !important;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
}

article .overflow-x-auto::-webkit-scrollbar {
    height: 4px;
}

article .overflow-x-auto::-webkit-scrollbar-track {
    background: transparent;
}

article .overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(53, 230, 173, 0.25);
    border-radius: 999px;
}


/* Project feature cards */

article .grid.lg\:grid-cols-2 > div,
article .grid.lg\:grid-cols-2 .bg-cardBg\/30 {
    min-width: 0;

    padding: 27px !important;

    border-radius: 21px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.037),
            rgba(255, 255, 255, 0.016)
        ) !important;

    border: 1px solid var(--line) !important;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;

    transition:
        transform 0.4s var(--ease),
        border-color 0.35s ease,
        background 0.35s ease !important;
}

article .grid.lg\:grid-cols-2 > div:hover {
    transform: translateY(-5px);

    background:
        linear-gradient(
            180deg,
            rgba(53, 230, 173, 0.05),
            rgba(255, 255, 255, 0.016)
        ) !important;

    border-color: rgba(53, 230, 173, 0.2) !important;
}

article .grid.lg\:grid-cols-2 > div > div:first-child {
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

article .grid.lg\:grid-cols-2 > div > div:first-child > div {
    width: 44px;
    height: 44px;

    padding: 10px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px !important;
}

article .grid.lg\:grid-cols-2 h3 {
    font-size: 19px !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

article .grid.lg\:grid-cols-2 li {
    color: var(--muted) !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
}

article .grid.lg\:grid-cols-2 li strong {
    color: #f4f7fa !important;
}

article code {
    color: var(--accent) !important;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    background: rgba(53, 230, 173, 0.06);

    border: 1px solid rgba(53, 230, 173, 0.1);

    padding: 2px 5px;

    border-radius: 5px;

    overflow-wrap: anywhere;
}


/* Project tags */

article .flex.flex-wrap.mt-12,
article .flex.flex-wrap.mt-16 {
    gap: 8px !important;
}

article .flex.flex-wrap.mt-12 span,
article .flex.flex-wrap.mt-16 span {
    min-height: 32px;

    display: inline-flex;
    align-items: center;

    padding: 7px 10px !important;

    border-radius: 9px !important;

    background: rgba(255, 255, 255, 0.025) !important;

    border: 1px solid rgba(255, 255, 255, 0.09) !important;

    color: #aebaca !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    overflow-wrap: anywhere;
}

article .flex.flex-wrap.mt-12 span:hover,
article .flex.flex-wrap.mt-16 span:hover {
    color: #fff !important;
    border-color: rgba(53, 230, 173, 0.2) !important;
    background: rgba(53, 230, 173, 0.04) !important;
}


/* Project statistics */

article .text-6xl,
article .text-7xl {
    font-size: clamp(58px, 7vw, 92px) !important;

    line-height: 0.9;

    letter-spacing: -0.075em;

    color: var(--purple) !important;

    background: none !important;

    -webkit-text-fill-color: initial !important;
}


/* ==========================================================
   16. CERTIFICATIONS
   ========================================================== */

body:has(.text-yellow-400) section {
    background: transparent !important;
}

body:has(.text-yellow-400) section > div {
    width: min(var(--container), 100%) !important;
    max-width: var(--container) !important;
}

body:has(.text-yellow-400) section .grid {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 16px !important;
}

body:has(.text-yellow-400) section .grid > div {
    position: relative;

    min-width: 0;
    min-height: 335px;

    padding: 28px !important;

    border-radius: 21px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.014)
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.09) !important;

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);

    overflow: hidden;

    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s var(--ease),
        border-color 0.35s ease,
        background 0.35s ease !important;
}

body:has(.text-yellow-400) section .grid > div::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );

    opacity: 0.65;
}

body:has(.text-yellow-400) section .grid > div:hover {
    transform: translateY(-7px);

    border-color: rgba(255, 255, 255, 0.16) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.02)
        ) !important;

    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

body:has(.text-yellow-400) section .grid > div > div:first-child > div {
    width: 50px !important;
    height: 50px !important;

    padding: 11px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px !important;

    transition:
        transform 0.4s var(--ease),
        background 0.3s ease !important;
}

body:has(.text-yellow-400) section .grid > div:hover
> div:first-child > div {
    transform: translateY(-3px) rotate(-2deg) scale(1.04);
}

body:has(.text-yellow-400) section .grid > div > div:first-child span {
    min-height: 30px;

    display: inline-flex;
    align-items: center;

    padding: 7px 9px !important;

    border-radius: 999px !important;

    font-size: 8px !important;
    letter-spacing: 0.09em !important;
}

body:has(.text-yellow-400) section .grid > div h3 {
    margin: 0 0 8px !important;

    font-size: 20px !important;
    line-height: 1.18 !important;

    letter-spacing: -0.035em;

    color: #fff !important;

    overflow-wrap: anywhere;
}

body:has(.text-yellow-400) section .grid > div > p:first-of-type {
    color: #8fa0b3 !important;

    font-size: 11px !important;
    line-height: 1.55 !important;
}

body:has(.text-yellow-400) section .grid > div > p:nth-of-type(2) {
    color: #aebbc9 !important;

    font-size: 12px !important;
    line-height: 1.7 !important;
}

body:has(.text-yellow-400) section .grid > div .flex.flex-wrap {
    gap: 6px !important;
}

body:has(.text-yellow-400) section .grid > div .flex.flex-wrap span {
    min-height: 28px;

    display: inline-flex;
    align-items: center;

    padding: 6px 8px !important;

    border-radius: 7px !important;

    background: rgba(255, 255, 255, 0.025) !important;

    border: 1px solid rgba(255, 255, 255, 0.075) !important;

    color: #929fb0 !important;

    font-size: 8px !important;
    line-height: 1.3;
}


/* Certification category accents */

body:has(.text-yellow-400) section .grid > div[class*="yellow"] {
    border-color: rgba(255, 216, 102, 0.16) !important;
}

body:has(.text-yellow-400) section .grid > div[class*="yellow"]:hover {
    border-color: rgba(255, 216, 102, 0.34) !important;
}

body:has(.text-amber-400) section .grid > div[class*="amber"] {
    border-color: rgba(255, 199, 100, 0.13) !important;
}

body:has(.text-amber-400) section .grid > div[class*="amber"]:hover {
    border-color: rgba(255, 199, 100, 0.28) !important;
}

body:has(.text-blue-400) section .grid > div[class*="blue"] {
    border-color: rgba(100, 161, 255, 0.14) !important;
}

body:has(.text-blue-400) section .grid > div[class*="blue"]:hover {
    border-color: rgba(100, 161, 255, 0.3) !important;
}

body:has(.text-emerald-400) section .grid > div[class*="emerald"] {
    border-color: rgba(53, 230, 173, 0.14) !important;
}

body:has(.text-emerald-400) section .grid > div[class*="emerald"]:hover {
    border-color: rgba(53, 230, 173, 0.3) !important;
}


/* ==========================================================
   17. FOOTER
   ========================================================== */

footer {
    position: relative;

    margin-top: 0 !important;

    padding:
        clamp(65px, 9vw, 95px)
        20px
        35px !important;

    background: #040b14 !important;

    border-top: 1px solid var(--line) !important;
    border-color: var(--line) !important;

    overflow: hidden;
}

footer::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 250px;

    left: 50%;
    bottom: -200px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(53, 230, 173, 0.055);

    filter: blur(100px);

    pointer-events: none;
}

footer > div {
    position: relative;
    z-index: 2;
}

footer h2 {
    margin: 0 0 25px !important;

    font-size: clamp(38px, 6vw, 78px) !important;
    line-height: 0.92 !important;

    letter-spacing: -0.07em !important;

    color: #fff !important;
}

footer p {
    color: var(--muted) !important;
}

footer a[href^="mailto"] {
    min-height: 44px;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: var(--accent) !important;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 14px !important;
    font-weight: 700 !important;

    text-decoration: underline;
    text-underline-offset: 5px;
}

footer a[href^="mailto"]:hover {
    color: #fff !important;
}

footer .flex.justify-center a {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;

    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px !important;

    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    color: #718198 !important;

    transition:
        transform 0.3s var(--ease),
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease !important;
}

footer .flex.justify-center a:hover {
    transform: translateY(-4px);

    background: rgba(53, 230, 173, 0.055) !important;
    border-color: rgba(53, 230, 173, 0.18) !important;

    color: var(--accent) !important;
}


/* ==========================================================
   18. REVEAL ANIMATIONS
   ========================================================== */

.fade-in,
.reveal {
    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity 0.75s var(--ease),
        transform 0.75s var(--ease);
}

.fade-in.appear,
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


/* ==========================================================
   19. LARGE DESKTOP
   ========================================================== */

@media (min-width: 1280px) {
    #navbar {
        width: min(1220px, calc(100% - 40px)) !important;
    }

    #navbar > div:first-child {
        padding-inline: 20px !important;
    }

    #about {
        padding-inline: 40px !important;
    }
}


/* ==========================================================
   20. TABLET — 768px TO 1099px
   ========================================================== */

@media (min-width: 768px) and (max-width: 1099px) {
    #navbar {
        width: calc(100% - 28px) !important;
    }

    #about {
        min-height: auto !important;
        padding-top: 130px !important;
    }

    #about > div.max-w-4xl {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(270px, 0.72fr);

        column-gap: 40px;
    }

    #about > div.max-w-4xl > div:nth-child(1) > div > div:last-child {
        height: 440px !important;
    }

    #about h1 {
        font-size: clamp(52px, 7vw, 82px) !important;
    }

    #skills .grid,
    body:has(.text-yellow-400) section .grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    #leadership > div > div {
        gap: 45px !important;
    }

    #leadership .relative.w-full.aspect-square {
        min-height: 460px;
    }

    #leadership .relative.w-full.aspect-square > div:first-child {
        height: 380px !important;
    }

    #leadership .relative.w-full.aspect-square > div:last-child {
        height: 230px !important;
    }

    article .grid.lg\:grid-cols-2 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


/* ==========================================================
   21. MOBILE — <= 767px
   ========================================================== */

@media (max-width: 767px) {
    :root {
        --nav-height: 60px;
    }

    html {
        scroll-padding-top: 88px;
    }

    body {
        font-size: 15px;
    }

    body::before {
        background-size: 34px 34px;
        opacity: 0.55;
    }

    body::after {
        display: none;
    }


    /* ---------- NAV ---------- */

    #navbar {
        top: 8px !important;
        width: calc(100% - 16px) !important;
    }

    #navbar > div:first-child {
        min-height: 60px;

        padding: 7px 9px !important;

        border-radius: 17px;
    }

    #navbar a[href="index.html"] {
        font-size: 17px !important;
    }

    #mobile-menu {
        max-height: calc(100svh - 82px);
    }

    #mobile-menu a {
        min-height: 52px !important;
    }


    /* ---------- PAGE HEADER ---------- */

    body > header {
        padding:
            108px
            18px
            52px !important;

        text-align: left !important;
    }

    body > header h1 {
        font-size: clamp(39px, 12vw, 56px) !important;
        line-height: 0.98 !important;
    }

    body > header p {
        margin-left: 0;
        margin-right: 0;

        font-size: 14px !important;
        line-height: 1.72 !important;
    }


    /* ---------- HERO: SINGLE COLUMN ---------- */

    #about {
        min-height: auto !important;

        padding:
            102px
            16px
            70px !important;

        display: block !important;
    }

    #about > div.max-w-4xl {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        gap: 0 !important;

        text-align: left !important;
    }

    #about > div.max-w-4xl > div:nth-child(1) {
        order: -1;

        width: 100% !important;
        max-width: 340px !important;

        margin:
            0 auto 30px !important;

        align-self: center;
    }

    #about > div.max-w-4xl > div:nth-child(1) > div {
        width: 100% !important;

        display: flex;
        justify-content: center;
    }

    #about > div.max-w-4xl > div:nth-child(1)
    > div > div:last-child {
        width: min(86vw, 320px) !important;

        height: min(105vw, 405px) !important;
        min-height: 315px;

        border-radius: 25px !important;

        transform: rotate(1deg);
    }

    #about > div.max-w-4xl > div:nth-child(1)::after {
        right: 0;
        bottom: 16px;

        padding: 8px 10px;

        font-size: 7px;
        letter-spacing: 0.1em;
    }

    #about > div.max-w-4xl > div:nth-child(2) {
        order: 1;

        align-self: flex-start;

        margin-bottom: 14px !important;
    }

    #about > div.max-w-4xl > div:nth-child(3) {
        order: 2;
    }

    #about h1 {
        width: 100%;

        font-size: clamp(48px, 15vw, 72px) !important;
        line-height: 0.91 !important;

        letter-spacing: -0.07em !important;
    }

    #about h2 {
        font-size: clamp(23px, 7vw, 34px) !important;
        line-height: 1.08 !important;
    }

    #about > div.max-w-4xl > p {
        order: 3;

        max-width: 620px !important;

        margin-top: 20px !important;

        font-size: 14px !important;
        line-height: 1.75 !important;
    }

    #about > div.max-w-4xl > div:nth-child(5) {
        order: 4;

        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 10px !important;

        margin-top: 25px;
    }

    #about > div.max-w-4xl > div:nth-child(5) a {
        width: 100% !important;

        min-height: 52px !important;

        display: flex !important;
        align-items: center;
        justify-content: center;
    }


    /* ---------- HOME SECTIONS ---------- */

    #skills,
    #leadership,
    #achievements {
        padding:
            68px
            16px
            72px !important;
    }

    #skills::before,
    #leadership::before,
    #achievements::before {
        top: 25px;
        left: 16px;
        font-size: 8px;
    }

    #skills > div > div:first-child,
    #achievements > div > div:first-child {
        margin-bottom: 38px !important;
    }

    #skills h2,
    #achievements h2 {
        font-size: clamp(34px, 9vw, 46px) !important;
    }

    #skills .grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    #skills .grid > div {
        min-height: auto;

        padding: 22px !important;

        border-radius: 20px !important;
    }

    #skills .grid > div > div:first-child {
        margin-bottom: 35px !important;
    }

    #skills .grid > div:hover {
        transform: none;
    }


    /* ---------- PROJECT FEATURE ---------- */

    section.bg-cardBg\/20 {
        padding:
            62px
            16px !important;
    }

    section.bg-cardBg\/20 > div {
        width: 100%;

        padding:
            28px
            21px !important;

        border-radius: 22px !important;
    }

    section.bg-cardBg\/20 h2 {
        font-size: clamp(34px, 9vw, 45px) !important;
    }

    section.bg-cardBg\/20 p {
        font-size: 14px !important;
        line-height: 1.72 !important;
    }

    section.bg-cardBg\/20 a {
        width: 100% !important;
        min-height: 52px;
    }


    /* ---------- LEADERSHIP ---------- */

    #leadership > div > div {
        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 38px !important;
    }

    #leadership h2 {
        font-size: clamp(38px, 10vw, 48px) !important;
    }

    #leadership .relative.w-full.aspect-square {
        min-height: 390px;

        margin-top: 8px;
    }

    #leadership .relative.w-full.aspect-square > div:first-child {
        width: 75% !important;
        height: 315px !important;

        border-radius: 23px !important;
    }

    #leadership .relative.w-full.aspect-square > div:last-child {
        width: 77% !important;
        height: 205px !important;

        border-width: 6px !important;
        border-radius: 21px !important;
    }

    #leadership ul {
        padding: 18px !important;
        border-radius: 16px !important;
    }


    /* ---------- ACHIEVEMENTS ---------- */

    #achievements > div > div:nth-child(2),
    #achievements > div > div:nth-child(3) {
        width: 100% !important;

        padding: 20px !important;

        border-radius: 20px !important;
    }

    #achievements h3 {
        font-size: clamp(31px, 9vw, 42px) !important;
    }

    #achievements > div > div:nth-child(2):hover,
    #achievements > div > div:nth-child(3):hover {
        transform: none;
    }


    /* ---------- CASE STUDIES ---------- */

    article {
        padding:
            68px
            16px !important;
    }

    article > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    article h2 {
        font-size: clamp(32px, 9.5vw, 48px) !important;
        line-height: 1.02 !important;
    }

    article > div > div:first-child > p {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    article blockquote {
        margin-bottom: 38px !important;

        padding:
            12px
            15px !important;

        font-size: 13px !important;
        line-height: 1.72 !important;

        border-radius: 0 13px 13px 0 !important;
    }


    /* Mobile project gallery:
       one large image visible at a time */
    article .overflow-x-auto {
        gap: 12px !important;

        margin-inline: -16px;

        padding-inline: 16px;
        padding-bottom: 12px !important;

        scroll-snap-type: x mandatory;
    }

    article .overflow-x-auto img {
        width: calc(100vw - 48px) !important;

        max-width: 360px !important;

        height: auto !important;
        aspect-ratio: 4 / 3;

        object-fit: cover;

        border-radius: 17px !important;

        scroll-snap-align: center;

        transform: none !important;
    }

    article .overflow-x-auto img:hover {
        transform: none !important;
    }


    /* Feature cards become one column */
    article .grid.lg\:grid-cols-2 {
        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 13px !important;
    }

    article .grid.lg\:grid-cols-2 > div {
        padding: 21px !important;
        border-radius: 18px !important;
    }

    article .grid.lg\:grid-cols-2 > div:hover {
        transform: none;
    }

    article .grid.lg\:grid-cols-2 h3 {
        font-size: 18px !important;
    }

    article .grid.lg\:grid-cols-2 li {
        font-size: 13px !important;
        line-height: 1.72 !important;
    }

    article .text-6xl,
    article .text-7xl {
        font-size: 62px !important;
    }

    article .flex.flex-wrap.mt-12,
    article .flex.flex-wrap.mt-16 {
        gap: 7px !important;
    }


    /* ---------- CERTIFICATIONS ---------- */

    body:has(.text-yellow-400) section {
        padding:
            58px
            16px
            72px !important;
    }

    body:has(.text-yellow-400) section .grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    body:has(.text-yellow-400) section .grid > div {
        min-height: auto;

        padding: 22px !important;

        border-radius: 20px !important;
    }

    body:has(.text-yellow-400) section .grid > div:hover {
        transform: none;
    }

    body:has(.text-yellow-400) section .grid > div h3 {
        font-size: 19px !important;
    }


    /* ---------- FOOTER ---------- */

    footer {
        padding:
            65px
            16px
            30px !important;
    }

    footer h2 {
        font-size: clamp(34px, 9vw, 45px) !important;
    }

    footer a[href^="mailto"] {
        font-size: 12px !important;
        overflow-wrap: anywhere;
    }

    footer .flex.justify-center a {
        width: 46px;
        height: 46px;
    }
}


/* ==========================================================
   22. SMALL PHONES — <= 420px
   ========================================================== */

@media (max-width: 420px) {
    #navbar {
        width: calc(100% - 12px) !important;
    }

    #navbar > div:first-child {
        padding-inline: 8px !important;
    }

    #navbar a[href="index.html"] {
        font-size: 16px !important;
    }

    #mobile-menu-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    #about {
        padding-top: 98px !important;
    }

    #about > div.max-w-4xl > div:nth-child(1) {
        max-width: 290px !important;
        margin-bottom: 25px !important;
    }

    #about > div.max-w-4xl > div:nth-child(1)
    > div > div:last-child {
        width: min(84vw, 285px) !important;
        height: 350px !important;
        min-height: 300px;
        border-radius: 23px !important;
    }

    #about h1 {
        font-size: 47px !important;
    }

    #about h2 {
        font-size: 22px !important;
    }

    #about > div.max-w-4xl > p {
        font-size: 13.5px !important;
    }

    body > header h1 {
        font-size: 39px !important;
    }

    article h2 {
        font-size: 33px !important;
    }

    #skills h2,
    #achievements h2 {
        font-size: 35px !important;
    }

    #leadership h2 {
        font-size: 38px !important;
    }

    footer h2 {
        font-size: 38px !important;
    }
}


/* ==========================================================
   23. VERY SMALL PHONES — <= 360px
   ========================================================== */

@media (max-width: 360px) {
    body::before {
        background-size: 30px 30px;
    }

    #navbar a[href="index.html"]::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
        margin-right: 7px;
    }

    #navbar a[href="index.html"] {
        font-size: 15px !important;
    }

    #about h1 {
        font-size: 42px !important;
    }

    #about h2 {
        font-size: 21px !important;
    }

    article .overflow-x-auto img {
        width: calc(100vw - 38px) !important;
    }

    footer h2 {
        font-size: 35px !important;
    }
}


/* ==========================================================
   24. LANDSCAPE PHONES
   ========================================================== */

@media (max-width: 767px) and (orientation: landscape) {
    #about {
        padding-top: 92px !important;
    }

    #about > div.max-w-4xl > div:nth-child(1) {
        max-width: 230px !important;
    }

    #about > div.max-w-4xl > div:nth-child(1)
    > div > div:last-child {
        height: 290px !important;
    }
}


/* ==========================================================
   25. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================
   AKHIL / ID — RESPONSIVE UI STYLES
   ========================================================== */

/* Background Mesh System */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040b14;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #35e6ad;
}

/* Focus Outlines for Accessibility */
:where(a, button):focus-visible {
    outline: 2px solid #35e6ad;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Base Link Reset */
a {
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

/* Reveal Animations (Controlled by JS Observer) */
.reveal {
    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.active {
    opacity: 1;
    transform: translateY(0);
}

/* Active Nav Links styling (Optional hook for JS) */
.nav-link.active {
    color: #35e6ad;
}

/* Prevent layout shift on mobile */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile Base Rule: Ensure minimum touch targets for all interactive elements */
@media (max-width: 768px) {
    a, button {
        min-height: 48px; 
    }
    
    /* Ensure text breaks properly on very small devices */
    h1, h2, p {
        word-break: break-word;
    }
}
