/*
Theme Name: Preet Portfolio
Author: Preet Patel
Version: 3.0.0
Text Domain: preet-portfolio
*/

/* =============================================
   CSS VARIABLES — LIGHT + DARK MODE
   ============================================= */
:root,
[data-theme="light"] {
    --primary: #dd5a2c;
    --primary-dark: #b84820;
    --primary-light: #e87550;
    --primary-pale: #fdf0eb;
    --primary-xlt: #fff5f1;
    --primary-glow: rgba(221, 90, 44, 0.18);

    --bg: #ffffff;
    --bg-1: #fdfdfd;
    --bg-2: #fafafa;
    --bg-card: #ffffff;
    --bg-hover: #f5f5f5;

    --text: #1a1a1a;
    --text-2: #2d2d2d;
    --text-3: #444444;
    --text-muted: #777777;
    --text-light: #aaaaaa;

    --border: #e8e8e8;
    --border-2: #f0f0f0;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.14);
    --shadow-color: 0 8px 30px rgba(221, 90, 44, 0.28);

    --nav-bg: rgba(255, 255, 255, 0.96);
    --toggle-bg: #f0f0f0;
    --toggle-knob: #ffffff;
    --toggle-icon: '🌙';
}

[data-theme="dark"] {
    --primary: #dd5a2c;
    --primary-dark: #b84820;
    --primary-light: #f07043;
    --primary-pale: #2a1a12;
    --primary-xlt: #1e1410;
    --primary-glow: rgba(221, 90, 44, 0.22);

    --bg: #0e0e0e;
    --bg-1: #080808;
    --bg-2: #171717;
    --bg-card: #1c1c1c;
    --bg-hover: #222222;

    --text: #f2f2f2;
    --text-2: #dddddd;
    --text-3: #bbbbbb;
    --text-muted: #888888;
    --text-light: #555555;

    --border: #2a2a2a;
    --border-2: #222222;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.6);
    --shadow-color: 0 8px 30px rgba(221, 90, 44, 0.35);

    --nav-bg: rgba(14, 14, 14, 0.96);
    --toggle-bg: #2a2a2a;
    --toggle-knob: #dd5a2c;
    --toggle-icon: '☀️';
}

/* =============================================
   PERFORMANCE
   ============================================= */
/* Sections below the fold — skip rendering until in viewport */
#skills,
#projects,
#experience,
#leadership,
#internships,
#community,
#testimonials,
#contact,
.about-skills-section,
.about-journey-section,
.about-cta-section,
.single-related-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg-1);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.up-panel-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

ul {
    list-style: none;
}

::selection {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor-dot {
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, background 0.3s ease;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(221, 90, 44, 0.45);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.14s ease;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* =============================================
   LOADER
   ============================================= */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.loader-logo span {
    display: inline-block;
    transform: translateY(110%);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.loader-dots span {
    width: 9px;
    height: 9px;
    background: var(--primary-pale);
    border-radius: 50%;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s
}

.loader-dots span:nth-child(2) {
    animation-delay: .15s
}

.loader-dots span:nth-child(3) {
    animation-delay: .3s
}

.loader-dots span:nth-child(4) {
    animation-delay: .45s
}

.loader-dots span:nth-child(5) {
    animation-delay: .6s
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        background: var(--border);
        transform: scale(1);
    }

    40% {
        background: var(--primary);
        transform: scale(1.35);
    }
}

/* =============================================
   SCROLL PROGRESS
   ============================================= */

/* =============================================
   HEADER / NAV
   ============================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 18px 0;
    transition: all 0.35s ease;
}

/* Header at top of page (over hero dark image) — always white text */
#site-header:not(.scrolled) .site-logo,
#site-header:not(.scrolled) .nav-menu a {
    color: #fff !important;
}

#site-header:not(.scrolled) .site-logo span {
    color: var(--primary) !important;
}

#site-header:not(.scrolled) #themeToggle {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Header scrolled — solid background, theme-aware text */
#site-header.scrolled {
    padding: 10px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

#site-header.scrolled .nav-menu a {
    color: var(--text-2) !important;
}

#site-header.scrolled .nav-menu a.nav-cta {
    color: #fff !important;
}

#site-header.scrolled .site-logo {
    color: var(--text) !important;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 500px) {
    .nav-container {
        padding: 0 12px;
        gap: 8px;
    }
}

/* Nav right group: menu + toggle together */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 500px) {
    .nav-right {
        gap: 8px;
    }
}

.site-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-transform: uppercase;
}

@media (max-width: 500px) {
    .site-logo {
        font-size: 0.95rem;
        letter-spacing: 0.04em;
    }
}

.site-logo span {
    color: var(--primary);
}

.site-logo:hover {
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: 8px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

/* Only color change on hover — no background box */
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: transparent;
}

.nav-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: var(--primary) !important;
    color: #fff !important;
    padding: 9px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    box-shadow: var(--shadow-color) !important;
    margin-left: 6px !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 36px rgba(221, 90, 44, 0.45) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
}

.menu-item-resume-mobile a.nav-cta {
    display: flex !important;
    justify-content: center;
    width: 100%;
}

@media (max-width: 768px) {
    .header-resume-btn {
        display: none !important;
    }

    .theme-toggle-desktop {
        display: block !important;
    }
}

/* Theme Toggle Item in Mobile Menu */
.nav-theme-item {
    display: none;
    padding: 18px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-theme-item {
        display: flex;
    }
}

.nav-theme-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.theme-toggle-mobile {
    width: 46px;
    height: 24px;
    background: var(--toggle-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s ease;
}

.theme-toggle-mobile span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-mobile.dark span {
    transform: translateX(22px);
}

[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(24px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header not scrolled — white icon */
#site-header:not(.scrolled) .hamburger span {
    background: #fff;
}

#site-header.scrolled .hamburger span {
    background: var(--text);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform-origin: left;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(-1px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(1px);
}

/* Dropdown Nav — supports both WP class (menu-item-has-children) and legacy (has-dropdown) */
.nav-menu li.menu-item-has-children,
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.menu-item-has-children>.sub-menu,
.nav-menu li.has-dropdown>.nav-dropdown,
.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    padding: 8px;
    z-index: 2100;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    pointer-events: none;
}

/* Show on hover (desktop) */
.nav-menu li.menu-item-has-children:hover>.sub-menu,
.nav-menu li.has-dropdown:hover>.nav-dropdown,
/* Show on JS .open class (mobile/click) */
.nav-menu li.menu-item-has-children.open>.sub-menu,
.nav-menu li.has-dropdown.open>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sub-menu li a,
.nav-dropdown li a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sub-menu li a:hover,
.nav-dropdown li a:hover {
    color: var(--primary);
    background: var(--primary-xlt);
}

/* Dropdown arrow */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-menu li.menu-item-has-children.open .dropdown-arrow,
.nav-menu li.menu-item-has-children:hover .dropdown-arrow,
.nav-menu li.has-dropdown.open .dropdown-arrow,
.nav-menu li.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Active/current menu item */
.nav-menu li.current-menu-item>a,
.nav-menu li.current_page_item>a,
.nav-menu li.current-menu-ancestor>a {
    color: var(--primary);
}

/* Dropdown on dark hero (not scrolled) */
#site-header:not(.scrolled) .sub-menu,
#site-header:not(.scrolled) .nav-dropdown {
    background: rgba(10, 10, 10, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
}

#site-header:not(.scrolled) .sub-menu li a,
#site-header:not(.scrolled) .nav-dropdown li a {
    color: #ccc !important;
}

#site-header:not(.scrolled) .sub-menu li a:hover,
#site-header:not(.scrolled) .nav-dropdown li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* =============================================
   CONTAINER & SECTION BASE
   ============================================= */
.section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: var(--bg-2);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-xlt);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-top: 14px;
    max-width: 580px;
    line-height: 1.85;
    font-weight: 400;
}

.section-line {
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    margin-top: 16px;
}

/* AOS */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.88);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 50px;
    box-shadow: var(--shadow-color);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-dark);
    transform: translateX(-101%);
    transition: transform 0.4s ease;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(221, 90, 44, 0.45);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-color);
}

/* =============================================
   HERO SLIDER SECTION
   ============================================= */
/* =============================================
   ELITE HERO SECTION — VIBRANT & ANIMATED
   ============================================= */
#hero {
    padding: 0;
    height: 82vh;
    min-height: 520px;
    max-height: 900px;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
}

.hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

/* Ken Burns Effect */
.ken-burns img {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-glow-halo {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(221, 162, 5, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: haloPulse 8s ease-in-out infinite;
}

@keyframes haloPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Accent Dot Elite */
.hero-accent-dot {
    position: absolute;
    top: 45px;
    left: 45px;
    z-index: 100;
}

.dot-inner {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.dot-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: dotPulseElite 2s infinite;
}

@keyframes dotPulseElite {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    padding-top: 40px;
}

/* Centered hero layout (no quote) */
.hero-content-center {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: fadeUp 1s ease 0.3s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content-center .hero-actions-elite {
    animation: fadeUp 1s ease 0.55s both;
    justify-content: center;
}

/* Floating Badge */
.hero-badge-elite {
    display: inline-block;
    margin-bottom: 30px;
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.badge-prefix {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    background: rgba(221, 162, 5, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(221, 162, 5, 0.2);
}

.badge-main {
    margin-top: 15px;
}

.badge-hi {
    display: block;
    font-size: 1rem;
    color: #888;
    margin-bottom: 4px;
}

.badge-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.badge-dot {
    color: var(--primary);
}

/* Headline Reveal */
.hero-big-text {
    font-size: clamp(4rem, 11vw, 9.5rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: #fff;
    text-transform: uppercase;
}

.hbt-reveal {
    display: block;
    overflow: hidden;
    position: relative;
}

.hbt-reveal::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
}

/* Re-using AOS or Custom */
.hbt-line {
    opacity: 0;
    transform: translateY(100%);
    animation: revealText 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d) forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Role Ticker Elite */
.hero-ticker-elite {
    margin-top: 25px;
    position: relative;
    height: 1.25em;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-item {
    font-size: clamp(2.5rem, 6.5vw, 6rem);
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    height: 1.25em;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 15px rgba(221, 162, 5, 0.4));
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.ticker-item.active {
    opacity: 1;
}

.ticker-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(221, 162, 5, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

/* Buttons Elite */
.hero-actions-elite {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.btn-elite-primary {
    padding: 16px 36px;
    background: #fff;
    color: #000;
    border-radius: 50px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-elite-primary:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.btn-elite-outline {
    padding: 16px 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.btn-elite-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* Bottom Info */
.hero-bottom-info {
    position: absolute;
    bottom: 50px;
    left: 40px;
    z-index: 10;
}

.scroll-indicator-elite {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #555;
    font-weight: 700;
}

.scroll-bar {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.scroll-point {
    width: 100%;
    height: 20%;
    background: var(--primary);
    position: absolute;
    top: 0;
    animation: scrollSlide 2s ease-in-out infinite;
}

@keyframes scrollSlide {
    0% {
        top: 0;
        height: 0;
    }

    50% {
        top: 20%;
        height: 60%;
    }

    100% {
        top: 100%;
        height: 0;
    }
}

/* Indicators Elite */
.hero-indicators-elite {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hsi-dot-elite {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.hsi-dot-elite.active {
    background: var(--primary);
    width: 40px;
    border-radius: 10px;
}

/* Responsive */
/* =============================================
   HERO QUOTE STYLES
   ============================================= */
.hero-quote-wrap {
    max-width: 860px;
    margin-bottom: 48px;
}

.hero-quote-mark {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(4rem, 7vw, 8rem);
    line-height: 0.6;
    color: var(--primary);
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(221, 162, 5, 0.35);
}

.hero-quote-text {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 500;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-quote-author {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    font-style: normal;
    transition: opacity 0.6s ease 0.15s;
}


@media (max-width: 900px) {
    .hero-bg-img img {
        object-position: right top;
    }
}

@media (max-width: 480px) {

    .btn-elite-primary,
    .btn-elite-outline {
        padding: 14px 28px;
        width: 100%;
        justify-content: center;
    }

    .hero-actions-elite {
        flex-direction: column;
    }

    .hero-quote-text {
        font-size: 1.1rem;
    }
}

/* Slider (Old classes cleanup or re-mapped) */
.slider-prev,
.slider-next {
    display: none;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide.exit-left {
    opacity: 0;
    transform: translateX(-60px);
}

/* Slide Backgrounds */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-1::before {
    background: linear-gradient(135deg, #fff5f1 0%, #ffffff 60%, #fdf0eb 100%);
}

.slide-2::before {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 60%, var(--primary-xlt) 100%);
}

.slide-3::before {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #fff5f1 100%);
}

[data-theme="dark"] .slide-1::before {
    background: linear-gradient(135deg, #1a0f0b 0%, #0e0e0e 60%, #1e1410 100%);
}

[data-theme="dark"] .slide-2::before {
    background: linear-gradient(135deg, #171717 0%, #0e0e0e 60%, #1a0f0b 100%);
}

[data-theme="dark"] .slide-3::before {
    background: linear-gradient(135deg, #0e0e0e 0%, #171717 60%, #1a0f0b 100%);
}

/* Blob decorations per slide */
.slide-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
}

.slide-blob-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(221, 90, 44, 0.10) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: blobFloat 10s ease-in-out infinite;
}

.slide-blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(221, 90, 44, 0.07) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: blobFloat 13s ease-in-out infinite reverse;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.06);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.96);
    }
}

.hero-dots-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle, rgba(221, 90, 44, 0.10) 1px, transparent 1px);
    background-size: 38px 38px;
}

/* Slide inner layout */
.slide-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 80px;
}


.slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-xlt);
    border: 1px solid rgba(221, 90, 44, 0.2);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.slide-heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
}

.slide-heading span {
    color: var(--primary);
}

.slide-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-3);
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 16px;
}

.hero-quote-box {
    margin: 0 0 32px;
    padding: 16px 20px;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
    background: var(--primary-xlt);
    border-radius: 0 10px 10px 0;
}

.hero-quote-box p {
    font-size: 0.95rem;
    color: var(--text-3);
    line-height: 1.8;
    font-style: italic;
}

.hero-quote-box p em {
    color: var(--primary);
    font-style: normal;
    font-weight: 700;
}

.hero-quote-box cite {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slide-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats-row {
    display: flex;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hsr-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hsr-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

/* Typed text in slides */
.typed-wrapper {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    min-height: 1.8em;
    display: flex;
    align-items: center;
    gap: 2px;
}

.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Slide image */
.slide-image {
    position: relative;
}

.slide-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: visible;
}

.slide-img-wrap::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary-pale), var(--primary-xlt));
    border-radius: 24px;
    z-index: 0;
}

.slide-img-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-lg);
}

/* Floating info cards */
.slide-float {
    position: absolute;
    z-index: 3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 5s ease-in-out infinite;
}

.slide-float-1 {
    top: 40px;
    left: -50px;
    animation-delay: 0s;
}

.slide-float-2 {
    bottom: 60px;
    right: -40px;
    animation-delay: 1.5s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sf-icon {
    font-size: 1.6rem;
}

.sf-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.sf-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-prev,
.slider-next {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-color);
    transform: scale(1.08);
}

.slider-dots-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    right: 48px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 2.2s forwards;
}

.hero-scroll-hint span {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(221, 90, 44, 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-mouse-dot {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
    background: var(--bg-2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    position: relative;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary-pale), var(--primary-xlt));
    border-radius: 20px;
    z-index: 0;
}

.about-image-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 20px 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow-color);
}

.about-badge-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.about-badge-text {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
    opacity: 0.9;
}

.about-floating-card {
    position: absolute;
    bottom: 50px;
    left: -30px;
    z-index: 3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    animation: floatCard 6s ease-in-out infinite;
}

.afc-icon {
    font-size: 1.8rem;
}

.afc-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.about-bio {
    color: var(--text-3);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

.about-bio p+p {
    margin-top: 14px;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.about-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-detail-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
}

.about-detail-value {
    font-size: 0.93rem;
    color: var(--text);
    font-weight: 600;
}

.about-detail-value a {
    color: var(--primary);
}

/* =============================================
   SKILLS SECTION
   ============================================= */
#skills {
    background: var(--bg);
}

.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.skills-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-group-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
    display: block;
}

.skill-item {
    margin-bottom: 22px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-2);
}

.skill-percent {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
}

.skill-bar-bg {
    height: 6px;
    background: var(--bg-2);
    border-radius: 6px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    border-radius: 6px;
    transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--primary-xlt);
    border: 1px solid rgba(221, 90, 44, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-color);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
/* Projects Section */
#projects {
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(221, 90, 44, 0.2);
}

.project-card.featured-card {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.project-card.featured-card .project-card-img {
    aspect-ratio: auto;
    min-height: 320px;
}

.project-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.project-card:hover .project-card-img img {
    transform: scale(1.06);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(221, 90, 44, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-view-btn {
    padding: 11px 26px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.project-card:hover .project-view-btn {
    transform: translateY(0);
}

.project-view-btn:hover {
    background: var(--primary-xlt);
}

.project-card-body {
    padding: 24px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.project-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-xlt);
    padding: 4px 10px;
    border-radius: 50px;
}

.project-year {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.project-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.project-tags span {
    padding: 4px 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-3);
}

.project-read-more {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.project-read-more:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* =============================================
   EXPERIENCE / TIMELINE
   ============================================= */
#experience {
    background: var(--bg);
}

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.exp-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-2);
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(221, 90, 44, 0.2), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(221, 90, 44, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(221, 90, 44, 0.12);
}

.timeline-period {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--primary-xlt);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.87rem;
    color: var(--text-3);
    line-height: 1.75;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.timeline-tag {
    padding: 3px 10px;
    background: var(--primary-xlt);
    border: 1px solid rgba(221, 90, 44, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
}

/* =============================================
   LEADERSHIP
   ============================================= */
#leadership {
    background: var(--bg-2);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.leadership-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-sm);
}

.leadership-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(221, 90, 44, 0.2);
}

.leadership-card-img {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.leadership-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.leadership-card:hover .leadership-card-img img {
    transform: scale(1.06);
}

.leadership-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: var(--shadow-color);
}

.leadership-card-body {
    padding: 22px;
}

.leadership-card-body h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 8px;
}

.leadership-card-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* =============================================
   COMMUNITY
   ============================================= */
#community {
    background: var(--bg);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.community-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-sm);
}

.community-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(221, 90, 44, 0.2);
}

.community-icon {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.community-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-item:hover .community-icon img {
    transform: scale(1.05);
}

.community-body {
    padding: 22px;
}

.community-body h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.community-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials {
    background: var(--bg-2);
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: testimonialsScroll 35s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes testimonialsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(221, 90, 44, 0.2);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
}

.testimonial-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-tagline {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-tagline span {
    color: var(--primary);
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-3);
    font-size: 0.93rem;
    font-weight: 500;
    padding: 14px 18px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-link-item:hover {
    border-color: rgba(221, 90, 44, 0.3);
    background: var(--primary-xlt);
    color: var(--primary);
}

.contact-link-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-xlt);
    border: 1px solid rgba(221, 90, 44, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-link-item:hover .contact-link-icon {
    background: var(--primary);
    color: #fff;
}

.contact-form {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.93rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(221, 90, 44, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.35s ease;
    margin-top: 6px;
    box-shadow: var(--shadow-color);
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(221, 90, 44, 0.45);
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-xlt);
    transform: translateY(-3px);
}

/* =============================================
   FOOTER
   ============================================= */

/* =============================================
   INNER PAGE HERO
   ============================================= */
.page-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

/* With featured image */
.page-hero.has-bg-img {
    min-height: 450px;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.page-hero:hover .page-hero-bg {
    transform: scale(1.0);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.65) 60%,
            rgba(0, 0, 0, 0.82) 100%);
}

/* Without featured image — gradient fallback */
.page-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-2) 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, var(--primary-glow) 0%, transparent 60%);
}

/* Inner content */
.page-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    /* Increased to account for fixed header overlap */
    padding-bottom: 60px;
}

/* Breadcrumb */
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 500;
}

.has-bg-img .page-hero-breadcrumb,
.has-bg-img .page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
}

.no-bg-img .page-hero-breadcrumb,
.no-bg-img .page-hero-breadcrumb a {
    color: var(--text-muted);
}

.page-hero-breadcrumb a:hover {
    color: var(--primary);
}

.bc-sep {
    opacity: 0.5;
    font-size: 0.9em;
}

.has-bg-img .page-hero-breadcrumb span,
.no-bg-img .page-hero-breadcrumb span {
    color: var(--primary);
}

/* Title */
.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.has-bg-img .page-hero-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.no-bg-img .page-hero-title {
    color: var(--text);
}

/* Post meta (date, author, reading time) */
.page-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
    font-size: 0.82rem;
    font-weight: 500;
}

.has-bg-img .page-hero-meta {
    color: rgba(255, 255, 255, 0.7);
}

.no-bg-img .page-hero-meta {
    color: var(--text-muted);
}

.page-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 640px) {
    .page-hero.has-bg-img {
        min-height: 280px;
    }

    .page-hero-inner {
        padding-top: 100px;
        padding-bottom: 36px;
    }

    .page-hero-meta {
        gap: 12px;
    }
}

#site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 28px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    display: block;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.footer-logo span {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 22px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-xlt);
}

.footer-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-copy a {
    color: var(--primary);
    font-weight: 600;
}

.footer-back-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-back-top:hover {
    color: var(--primary);
}

.footer-back-top svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.footer-back-top:hover svg {
    transform: translateY(-4px);
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:1100px) {
    .slide-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 100px;
    }

    .slide-image {
        max-width: 420px;
        margin: 0 auto;
    }

    .slide-float-1 {
        left: -10px;
    }

    .slide-float-2 {
        right: -10px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .exp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card.featured-card {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .leadership-grid,
    .community-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation Panel (Full Width Black) */
.nav-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #000000 !important;
    /* Solid Black */
    opacity: 1 !important;
    z-index: 3100;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nav-panel.open {
    left: 0;
}

/* Panel Header */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.panel-header .site-logo {
    color: #fff !important;
    font-size: 1rem !important;
    letter-spacing: 0.1em;
}

.panel-header .menu-close {
    color: #fff !important;
}

.menu-close {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

/* Panel Links */
.nav-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-links {
    list-style: none;
    padding: 30px 32px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #eee;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    padding-left: 10px;
}

.panel-footer-box {
    padding: 20px 32px 60px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-mode-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.panel-mode-toggle span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.05em;
}

.panel-resume-btn-large {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 18px !important;
    font-size: 1rem !important;
    border-radius: 50px !important;
    /* Fully Rounded */
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

/* Theme Toggle Mobile specifics */
.theme-toggle-mobile {
    width: 44px;
    height: 24px;
    background: var(--toggle-bg);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: all 0.35s ease;
}

.theme-toggle-mobile span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-mobile.dark span {
    transform: translateX(21px);
}

/* Backdrop for mobile menu — Remove blur */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Simple tint */
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {

    .nav-panel,
    .nav-backdrop {
        display: none !important;
    }
}

.nav-menu li.menu-item-has-children.open>.sub-menu,
.nav-menu li.has-dropdown.open>.nav-dropdown {
    display: flex;
}

/* Mobile Menu Improvements */


[data-theme="dark"] .nav-menu {
    background: rgba(10, 10, 10, 0.98) !important;
}

.sub-menu li a,
.nav-dropdown li a {
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    padding: 8px 12px;
}

.section {
    padding: 72px 0;
}

.container {
    padding: 0 20px;
}

.nav-container {
    padding: 0 20px;
}

.about-image-frame::before {
    display: none;
}

.about-floating-card {
    display: block;
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 30px;
    width: 100%;
}

.projects-grid,
.leadership-grid,
.community-grid {
    grid-template-columns: 1fr;
}

.project-card.featured-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
}

.form-row {
    grid-template-columns: 1fr;
}

.contact-form {
    padding: 24px 18px;
}

.footer-main {
    grid-template-columns: 1fr;
}

body {
    cursor: auto;
}

.cursor-dot,
.cursor-ring {
    display: none;
}

.slide-float-1,
.slide-float-2 {
    display: none;
}

.hero-scroll-hint {
    display: none;
}

.hero-stats-row {
    flex-wrap: wrap;
    gap: 20px;
}
}

@media(max-width:480px) {
    .up-hero-inner {
        padding: 0 20px;
        margin-top: 200px !important;
    }

    .slide-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        justify-content: center;
    }

    .up-quote-main {
        font-size: 30px !important;
        line-height: 1.15;
        font-weight: 600 !important;
        color: #fff;
        margin-bottom: 20px;
        letter-spacing: 0;
        text-wrap: balance;
    }

    .up-hero-inner {
        padding: 0 20px;
        margin-top: 200px !important;
    }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS (bidirectional)
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(52px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0s),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-56px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(56px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* =============================================
   PROJECTS — MASONRY LAYOUT
   ============================================= */
.proj-masonry {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.proj-featured {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.proj-featured .proj-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.proj-featured .proj-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.proj-featured:hover .proj-img-wrap img {
    transform: scale(1.05);
}

.proj-small-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.proj-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.proj-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.proj-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.proj-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proj-card:hover .proj-card-img img {
    transform: scale(1.07);
}

.proj-card-body {
    padding: 20px;
}

.proj-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 6px 0 8px;
}

.proj-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.proj-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.proj-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.proj-img-wrap:hover .proj-overlay,
.proj-card-img:hover .proj-overlay {
    opacity: 1;
}

.proj-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
}

.proj-year-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.proj-body {
    padding: 8px 0;
}

.proj-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
}

.proj-body h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    margin: 10px 0 14px;
    line-height: 1.3;
}

.proj-body h3 em {
    color: var(--primary);
    font-style: normal;
}

.proj-body p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.proj-tags,
.proj-card-body .proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proj-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--primary-xlt);
    color: var(--primary);
}

/* =============================================
   LEADERSHIP PURSUITS — alternating rows
   ============================================= */
.lp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.lp-row:last-child {
    margin-bottom: 0;
}

.lp-row-reverse {
    direction: rtl;
}

.lp-row-reverse>* {
    direction: ltr;
}

.lp-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.lp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lp-row:hover .lp-img img {
    transform: scale(1.05);
}

.lp-num {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.lp-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
}

.lp-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin: 10px 0 16px;
    line-height: 1.25;
}

.lp-desc {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.lp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    background: var(--primary-xlt);
    color: var(--primary);
}

/* =============================================
   INTERNSHIPS
   ============================================= */
.intern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.intern-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.intern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.1);
}

.intern-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.intern-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.intern-card:hover .intern-img img {
    transform: scale(1.06);
}

.intern-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
}

.intern-body {
    padding: 28px;
}

.intern-org {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
}

.intern-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 12px;
}

.intern-body p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.intern-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.intern-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--primary-xlt);
    color: var(--primary);
}

/* =============================================
   COMMUNITY SERVICE
   ============================================= */
.comm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.comm-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.comm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.1);
}

.comm-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.comm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comm-card:hover .comm-img img {
    transform: scale(1.06);
}

.comm-icon-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comm-body {
    padding: 32px 24px 24px;
}

.comm-meta {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
}

.comm-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 10px;
}

.comm-body p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE — new sections
   ============================================= */
@media(max-width:1024px) {
    .proj-featured {
        grid-template-columns: 1fr;
    }

    .proj-small-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lp-row-reverse {
        direction: ltr;
    }
}

@media(max-width:768px) {
    .proj-small-grid {
        grid-template-columns: 1fr;
    }

    .intern-grid {
        grid-template-columns: 1fr;
    }

    .comm-grid {
        grid-template-columns: 1fr;
    }

    .hero-tagline {
        font-size: 0.82rem;
        letter-spacing: 0.08em;
    }
}

/* ================================================================
   UTTPALPATEL-INSPIRED DESIGN SYSTEM
   ================================================================ */

/* ---- BASE TYPOGRAPHY ---- */
.up-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--primary);
    margin-bottom: 12px;
}

.up-sec-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.3 !important;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.up-sec-title em {
    color: var(--primary);
    font-style: normal;
}

.up-sec-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.up-body-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 18px;
}

/* ---- SECTIONS ---- */
.up-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.up-section-alt {
    background: var(--bg-2);
}

.up-sec-header {
    margin-bottom: 70px;
}

/* ---- PREMIUM BACKDROP ---- */
.up-premium-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-1);
    transition: background 0.8s ease;
}

.up-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-pale) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    mix-blend-mode: normal;
    animation: upBlobFloat 25s infinite alternate ease-in-out;
}

[data-theme="dark"] .up-blob {
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.15;
}

.up-blob-1 {
    top: -10%;
    left: -10%;
    animation-duration: 30s;
}

.up-blob-2 {
    bottom: -10%;
    right: -10%;
    animation-duration: 35s;
    animation-delay: -5s;
}

.up-blob-3 {
    top: 40%;
    left: 60%;
    width: 450px;
    height: 450px;
    animation-duration: 40s;
    animation-delay: -10s;
}

@keyframes upBlobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(5%, 10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 5%) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ---- HERO ---- */
.up-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.up-hero-bg {
    position: absolute;
    inset: 0;
}

.up-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    animation: upKB 22s ease-in-out infinite alternate;
}

@keyframes upKB {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.12)
    }
}

.up-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.3) 100%);
}

.up-hero-inner {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.up-hero-pre {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary);
    background: rgba(221, 90, 44, 0.12);
    border: 1px solid rgba(221, 90, 44, 0.3);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
    animation: upFadeUp 0.9s ease 0.2s both;
}

.up-hero-name {
    margin-bottom: 28px;
}

.up-greeting {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.up-hero-name h1 {
    font-size: clamp(4.5rem, 13vw, 12rem);
    font-weight: 900;
    line-height: 0.88;
    color: #fff;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.up-n1 {
    display: block;
}

.up-n2 {
    display: block;
}

.up-dot {
    color: var(--primary);
}

/* 3D rotating role */
.up-hero-role {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 52px;
    perspective: 600px;
}

.up-role-dash {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 300;
}

.up-role-rotator {
    position: relative;
    height: 2.6rem;
    overflow: hidden;
}

.urr-item {
    position: absolute;
    top: 0;
    left: 0;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: rotateX(90deg) translateY(-50%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    transform-origin: 50% 50%;
    white-space: nowrap;
}

.urr-item.active {
    transform: rotateX(0deg) translateY(0);
    opacity: 1;
}

.urr-item.exit {
    transform: rotateX(-90deg) translateY(50%);
    opacity: 0;
}

/* Hero CTAs */
.up-hero-ctas {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.up-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s ease;
    box-shadow: 0 10px 36px rgba(221, 90, 44, 0.35);
}

.up-btn-solid:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(221, 90, 44, 0.5);
    color: #fff;
}

.up-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
}

.up-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* =============================================
   HERO - CENTERED QUOTE & CTA
   ============================================= */
.up-hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.up-hero-inner {
    position: relative;
    z-index: 5;
    padding: 0 40px;
    text-align: center;
    max-width: 1100px;
    width: 100%;
    margin-top: -20px;
}

.up-hero-quote {
    margin-bottom: 60px;
    /* Increased Spacing as requested */
}

.up-quote-main {
    font-size: clamp(1.6rem, 8vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.up-quote-sub {
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

.up-hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    /* Center buttons */
}

/* Hero scroll indicator */
.up-hero-scroll {
    position: absolute;
    bottom: 44px;
    left: 60px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.up-hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.up-scroll-track {
    width: 2px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    border-radius: 2px;
}

.up-scroll-thumb {
    position: absolute;
    top: 0;
    width: 100%;
    background: var(--primary);
    border-radius: 2px;
    animation: upScrollAnim 2.2s ease-in-out infinite;
}

@keyframes upScrollAnim {
    0% {
        top: 0;
        height: 0
    }

    50% {
        top: 20%;
        height: 60%
    }

    100% {
        top: 100%;
        height: 0
    }
}

/* Hero slide dots */
.up-hero-dots {
    position: absolute;
    bottom: 50px;
    right: 60px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.uhd {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.uhd.active {
    background: var(--primary);
    width: 38px;
    border-radius: 10px;
}

@keyframes upFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Word reveal animation */
.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) skewY(3deg);
    animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--wd, 0s) both;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) skewY(0)
    }
}

/* ---- ABOUT ---- */
.up-about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
}

#projects .up-sec-title {
    text-align: center;
}

#leadership .up-sec-title {
    text-align: center;
}

#internships .up-sec-title {
    text-align: center;
}

.up-about-left {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.up-portrait-ring {
    position: relative;
    width: 100%;
}

.up-portrait-ring img {
    width: 100%;
    border-radius: 24px;
    display: block;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.up-ring-1 {
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid var(--primary);
    border-radius: 28px;
    opacity: 0.4;
    z-index: 1;
}

.up-ring-2 {
    position: absolute;
    top: -22px;
    left: -22px;
    right: 22px;
    bottom: 22px;
    border: 1px solid var(--primary);
    border-radius: 32px;
    opacity: 0.15;
    z-index: 1;
}

.up-about-stats {
    display: flex;
    gap: 24px;
}

.up-stat {
    flex: 1;
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.up-stat:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(221, 90, 44, 0.15);
}

.up-stat-n {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.up-stat-l {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 4px;
}

.up-about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.up-about-tags span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--primary-xlt);
    color: var(--primary);
    border: 1px solid rgba(221, 90, 44, 0.2);
}

/* ---- PROJECTS (1-by-1 Scroll Reveal) ---- */
.proj-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.proj-list-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* 1-by-1 Sequential Reveal */
.proj-list-item:nth-child(even) {
    direction: rtl;
}

.proj-list-item:nth-child(even)>* {
    direction: ltr;
}

.proj-li-img {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-xl);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-list-item:hover .proj-li-img {
    transform: scale(1.02);
}

.proj-li-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.proj-list-item:hover .proj-li-img img {
    transform: scale(1.08);
}


.proj-li-body {
    padding: 20px;
}

.proj-li-year {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.proj-li-body h3 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.proj-li-body p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.up-proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.up-proj-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--primary-xlt);
    color: var(--primary);
    border: 1px solid rgba(221, 90, 44, 0.15);
}

.proj-feat-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-sm);
}

/* Responsive Projects */
@media (max-width: 1100px) {
    .proj-list-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .proj-list {
        gap: 80px;
    }
}

/* ---- LEADERSHIP ---- */
/* ============================================
   LEADERSHIP PURSUITS — premium card grid
   ============================================ */
#leadership {
    background: var(--bg);
}

.lead-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lead-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
    isolation: isolate;
}

/* Background image */
.lead-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lead-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-card:hover .lead-bg img {
    transform: scale(1.1);
}

/* Dark gradient overlay */
.lead-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.35) 55%,
            rgba(0, 0, 0, 0.08) 100%);
    transition: background 0.5s ease;
}

.lead-card:hover .lead-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.55) 65%,
            rgba(0, 0, 0, 0.15) 100%);
}

/* Big faded number top-right */
.lead-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    z-index: 2;
    letter-spacing: -0.04em;
    transition: color 0.4s ease;
    pointer-events: none;
}

.lead-card:hover .lead-num {
    color: rgba(221, 90, 44, 0.2);
}

/* Content pinned to bottom */
.lead-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.lead-meta {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    background: rgba(221, 90, 44, 0.15);
    border: 1px solid rgba(221, 90, 44, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    align-self: flex-start;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.lead-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0;
    line-height: 1.3;
    transition: margin 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Description hidden by default, slides up on hover */
.lead-content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition:
        max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease 0.05s,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.lead-card:hover .lead-content h3 {
    margin-bottom: 12px;
}

.lead-card:hover .lead-content p {
    max-height: 150px;
    opacity: 1;
    transform: translateY(0);
}

/* Tags hidden by default, reveal on hover */
.lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        opacity 0.4s ease 0.15s,
        margin-top 0.4s ease;
}

.lead-card:hover .lead-tags {
    max-height: 60px;
    opacity: 1;
    margin-top: 14px;
}

.lead-tags span {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Thin primary-coloured top border that grows on hover */
.lead-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    z-index: 4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-card:hover::after {
    transform: scaleX(1);
}

@media (max-width: 900px) {
    .lead-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .lead-grid {
        grid-template-columns: 1fr;
    }

    .lead-card {
        height: 420px;
    }
}

/* ============= INTERNSHIPS GRID ============= */
.up-intern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.up-intern-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.up-intern-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.up-intern-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.up-intern-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.up-intern-card:hover .up-intern-img img {
    transform: scale(1.08);
}

.up-intern-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
}

.up-intern-body {
    padding: 28px 30px 32px;
}

.up-intern-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 8px 0 12px;
    line-height: 1.3;
}

.up-intern-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .up-intern-grid {
        grid-template-columns: 1fr;
    }
}

/* Vertical stem: year pill → card */
.htl-stem {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.4;
    flex-shrink: 0;
}

/* Dot — first in flow, sits ON the horizontal line */
.htl-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2.5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 0 0 6px var(--primary-pale), 0 6px 22px rgba(221, 90, 44, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.htl-item:hover .htl-dot {
    transform: scale(1.14);
    box-shadow: 0 0 0 9px var(--primary-pale), 0 12px 30px rgba(221, 90, 44, 0.38);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Year pill — below the dot, in normal flow */
.htl-yr-pill {
    margin-top: 14px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-pale);
    border: 1.5px solid rgba(221, 90, 44, 0.25);
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
    .htl-row {
        flex-direction: column;
        padding-bottom: 0;
        min-width: unset;
        gap: 0;
    }

    .htl-row::before {
        display: none;
    }

    .htl-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
    }

    .htl-item:last-child {
        border-bottom: none;
    }

    .htl-card {
        flex: 1;
    }

    .htl-stem {
        display: none;
    }

    .htl-dot {
        flex-shrink: 0;
        margin-top: 4px;
    }

    .htl-yr-pill {
        display: none;
    }
}

/* ---- COMMUNITY SERVICE (Premium Redesign) ---- */
#community .up-sec-header {
    text-align: center;
}

.comm-mag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- COMMUNITY CARDS — clean split layout ---- */
.comm-mag-card {
    position: relative;
    border-radius: 28px;
    overflow: visible;
    height: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s ease;
}

.comm-mag-bg {
    position: relative;
    height: 210px;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.comm-mag-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* subtle gradient fade at the bottom of the image */
.comm-mag-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.22) 100%);
    border-radius: inherit;
}

.comm-mag-glass {
    position: relative;
    inset: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0 0 28px 28px;
    z-index: 1;
    padding: 20px 28px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: none;
}

.comm-mag-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(221, 90, 44, 0.18), var(--shadow-lg);
}

.comm-mag-card:hover .comm-mag-bg img {
    transform: scale(1.07);
}

.comm-mag-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.comm-mag-id {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Icon floats on the image/content border */
.comm-mag-icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -26px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(221, 90, 44, 0.4);
    border: 3px solid var(--bg-card);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
    position: relative;
    z-index: 2;
}

.comm-mag-card:hover .comm-mag-icon {
    transform: translateY(-4px) rotate(10deg) scale(1.1);
    box-shadow: 0 14px 36px rgba(221, 90, 44, 0.55);
}

.comm-mag-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.3;
}

.comm-mag-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* =============================================
   ELITE CONTACT SECTION (UI Masterwork)
   ============================================= */
.up-contact-elite {
    position: relative;
    padding: 80px 0;
    background: var(--bg-1);
    overflow: hidden;
}

/* Mesh Gradient Background */
.up-contact-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.45;
    background:
        radial-gradient(circle at 10% 20%, var(--primary-glow) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--primary-glow) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, var(--primary-pale) 0%, transparent 60%);
    filter: blur(100px);
    animation: upMeshFloat 20s ease-in-out infinite alternate;
}

[data-theme="dark"] .up-contact-mesh {
    opacity: 0.18;
    background:
        radial-gradient(circle at 20% 30%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--primary-glow) 0%, transparent 50%);
}

@keyframes upMeshFloat {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(2%, 3%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Floating Particles */
.up-contact-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.up-cp-item {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.12;
}

.cp-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation: upFloat 12s infinite alternate;
}

.cp-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: -50px;
    animation: upFloat 15s infinite alternate-reverse;
    animation-delay: -2s;
}

.cp-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 10%;
    opacity: 0.08;
    animation: upFloat 20s infinite alternate;
}

.cp-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    opacity: 0.06;
    animation: upFloat 18s infinite alternate-reverse;
}

@keyframes upFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, -40px) rotate(15deg);
    }
}

/* Contact Card refinement */
.up-contact-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 48px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.08);
    /* Light mode shadow */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

[data-theme="dark"] .up-contact-card {
    background: rgba(28, 28, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.up-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

/* Small pill tag — like other section labels */
.up-contact-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    border: 1.5px solid rgba(221, 90, 44, 0.35);
    background: var(--primary-pale);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}



.up-contact-left {
    padding: 50px 52px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0;
}

[data-theme="dark"] .up-contact-left {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}


/* Contact Details */
.up-contact-details {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.up-det-item {
    display: flex;
    align-items: center;
    gap: 28px;
    text-decoration: none;
}

.up-det-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.up-det-item:hover .up-det-icon {
    background: var(--primary);
    color: #fff;
    transform: translateY(-8px) rotate(8deg);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.up-det-text span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.up-det-text strong {
    font-size: 1rem;
    color: var(--text);
    font-weight: 800;
}

/* Social Pill refinement */
.up-social-pill {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.3);
    padding: 14px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    gap: 16px;
    align-self: flex-start;
}

[data-theme="dark"] .up-social-pill {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.up-sp-item {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: all 0.4s ease;
    background: transparent;
}

.up-sp-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 25px var(--primary-glow);
}

/* Form Styles */
.up-contact-right {
    padding: 50px 60px;
    background: transparent;
}

.up-form-premium {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.up-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.up-form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.up-form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
}

.up-form-group input,
.up-form-group textarea {
    background: var(--bg-1);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.up-form-group textarea {
    resize: none;
    min-height: 120px;
}

.up-form-group input:focus,
.up-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(221, 90, 44, 0.12);
    background: var(--bg-card);
}

.up-form-group input::placeholder,
.up-form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* hide unused underline/glow elements */
.up-input-bar,
.up-input-glow {
    display: none;
}

.up-btn-premium {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 16px 36px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 14px 36px var(--primary-glow);
    border: none;
    cursor: pointer;
    margin-top: 6px;
}

.up-btn-premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 70px rgba(221, 90, 44, 0.5);
}

.up-btn-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.up-btn-premium:hover .up-btn-icon {
    transform: translateX(10px) rotate(-15deg);
    background: rgba(255, 255, 255, 0.3);
}

/* Community grid: 2 columns on tablets */
@media (max-width: 1024px) {
    .comm-mag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Masterwork */
@media (max-width: 1200px) {
    .up-contact-grid {
        grid-template-columns: 1fr;
    }

    .up-contact-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 40px 32px;
    }

    .up-contact-right {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .up-form-grid {
        grid-template-columns: 1fr;
    }

    .up-contact-card {
        border-radius: 32px;
    }

    .up-btn-premium {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .up-form-grid {
        grid-template-columns: 1fr;
    }

    .comm-mag-grid {
        grid-template-columns: 1fr;
    }

    .up-contact-left,
    .up-contact-right {
        padding: 30px 20px;
    }
}

/* ---- RESPONSIVE ---- */
@media(max-width:1100px) {
    .up-about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .up-portrait-ring {
        width: 280px;
    }

    .up-about-stats {
        justify-content: flex-start;
    }

    .up-proj-featured {
        grid-template-columns: 1fr;
    }

    .up-pf-body {
        padding: 30px;
    }

    .up-proj-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lead-grid {
        grid-template-columns: 1fr 1fr;
    }

    .up-contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media(max-width:768px) {
    .up-section {
        padding: 80px 0;
    }

    .up-hero-inner {
        padding: 0 20px;
        margin-top: 100px !important;
    }

    .up-hero-scroll {
        left: 28px;
    }

    .up-hero-dots {
        right: 28px;
    }

    .up-proj-grid {
        grid-template-columns: 1fr;
    }

    .up-intern-grid {
        grid-template-columns: 1fr;
    }

    .up-comm-grid {
        grid-template-columns: 1fr;
    }

    .up-form-row {
        grid-template-columns: 1fr;
    }

    .lead-grid {
        grid-template-columns: 1fr;
    }

    .lead-card {
        height: 420px;
    }

    .up-hero-ctas {
        flex-direction: column;
    }

    .up-btn-solid,
    .up-btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   PREMIUM SCROLL ANIMATIONS (uttpalpatel-style)
   ============================================= */

/* Split-line: text slides up from behind an overflow mask */
.sl {
    display: block;
    overflow: hidden;
    line-height: 1.25;
}

.sl>* {
    display: block;
    transform: translateY(105%);
    will-change: transform;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--sd, 0s);
}

.sl.in-view>* {
    transform: translateY(0);
}

/* Generic scroll animations via data-anim attribute */
[data-anim] {
    opacity: 0;
    transform: translateY(52px);
    will-change: transform, opacity;
    transition:
        opacity 0.85s ease var(--sd, 0s),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--sd, 0s);
}

[data-anim="left"] {
    transform: translateX(-56px);
}

[data-anim="right"] {
    transform: translateX(56px);
}

[data-anim].in-view {
    opacity: 1;
    transform: translate(0);
}


/* Community card: after entrance, remove delay so hover is instant */
.comm-mag-card[data-anim].in-view {
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0s, box-shadow 0.55s ease 0s;
}

/* Heading label (small caps tag above heading) */
.up-label[data-anim] {
    transition-duration: 0.65s;
}

/* Hero sl: clip-path reveal on page load (no observer needed) */
.up-hero-name .sl {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    animation: heroSlIn 1s cubic-bezier(0.16, 1, 0.3, 1) var(--sd, 0s) both;
}

.up-hero-name .sl>* {
    transform: none;
    transition: none;
}

@keyframes heroSlIn {
    from {
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }

    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Hero role + ctas: use upFadeUp on load, ignore [data-anim] observer */
.up-hero-inner [data-anim] {
    animation: upFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--sd, 0s) both;
    opacity: 1 !important;
    transform: none !important;
}

/* ---- FOOTER (copyright only) ---- */
#site-footer {
    padding: 20px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
}

#site-footer .footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

#site-footer .footer-copy a {
    color: var(--primary);
    font-weight: 600;
}

/* Fix Back to Top Button */
.btt-fixed {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(221, 90, 44, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btt-fixed.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.btt-fixed:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(221, 90, 44, 0.5);
}

.btt-fixed svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btt-fixed:hover svg {
    transform: translateY(-2px);
}

.footer-copy a {
    color: var(--primary);
    font-weight: 600;
}

.footer-back-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-back-top svg {
    width: 14px;
    height: 14px;
}

.footer-back-top:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* =============================================
   PREMIUM 3D CAROUSEL — .up-carousel-*
   ============================================= */
.up-carousel-section {
    position: relative;
    padding: 80px 0 50px;
    background: var(--bg);
    overflow: hidden;
}

.up-carousel-stage {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height for the stage */
    margin: 0px 0 40px;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.up-carousel-item {
    position: absolute;
    width: 800px;
    max-width: 85vw;
    left: 50%;
    margin-left: -400px;
    /* Center it */
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: grab;
    user-select: none;
}

.up-carousel-item:active {
    cursor: grabbing;
}

/* Active (Center) */
.up-carousel-item.active {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    z-index: 10;
}

/* Side items (Inactive) */
.up-carousel-item.prev {
    transform: translate3d(-350px, 0, -500px) rotateY(35deg);
    opacity: 0.4;
    z-index: 5;
    pointer-events: none;
}

.up-carousel-item.next {
    transform: translate3d(350px, 0, -500px) rotateY(-35deg);
    opacity: 0.4;
    z-index: 5;
    pointer-events: none;
}

/* Far items */
.up-carousel-item.far-prev {
    transform: translate3d(-700px, 0, -1000px) rotateY(45deg);
    opacity: 0;
    z-index: 1;
}

.up-carousel-item.far-next {
    transform: translate3d(700px, 0, -1000px) rotateY(-45deg);
    opacity: 0;
    z-index: 1;
}

/* Glass Card */
.up-card-glass {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    transition: border 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .up-card-glass {
    background: rgba(20, 20, 20, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.up-carousel-item.active .up-card-glass {
    border-color: rgba(221, 90, 44, 0.3);
    box-shadow: 0 40px 120px rgba(221, 90, 44, 0.15);
}

.up-card-img {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.up-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.up-carousel-item.active .up-card-img img {
    transform: scale(1.05);
}

.up-card-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    opacity: 0.6;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.up-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: var(--bg-card);
}

.up-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.up-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: rgba(221, 90, 44, 0.1);
    padding: 5px 14px;
    border-radius: 50px;
}

.up-card-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.up-card-title {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

.up-card-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

.up-card-action {
    margin-top: 10px;
}

.up-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.up-card-btn svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.up-card-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(221, 90, 44, 0.3);
}

.up-card-btn:hover svg {
    transform: translateX(5px);
}

[data-theme="dark"] .up-card-btn {
    background: #fff;
    color: #000;
}

[data-theme="dark"] .up-card-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Nav & Dots */
.up-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.up-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.up-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(221, 90, 44, 0.3);
}

.up-carousel-dots {
    display: flex;
    gap: 12px;
}

.up-carousel-dots .up-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.up-carousel-dots .up-dot.active {
    background: var(--primary);
    width: 34px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1100px) {
    .up-card-glass {
        grid-template-columns: 1fr;
    }

    .up-card-img {
        height: 350px;
    }

    .up-card-content {
        padding: 40px 30px;
    }

    .up-carousel-stage {
        height: 750px;
    }

    .up-carousel-item {
        margin-left: -42.5vw;
    }

    .up-card-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .up-carousel-stage {
        height: 650px;
    }

    .up-card-img {
        height: 280px;
    }

    .up-carousel-item.prev,
    .up-carousel-item.next {
        display: block;
        opacity: 0.4;
        transform: scale(0.8) translateY(20px);
    }

    @media (max-width: 480px) {

        .up-carousel-item.prev,
        .up-carousel-item.next {
            display: none;
        }
    }

    .up-card-title {
        font-size: 1.5rem;
    }

    .up-carousel-nav {
        gap: 20px;
    }
}

/* =============================================
   MIGRATED PAGE STYLES
   ============================================= */

/* ── About Page ── */
.about-page-main {
    background: var(--bg-1);
    padding-top: 0;
}

.about-sec-header {
    text-align: center;
    margin-bottom: 52px;
}

.about-sec-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.about-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-section-title em {
    font-style: normal;
    color: var(--primary);
}

/* =============================================
   ABOUT INTRO — EDITORIAL MODEL LAYOUT
   ============================================= */
.ami-section {
    padding: 80px 0 100px;
    background: var(--bg-1);
    overflow: hidden;
    position: relative;
}

/* Subtle dot-grid background */
.ami-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(221, 90, 44, 0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

.ami-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── LEFT: Portrait block ── */
.ami-left {
    position: relative;
}

/* Orange rotated square accent behind photo */
.ami-bg-accent {
    position: absolute;
    top: 30px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary-pale), var(--primary-xlt));
    border-radius: 28px;
    z-index: 0;
    transition: background 0.4s ease;
}

[data-theme="dark"] .ami-bg-accent {
    background: linear-gradient(135deg, rgba(221, 90, 44, 0.12), rgba(221, 90, 44, 0.04));
}

/* Portrait image */
.ami-portrait-wrap {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    animation: amiImgReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes amiImgReveal {
    from {
        clip-path: inset(100% 0 0 0);
        transform: scale(1.08);
    }

    to {
        clip-path: inset(0% 0 0 0);
        transform: scale(1);
    }
}

.ami-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.8s ease;
}

.ami-portrait-wrap:hover .ami-portrait-img {
    transform: scale(1.04);
}

/* Bottom gradient on photo */
.ami-portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
    pointer-events: none;
}

/* Floating info cards */
.ami-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    z-index: 3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.ami-card-top {
    top: 36px;
    right: -36px;
    animation: amiCardFloat 5s ease-in-out infinite;
}

.ami-card-bottom {
    bottom: 52px;
    left: -36px;
    animation: amiCardFloat 6s ease-in-out infinite reverse;
}

@keyframes amiCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.ami-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ami-dot-green {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: amiPulse 2s infinite;
}

@keyframes amiPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08);
    }
}

.ami-card-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-xlt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.ami-card-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.ami-card-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

/* Year badge (bottom-right corner of photo) */
.ami-year-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    z-index: 3;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 12px 18px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(221, 90, 44, 0.45);
}

.ami-year-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.ami-year-text {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.85;
    margin-top: 3px;
}

/* ── RIGHT: Content block ── */
.ami-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Eyebrow tag */
.ami-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    background: var(--primary-xlt);
    border: 1px solid rgba(221, 90, 44, 0.2);
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
    width: fit-content;
}

.ami-eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: amiPulse2 2.2s ease-in-out infinite;
}

@keyframes amiPulse2 {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

/* Giant name block */
.ami-name-block {
    margin-bottom: 32px;
    overflow: hidden;
}

.ami-name-line {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--text);
    text-transform: uppercase;
    display: block;
    margin: 0;
}

.ami-name-l2 {
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
}

[data-theme="dark"] .ami-name-l2 {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
}

.ami-name-dot {
    color: var(--primary);
    -webkit-text-stroke: 0;
}

/* Quote line */
.ami-quote {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.ami-quote-bar {
    flex-shrink: 0;
    width: 3px;
    height: 100%;
    min-height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 2px;
    align-self: stretch;
}

.ami-quote p {
    font-size: 1.05rem;
    color: var(--text-3);
    line-height: 1.7;
    font-style: italic;
    font-weight: 400;
    margin: 0;
}

.ami-quote p em {
    font-style: normal;
    color: var(--primary);
    font-weight: 700;
}

/* Bio text */
.ami-bio {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 24px;
}

/* Info row */
.ami-info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.ami-info-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.ami-info-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.ami-info-item:hover {
    color: var(--primary);
}

/* Tech stack pills */
.ami-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.ami-stack span {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-3);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    cursor: default;
}

.ami-stack span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Stats strip */
.ami-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.ami-stat {
    flex: 1;
    text-align: center;
}

.ami-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 5px;
}

.ami-stat-num em {
    font-style: normal;
    color: var(--primary);
    font-size: 1.4rem;
}

.ami-stat-lbl {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.ami-stat-div {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* CTA buttons */
.ami-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ami-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 10px 32px rgba(221, 90, 44, 0.35);
}

.ami-btn-solid:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(221, 90, 44, 0.5);
    color: #fff;
}

.ami-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--border);
    color: var(--text-2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ami-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .ami-container {
        grid-template-columns: 380px 1fr;
        gap: 60px;
    }

    .ami-name-line {
        font-size: clamp(3rem, 7vw, 6rem);
    }

    .ami-card-top {
        right: -16px;
    }

    .ami-card-bottom {
        left: -16px;
    }
}

@media (max-width: 860px) {
    .ami-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ami-left {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .ami-name-line {
        font-size: clamp(3.5rem, 12vw, 6rem);
    }
}

@media (max-width: 480px) {
    .ami-section {
        padding: 60px 0 80px;
    }

    .ami-container {
        padding: 0 20px;
    }

    .ami-card-top,
    .ami-card-bottom {
        display: none;
    }

    .ami-name-line {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .ami-stats {
        gap: 0;
    }

    .ami-ctas {
        flex-direction: column;
    }

    .ami-btn-solid,
    .ami-btn-ghost {
        justify-content: center;
        width: 100%;
    }
}

/* CTA section */
.about-cta-section {
    padding: 80px 0;
}

.about-cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.about-cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-cta-box h2 em {
    font-style: normal;
    color: var(--primary);
}

.about-cta-box p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.about-cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .about-cta-section {
        padding: 56px 0;
    }

    .about-cta-box {
        padding: 40px 20px;
    }
}

/* ── About Page Extended ── */

/* Stack tags (tech pills in bio) */
.about-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px;
}

.about-stack-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--primary-xlt);
    color: var(--primary);
    border: 1px solid rgba(221, 90, 44, 0.2);
    transition: all 0.25s ease;
}

.about-stack-tags span:hover {
    background: var(--primary);
    color: #fff;
}

/* Skills section */
.about-skills-section {
    padding: 80px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.about-skills-header {
    margin-bottom: 52px;
}

.about-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(221, 90, 44, 0.25);
}

.ask-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-xlt);
    border: 1px solid rgba(221, 90, 44, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.about-skill-card:hover .ask-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.about-skill-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.about-skill-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
}

.ask-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ask-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--bg-2);
    color: var(--text-3);
    border: 1px solid var(--border);
}

/* Journey/Timeline section */
.about-journey-section {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.about-journey-header {
    margin-bottom: 52px;
}

.about-journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.ajc-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 36px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-2);
}

.ajc-label svg {
    color: var(--primary);
}

.about-timeline {
    position: relative;
    padding-left: 28px;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(221, 90, 44, 0.15), transparent);
    border-radius: 2px;
}

.atl-item {
    position: relative;
    margin-bottom: 36px;
}

.atl-item:last-child {
    margin-bottom: 0;
}

.atl-dot {
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(221, 90, 44, 0.2);
    transition: all 0.3s ease;
}

.atl-item:hover .atl-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(221, 90, 44, 0.12);
}

.atl-period {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--primary-xlt);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.atl-role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.atl-org {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.atl-desc {
    font-size: 0.87rem;
    color: var(--text-3);
    line-height: 1.75;
}

@media (max-width: 1024px) {
    .about-skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-journey-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 640px) {
    .about-skills-grid {
        grid-template-columns: 1fr;
    }

    .about-skills-section,
    .about-journey-section {
        padding: 60px 0;
    }
}

/* ── Blog Page ── */
.blog-main {
    min-height: 80vh;
    background: var(--bg-1);
    padding-top: 0;
    /* Overlap with hero */
}

/* Hero specifically for Blog if not using template-part yet */
.blog-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 140px 0 56px;
    /* Offset for overlap */
    text-align: center;
}

.blog-hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
}

.blog-main {
    background-color: var(--bg-2);
}

.blog-container {
    padding: 100px 40px 120px;
    max-width: 1280px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

.blog-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: none;
    box-shadow: none;
}

.blog-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--bg-hover);
    margin-bottom: 24px;
    border-radius: 8px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--text-light);
}

.blog-card-cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.blog-card-body {
    padding: 0;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-2);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
    transition: gap 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.blog-card-read-more:hover {
    gap: 12px;
    color: var(--primary);
    border-color: var(--primary);
}

.blog-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.blog-empty {
    text-align: center;
    padding: 80px 0;
}

.blog-empty-icon {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.blog-empty h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.blog-empty p {
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .blog-container {
        padding: 60px 30px 80px;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-container {
        padding: 40px 20px 60px;
    }
}

/* ── Blog Page (New .blg-* layout) ── */
.blog-main {
    background: var(--bg);
}

.blg-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px 80px;
}

/* Grid */
.blg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
}

/* Card */
.blg-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.blg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Image */
.blg-img-link {
    display: block;
    text-decoration: none;
}

.blg-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-hover);
}

.blg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blg-card:hover .blg-img {
    transform: scale(1.05);
}

.blg-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--text-muted);
}

/* Hover overlay */
.blg-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.blg-card:hover .blg-img-overlay {
    opacity: 1;
}

.blg-read-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid #fff;
    border-radius: 40px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: translateY(8px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.blg-card:hover .blg-read-badge {
    transform: translateY(0);
}

/* Body */
.blg-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 22px;
    gap: 0;
}

/* Meta top */
.blg-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.blg-cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blg-cat:hover {
    opacity: 0.75;
}

.blg-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Title */
.blg-title {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.38;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.blg-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blg-title a:hover {
    color: var(--primary);
}

/* Excerpt */
.blg-excerpt {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0 0 20px;
    flex: 1;
}

/* Footer */
.blg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.blg-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: gap 0.25s ease;
}

.blg-read-more:hover {
    gap: 10px;
}

.blg-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Pagination */
.blg-pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.blg-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-card);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blg-pagination .page-numbers:hover,
.blg-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Empty state */
.blg-empty {
    text-align: center;
    padding: 100px 0 80px;
}

.blg-empty-icon {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.blg-empty h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.blg-empty p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .blg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }
}

@media (max-width: 640px) {
    .blg-wrap {
        padding: 48px 20px 80px;
    }

    .blg-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── Video Gallery ── */
.video-gallery-main {
    background-color: var(--bg-2);
}

.video-gallery-container {
    padding: 100px 0 160px;
}

.video-gallery-container {
    padding: 80px 0 120px;
}

.video-grid-elite {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-grid-item {
    position: relative;
}

.video-card-elite {
    height: 100%;
}

.video-card-inner {
    position: relative;
    height: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}

.video-grid-item:hover .video-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.8;
}

.video-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .video-grid-elite {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .video-grid-elite {
        grid-template-columns: 1fr;
    }
}

/* ── Image Gallery ── */
.image-gallery-main {
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Subtle dots that adapt to theme */
.image-gallery-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--primary) 0.5px, transparent 0.5px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.image-gallery-container {
    padding: 100px 0 160px;
    position: relative;
    z-index: 1;
}

/* Gallery Header */
.gallery-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.gallery-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 24px;
    opacity: 0.9;
}

.gallery-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.gallery-title em {
    font-style: normal;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.gallery-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gallery-header {
        margin-bottom: 40px;
    }

    .gallery-title {
        font-size: 2.2rem;
    }
}

/* Category Filters */
/* Gallery Filters removed */

/* Standard 3-Column Grid */
.image-masonry-grid {
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    position: relative;
}

@media (max-width: 1024px) {
    .image-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 640px) {
    .image-masonry-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

.gallery-item-wrap {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.gallery-card-elite {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1/1;
    /* Modern square grid */
    display: block;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.gallery-card-elite:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    z-index: 10;
}

.gallery-card-elite:hover .gallery-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Premium Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--primary);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-content-wrap {
    text-align: center;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 32px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: 'Poppins', sans-serif;
}

/* Mobile adjustments */
@media (max-width: 1100px) {
    .gallery-item-wrap {
        width: 33.33%;
        /* Keep 3 columns on small desktops/large tablets */
        padding: 10px;
    }
}

@media (max-width: 800px) {
    .gallery-item-wrap {
        width: 50%;
        /* 2 columns for tablets and large mobile */
        padding: 8px;
    }

    .image-masonry-grid {
        padding: 0 16px;
    }

    .gallery-item-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 500px) {
    .gallery-item-wrap {
        width: 100%;
        /* 1 column for mobile portrait */
        padding: 6px;
    }

    .image-masonry-grid {
        padding: 0 10px;
    }
}

/* ── Standard Page Content ── */
.page-content-wrapper {
    padding-top: 0;
}

.page-content-body {
    color: var(--text-3);
    font-size: 1.05rem;
    line-height: 1.9;
}

.page-content-body h1,
.page-content-body h2,
.page-content-body h3,
.page-content-body h4,
.page-content-body h5 {
    color: var(--text);
    font-weight: 700;
    margin: 1.6em 0 0.6em;
    line-height: 1.3;
}

.page-content-body p {
    margin-bottom: 1.2em;
}

.page-content-body a {
    color: var(--primary);
}

.page-content-body a:hover {
    color: var(--primary-dark);
}

.page-content-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.page-content-body ul,
.page-content-body ol {
    padding-left: 1.4em;
    margin-bottom: 1.2em;
}

.page-content-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--primary-xlt);
    border-radius: 0 8px 8px 0;
    color: var(--text-2);
    font-style: italic;
}

/* ── Single Post Content ── */
.single-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 40px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.single-back-link:hover {
    color: var(--primary);
    gap: 12px;
}

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.single-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--primary-xlt);
    color: var(--primary);
    border: 1px solid var(--primary-pale);
    text-decoration: none;
    transition: background 0.2s ease;
}

.single-tag:hover {
    background: var(--primary);
    color: #fff;
}

.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.single-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-nav-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.single-nav-item.next {
    text-align: right;
}

.single-nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.single-nav-item.next .single-nav-label {
    justify-content: flex-end;
}

.single-nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

@media (max-width: 560px) {
    .single-nav {
        grid-template-columns: 1fr;
    }
}

/* ── Single Post Layout ── */
.single-article-wrap {
    padding: 80px 40px 80px;

}

/* ── Related Posts Section ── */
.single-related-section {
    padding: 80px 0 100px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.single-related-header {
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.single-related-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.single-related-title em {
    font-style: normal;
    color: var(--primary);
}

.single-related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.single-related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(221, 90, 44, 0.2);
}

.src-img-link {
    display: block;
}

.src-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-hover);
}

.src-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.single-related-card:hover .src-img {
    transform: scale(1.06);
}

.src-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.src-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
}

.src-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.src-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.src-title a:hover {
    color: var(--primary);
}

.src-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Page Hero Section ── */
.page-hero {
    position: relative;
    padding: 100px 0 60px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #111;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin: 0 0 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Single Layout Grid (Robust targeting) ── */
#single-layout-grid-id,
.single-layout-grid {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 60px !important;
    margin-top: 40px;
    width: 100%;
    align-items: start;
}

.single-main-col {
    min-width: 0;
}

.single-featured-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.single-post-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 40px;
}

/* Sidebar */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-title::before {
    content: "";
    width: 3px;
    height: 18px;
    background: var(--primary);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-widget ul li a {
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* ── Blog Content Typography & Buttons ── */
.single-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 25px;
    position: relative;
    color: var(--text);
}

.single-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text);
}

.single-content p {
    margin-bottom: 1.8em;
    color: var(--text-2);
}

.single-content .wp-block-button__link,
.single-content button,
.single-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(221, 90, 44, 0.2);
}

.single-content .wp-block-button__link:hover,
.single-content button:hover,
.single-content .button:hover {
    background: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

/* Related Nav Arrows */
.srh-nav {
    display: flex;
    gap: 12px;
}

.srh-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.srh-nav button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Progress Bar */
#scroll-progress-wrap {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 4px;
    height: 300px;
    background: var(--border);
    border-radius: 10px;
    z-index: 999;
}

#scroll-progress {
    width: 100%;
    height: 0%;
    background: var(--primary);
    border-radius: inherit;
}

@media (max-width: 1100px) {
    .single-layout-grid {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        order: 2;
    }

    #scroll-progress-wrap {
        display: none;
    }
}

@media (max-width: 560px) {
    .single-article-wrap {
        padding: 40px 20px;
    }
}

padding: 80px 0 100px;
background: var(--bg-2);
border-top: 1px solid var(--border);
}

.single-related-header {
    margin-bottom: 48px;
}

.single-related-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-top: 10px;
    line-height: 1.2;
}

.single-related-title em {
    font-style: normal;
    color: var(--primary);
}

.single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.single-related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.single-related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(221, 90, 44, 0.2);
}

.src-img-link {
    display: block;
}

.src-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-hover);
}

.src-img,
.src-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.src-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.single-related-card:hover .src-img {
    transform: scale(1.06);
}

.src-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.src-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.src-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
}

.src-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.src-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.src-title a:hover {
    color: var(--primary);
}

.src-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.src-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
    transition: gap 0.25s ease;
}

.src-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.single-related-footer {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .single-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .single-related-grid {
        grid-template-columns: 1fr;
    }

    .single-article-wrap {
        padding: 40px 20px 60px;
    }
}

/* =============================================
   SINGLE POST REDESIGN (Sidebar & Carousel)
   ============================================= */
.single-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    margin-top: 40px;
}

.single-main-col {
    min-width: 0;
}

.single-featured-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-hover);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.single-post-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.single-post-meta .sep {
    color: var(--primary);
    opacity: 0.5;
}

/* ── Page Hero Section ── */
.page-hero {
    position: relative;
    padding: 100px 0 60px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #111;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.page-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Styles */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    /* Default visibility to prevent "broken" look if JS fails */
    opacity: 1;
    transform: none;
}

.sidebar-widget[data-anim].in-view {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-widget:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-pale);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-title::before {
    content: "";
    width: 3px;
    height: 18px;
    background: var(--primary);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-widget ul li a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* Related Carousel Nav */
.srh-nav {
    display: flex;
    gap: 12px;
}

.srh-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.srh-nav button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-color);
}

#scroll-progress-wrap {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 4px;
    height: 300px;
    background: var(--border);
    border-radius: 10px;
    z-index: 999;
}

#scroll-progress {
    width: 100%;
    height: 0%;
    background: var(--primary);
    border-radius: inherit;
    transition: height 0.1s ease-out;
}

/* Responsive */
@media (max-width: 1100px) {
    .single-layout-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .single-sidebar {
        order: 2;
    }

    #scroll-progress-wrap {
        display: none;
    }
}

/* =============================================
   SINGLE POST REDESIGN (Sidebar & Carousel)
   ============================================= */
.single-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    margin-top: 40px;
}

.single-main-col {
    min-width: 0;
}

.single-featured-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-hover);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.single-post-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.single-post-meta .sep {
    color: var(--primary);
    opacity: 0.5;
}

/* Sidebar Styles */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-pale);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-title::before {
    content: "";
    width: 3px;
    height: 18px;
    background: var(--primary);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-widget ul li a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* Related Carousel Nav */
.srh-nav {
    display: flex;
    gap: 12px;
}

.srh-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.srh-nav button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-color);
}

#scroll-progress-wrap {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 4px;
    height: 300px;
    background: var(--border);
    border-radius: 10px;
    z-index: 999;
}

#scroll-progress {
    width: 100%;
    height: 0%;
    background: var(--primary);
    border-radius: inherit;
    transition: height 0.1s ease-out;
}

/* Responsive */
@media (max-width: 1100px) {
    .single-layout-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .single-sidebar {
        order: 2;
    }

    #scroll-progress-wrap {
        display: none;
    }
}

.single-related-footer {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .single-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .btt-fixed {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .up-btn-solid,
    .up-btn-ghost {
        width: 60%;
        margin: 0px auto;
        justify-content: center;
    }

    .up-section {
        padding: 50px 0;
    }

    .up-sec-title {
        font-size: 34px;
        font-weight: 700;
        line-height: 1.3 !important;
        color: var(--text);
        letter-spacing: -0.03em;
        margin-bottom: 18px;
    }

    .comm-mag-icon {
        width: 52px;
        height: 52px;
        background: var(--primary);
        color: #fff;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -47px;
        margin-bottom: 18px;
        box-shadow: 0 8px 24px rgba(221, 90, 44, 0.4);
        border: 1px solid var(--bg-card);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
        position: relative;
        z-index: 2;
    }

    .nav-backdrop.visible {
        opacity: 0;
        visibility: visible;
    }

    .up-hero-dots {
        right: 142px;
        border: 40px;
    }

    #hero {
        padding: 0;
        height: 100vh;
    }

    .up-carousel-stage {
        height: 620px;
    }

    .up-card-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .up-card-btn {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 12px 40px;
    }

    .up-portrait-ring {
        width: 100%;
    }

    .up-nav-btn {
        width: 44px;
        height: 44px;
    }

    .up-card-desc {
        font-size: 14px;
        line-height: 1.8;
        color: var(--text-muted);
        margin: 0;
    }

    .up-intern-body {
        padding: 20px;
    }

    .up-card-content {
        padding: 20px;
    }

    #projects .up-sec-title {
        text-align: center;
        margin-bottom: 30px !important;
    }

    .up-body-text {
        color: var(--text-muted);
        line-height: 1.8;
        font-size: 14px;
        margin-bottom: 18px;
    }

    .up-sec-header {
        margin-bottom: 30px;
    }

    .single-related-grid {
        grid-template-columns: 1fr;
    }

    .single-article-wrap {
        padding: 40px 20px 60px;
    }
}

/* =============================================
   CONTACT PAGE STYLES (MATCHING DESIGN)
   ============================================= */
.contact-page-wrapper {
    background: var(--bg-2);
}

.contact-card-main {
    background: var(--bg-card);
    border-radius: 40px;
    display: grid;
    grid-template-columns: 4.8fr 7.2fr;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-top: -100px;
    /* Sit higher on hero */
    margin-bottom: 80px;
    position: relative;
    z-index: 20;
}

.contact-info-col {
    padding: 100px 70px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
}

.contact-card-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.contact-card-title span {
    color: var(--primary);
}

.contact-card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 90%;
}

.contact-method-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-pale);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-text {
    font-weight: 700;
    color: var(--text-2);
    font-size: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-form-col {
    padding: 100px 70px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.c-new-form .form-group {
    margin-bottom: 30px;
}

.c-new-form label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.c-new-form input,
.c-new-form textarea {
    width: 100%;
    padding: 20px 24px;
    background: var(--bg-1);
    /* Cleaner background */
    border: 1px solid var(--border);
    border-radius: 16px;
    /* More rounded */
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-new-form input:focus,
.c-new-form textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    outline: none;
    transform: translateY(-2px);
}

.contact-submit-btn {
    margin-top: 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 20px 40px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px;
    /* Fully Rounded Pill */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-submit-btn svg {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 4px;
}

.contact-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@media(max-width:1024px) {
    .contact-card-main {
        grid-template-columns: 1fr;
    }

    .contact-info-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 60px 40px;
    }

    .contact-form-col {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .contact-card-main {
        border-radius: 24px;
        margin-top: -20px;
        /* Less severe overlap on mobile */
        box-shadow: none;
        overflow: hidden;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .contact-info-col,
    .contact-form-col {
        padding: 50px 20px;
    }

    .contact-card-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .up-det-item {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }

    .up-contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-method-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    section.contact-section.py-100 {
        margin-top: 59px;
    }

    .video-gallery-container {
        padding: 60px 0 50px;
    }

    .image-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
        gap: 10px;
    }

    .image-gallery-container {
        padding: 50px 0 50px;
        position: relative;
        z-index: 1;
    }

    .single-article-wrap {
        padding: 50px 0;
        max-width: 1280px;
        margin: 0 auto;
    }

    #single-layout-grid-id,
    .single-layout-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 60px !important;
        padding: 0px 20px;
        margin-top: 0px;
        width: 100%;
        align-items: start;
    }

    page-content-body {
        color: var(--text-3);
        font-size: 14px;
        line-height: 1.9;
    }
}