/**
 * styles.css
 * 
 * This file contains all global styles for the Digital Pulz website.
 * It uses native CSS variables (--var-name) for theming (Light/Dark mode).
 * 
 * Architecture:
 * - CSS Reset & Base Styles
 * - Typography & Color Variables
 * - Component Styles (Buttons, Nav, Cards)
 * - Section-specific layouts
 * - Responsive Breakpoints
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

#projects, #team, #blog, #about, #services, #contact {
    scroll-margin-top: 150px;
}

:root {
    --bg-primary: #f5f5f5;
    --text-primary: #252525;
    --text-secondary: #555555;
    --text-hint: rgba(37, 37, 37, 0.4);
    --bg-surface: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(245, 245, 245, 0.75);
    --nav-border: rgba(255, 255, 255, 0.5);
}

body.dark-mode {
    --bg-primary: #121212;
    --text-primary: #f5f5f5;
    --text-secondary: rgba(245, 245, 245, 0.75);
    --text-hint: rgba(245, 245, 245, 0.4);
    --bg-surface: #1e1e1e;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(18, 18, 18, 0.75);
    --nav-border: rgba(255, 255, 255, 0.05);
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
    /* Removed transition property entirely to prevent any conflict with View Transitions API */
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ── Global Page Loading Screen (Super Fast & Premium) ── */
.page-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary, #f5f5f5);
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
    opacity: 1;
    visibility: visible;
}

.page-loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.gradient-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3.5px solid rgba(56, 182, 255, 0.15);
    border-top-color: #38b6ff;
    border-right-color: #4361ee;
    animation: spinSpinner 0.75s linear infinite, glowSpinner 1.5s ease-in-out infinite alternate;
}

@keyframes spinSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowSpinner {
    0% { box-shadow: 0 0 12px rgba(56, 182, 255, 0.3); }
    100% { box-shadow: 0 0 25px rgba(67, 97, 238, 0.6); }
}

/* ── Navbar ── */
.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.65rem clamp(2rem, 6vw, 7rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
}

.hero-nav .logo,
.about-nav .logo {
    min-width: 180px !important;
    margin-right: 1.5rem !important;
    display: flex;
    align-items: center;
}

.hero-nav .logo a {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 42px;
    width: auto !important;
    object-fit: contain;
    display: block;
    /* Scales X by 1.5 (normal) and Y by 2.5 (stretched heavily vertically) */
    transform: scale(3.5, 3.2);
    transform-origin: left center;
    transition: all 0.3s ease;
}

.hero-nav .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1101px) {
    .hero-nav .nav-links,
    .about-nav .nav-links {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

.hero-nav .nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.hero-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4361ee;
    transition: width 0.3s ease;
}

.hero-nav .nav-links a:hover,
.hero-nav .nav-links a.active {
    color: #4361ee;
}

.hero-nav .nav-links a:hover::after,
.hero-nav .nav-links a.active::after {
    width: 100%;
}

/* ── Theme Switch ── */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background: var(--bg-surface);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background 0.4s ease, border-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    border: 1px solid var(--border-color);
}

body.dark-mode .slider {
    background: var(--bg-primary);
    border: 1px solid rgba(67, 97, 238, 0.4);
}

.slider .icon-sun {
    color: #4361ee;
    font-size: 14px;
    z-index: 1;
}

.slider .icon-moon {
    color: var(--text-secondary);
    font-size: 14px;
    z-index: 1;
}

.slider:before {
    background-color: #4361ee;
    bottom: 3px;
    content: "";
    height: 26px;
    left: 3px;
    position: absolute;
    transition: transform 0.4s ease;
    width: 26px;
    z-index: 2;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #4361ee;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ── Hero section ── */
section {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    display: block;
    height: 360svh;
}

.hero-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    padding: 1.5rem clamp(2rem, 6vw, 7rem) 4.5rem;
    gap: clamp(2rem, 5vw, 5rem);
    pointer-events: none;
    overflow: hidden;
}

.hero-text-content {
    opacity: 0;
    will-change: transform, opacity;
    position: relative;
    z-index: 4;
    flex: 0 1 660px;
    max-width: 660px;
    pointer-events: auto;
    padding: 0;
    transition: opacity 0.08s linear;
}

/* Mobile Hero Projects Slider - Hidden by default on desktop view */
.mobile-hero-slider {
    display: none !important;
}

.mhs-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.mhs-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    padding: 0 !important;
    box-sizing: border-box;
}

.mhs-image-banner {
    width: 100% !important;
    height: clamp(190px, 48vw, 260px) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 26, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(67, 97, 238, 0.2);
    border: 1px solid rgba(67, 97, 238, 0.3);
}

body.dark-mode .mhs-image-banner {
    background: rgba(18, 22, 36, 0.65);
    border-color: rgba(67, 97, 238, 0.4);
}

.mhs-image-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.mhs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 2px;
}

.mhs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .mhs-dot {
    background: rgba(255, 255, 255, 0.3);
}

.mhs-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #4361ee;
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.8);
}

.hero-title {
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 4.236rem);
    color: var(--text-primary);
    line-height: 1.02;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: #4361ee;
}

.hero-subtitle {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.618rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    min-height: 3.5rem;
    line-height: 1.12;
    white-space: nowrap;
    letter-spacing: -1.5px;
}

.typing-text {
    color: #4361ee;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: #4361ee;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    max-width: 620px;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.65;
    margin-bottom: 2.2rem;
}

.hero-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #4361ee;
    color: #4361ee;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 0 8px rgba(45, 107, 255, 0.2);
}

.hero-socials a:hover {
    background: #4361ee;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 16px rgba(45, 107, 255, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px;
    padding: 0.9rem 2.25rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: #4361ee;
    color: #ffffff;
    border: 2px solid #4361ee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 8px rgba(45, 107, 255, 0.2);
}

.btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 16px rgba(45, 107, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: #4361ee;
    border: 2px solid #4361ee;
}

.btn-outline:hover {
    background: #4361ee;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 16px rgba(45, 107, 255, 0.4);
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    overflow: visible;
}



@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

#laptop-canvas {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    z-index: 2;
    position: relative;
    overflow: visible;
    filter: drop-shadow(0 0 45px rgba(67, 97, 238, 0.55));
    transition: filter 0.5s ease;
}

body.dark-mode #laptop-canvas {
    filter: drop-shadow(0 0 50px rgba(67, 97, 238, 0.6));
}

.frost-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

/* ── About Section ── */
.about-section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    margin-top: 0;
    background: var(--bg-primary);
    z-index: 10001;
    display: block;
    opacity: 1;
}

.about-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.65rem clamp(2rem, 6vw, 7rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
}

.about-nav.nav-visible {
    opacity: 1;
    pointer-events: auto;
}

.about-nav .logo a {
    display: flex;
    align-items: center;
}

.about-nav .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.about-nav .nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.about-nav .nav-links a:hover,
.about-nav .nav-links a.active {
    color: #4361ee;
}

.about-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4361ee;
    border-radius: 2px;
    transition: width 0.35s ease;
}

.about-nav .nav-links a:hover::after,
.about-nav .nav-links a.active::after {
    width: 100%;
}

.lang-selector {
    position: relative;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-surface);
    border-radius: 40px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.lang-selector:hover .lang-current {
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.15);
    border-color: rgba(67, 97, 238, 0.2);
}

.lang-current i {
    font-size: 1rem;
    color: #4361ee;
}

.lang-current .fa-chevron-down {
    font-size: 0.75rem;
    color: rgba(5, 5, 16, 0.5);
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.lang-selector:hover .lang-current .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 0.5rem;
    width: max-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(5, 5, 16, 0.7) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-dropdown a::after {
    display: none;
}

.lang-dropdown a:hover {
    background: rgba(45, 107, 255, 0.08);
    color: #2D6BFF !important;
}

.about-sticky-wrapper {
    height: auto;
}

.about-content {
    position: relative;
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 2rem 140px 2rem;
    width: 100%;
}

.about-card {
    position: relative;
    width: 100%;
    max-width: 1300px;
    background: var(--bg-surface);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 55vh;
}

.about-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.about-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    display: flex;
    overflow: hidden;
    box-sizing: border-box;
}

.about-prev, .about-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.about-prev:hover, .about-next:hover {
    opacity: 1;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.25);
    color: #4361ee;
}

.about-prev.disabled, .about-next.disabled {
    opacity: 0;
    pointer-events: none;
}

.about-prev {
    left: 2rem;
}

.about-next {
    right: 2rem;
}

.about-split-left {
    flex: 1;
    padding: 3rem 7rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

.about-split-logo p {
    font-size: 2rem;
    font-weight: 900;
    color: #4361ee;
    letter-spacing: -1.5px;
}

.about-split-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.about-split-primary {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.about-split-primary strong {
    font-weight: 800;
}

.about-split-primary .highlight-text {
    color: #4361ee;
    font-weight: 700;
}

.about-split-secondary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-split-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4361ee;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.about-split-link:hover {
    opacity: 0.8;
}

.about-split-right {
    flex: 1;
    position: relative;
    background: #e5e5e5;
}

.about-split-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 950px) {
    .about-slide {
        flex-direction: column;
    }
    
    .about-split-left {
        padding: 4rem 2rem 3rem 2rem;
    }
    
    .about-split-right {
        min-height: 350px;
    }

    .about-prev {
        left: 1rem;
    }

    .about-next {
        right: 1rem;
    }
}



/* ── Projects Section ── */
.projects-wrapper {
    position: relative;
    z-index: 10001;
    background: var(--bg-primary);
    width: 100%;
}

.projects-section {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10vh 2rem 10vh;
    gap: 4rem;
    position: relative;
    z-index: 10001;
    align-items: flex-start;
}

.projects-sticky-left {
    flex: 0 0 35%;
    position: sticky;
    top: 100px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(67, 97, 238, 0.2);
    padding-right: 4rem;
}

.projects-dynamic-content {
    position: relative;
    width: 100%;
}

.projects-default-state {
    position: relative;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.hover-hint {
    margin-top: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-hint);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulseHint 2.5s infinite ease-in-out;
}

.hover-hint-icon {
    width: 30px;
    height: 1px;
    background: var(--text-hint);
    position: relative;
}

.hover-hint-icon::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--text-hint);
    border-right: 1px solid var(--text-hint);
    transform: rotate(45deg);
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(15px); }
}

.projects-hover-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.projects-default-state.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.projects-hover-state.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.projects-title-huge {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0;
}

.text-dark {
    color: var(--text-primary);
}

.text-blue {
    color: #4361ee;
}

.projects-right-header {
    grid-column: 1 / -1;
    margin: 0 0 1rem 0;
}

.projects-label-small {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.font-bold {
    font-weight: 900;
    font-size: 1.2rem;
}

.projects-hover-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.projects-hover-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4361ee;
    margin-bottom: 1.5rem;
}

.projects-hover-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #4361ee;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.see-more-btn:hover {
    gap: 1rem;
}

.projects-scroll-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
    padding-top: 0;
}

.projects-right-header {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

.mobile-projects-carousel {
    display: none;
}

.project-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: #1a1d2e;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 0 !important;
}

.project-card.style-1,
.project-card.style-2,
.project-card.style-3,
.project-card.style-4 {
    aspect-ratio: 16 / 10;
}

.project-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(67, 97, 238, 0.15);
}

.project-card:hover img {
    transform: scale(1.08);
}

/* ── Technology Stack ── */
.tech-stack-section {
    padding: 4rem 2rem 6rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.tech-stack-header {
    margin-bottom: 4rem;
}

.tech-stack-marquee {
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 6rem;
    align-items: center;
    width: max-content;
    animation: marquee 25s linear infinite;
    padding-right: 6rem; /* Ensure gap after last item */
}

.marquee-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: saturate(0%) opacity(0.6);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Partners ── */
.partners-section {
    padding: 2rem 2rem 6rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partners-section .tech-stack-header {
    margin-bottom: 2rem;
}

.partners-container {
    display: flex;
    gap: 8rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 100px;
}

.partner-logo:first-child {
    width: 350px;  /* Increase width specifically for SLASSCOM */
    height: 150px; /* Increase height specifically for SLASSCOM */
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.partner-logo:first-child img {
    animation-delay: -2s;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    mix-blend-mode: multiply;
    animation: subtleFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

body.dark-mode .partner-logo img {
    filter: invert(1) grayscale(1) brightness(2);
    mix-blend-mode: screen;
}

@media (max-width: 768px) {
    .partners-container {
        flex-direction: column;
        gap: 4rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Services ── */
.services-section {
    padding: 120px 2rem 2rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-editorial {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 4rem;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-row.row-reverse .service-row-image {
    order: 2;
}
.service-row.row-reverse .service-row-content {
    order: 1;
}

.service-row-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.service-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.service-row:hover .service-row-image img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.service-row-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-row-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-pills span {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: #4361ee;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-row:hover .service-pills span {
    border-color: rgba(67, 97, 238, 0.4);
}

@media (max-width: 900px) {
    .services-editorial {
        gap: 4rem;
    }
    .service-row,
    .service-row.row-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-row.row-reverse .service-row-image,
    .service-row.row-reverse .service-row-content {
        order: unset;
    }
    .service-row-image {
        aspect-ratio: 16 / 9;
    }
}

/* ── Meet Our Team ── */
.team-section {
    padding: 2.5rem 2rem 8rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
}

.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Corner brackets */
.bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 2;
}
.bracket.top-left { top: 10px; left: 10px; border-top-color: #4361ee; border-left-color: #4361ee; }
.bracket.top-right { top: 10px; right: 10px; border-top-color: #4361ee; border-right-color: #4361ee; }
.bracket.bottom-left { bottom: 10px; left: 10px; border-bottom-color: #4361ee; border-left-color: #4361ee; }
.bracket.bottom-right { bottom: 10px; right: 10px; border-bottom-color: #4361ee; border-right-color: #4361ee; }

.team-info {
    text-align: center;
    width: 100%;
    transition: all 0.4s ease;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.team-role {
    font-size: 0.95rem;
    color: var(--text-primary);
    opacity: 0.7;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.4s ease, opacity 0.4s ease;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s ease;
}

.team-linkedin:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Hover State - "Lights Up" */
.team-card:hover {
    background: #4361ee;
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.25);
}

.team-card:hover .team-image-wrapper img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.05);
}

.team-card:hover .bracket {
    opacity: 1;
}
.team-card:hover .bracket.top-left { border-top-color: var(--bg-primary); border-left-color: var(--bg-primary); top: 15px; left: 15px; }
.team-card:hover .bracket.top-right { border-top-color: var(--bg-primary); border-right-color: var(--bg-primary); top: 15px; right: 15px; }
.team-card:hover .bracket.bottom-left { border-bottom-color: var(--bg-primary); border-left-color: var(--bg-primary); bottom: 15px; left: 15px; }
.team-card:hover .bracket.bottom-right { border-bottom-color: var(--bg-primary); border-right-color: var(--bg-primary); bottom: 15px; right: 15px; }

.team-card:hover .team-name,
.team-card:hover .team-role {
    color: var(--bg-primary);
}

.team-card:hover .team-linkedin {
    background: rgba(245, 245, 245, 0.2);
    color: var(--bg-primary);
}

.team-card:hover .team-linkedin:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

@media (max-width: 950px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 950px) {
    .projects-section {
        flex-direction: column;
    }
    .projects-sticky-left {
        position: relative;
        top: 0;
        min-height: 250px;
    }
    .projects-scroll-right {
        grid-template-columns: 1fr;
    }
    .project-card:nth-child(odd) {
        margin-top: 0;
    }
}

/* Scroll reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* ── CEO Message Section ── */
section {
    padding: 6rem clamp(1.5rem, 6vw, 7rem);
    position: relative;
}

#home {
    /* Hero section */
}

.ceo-message-section {
    padding: 2rem 2rem 6rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10001;
    display: flex;
    justify-content: center;
}

.ceo-message-container {
    max-width: 1200px;
    width: 100%;
    background: var(--bg-surface);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
    position: relative;
}

.ceo-text-col {
    flex: 1;
    padding: 4rem 5rem;
    position: relative;
}

.ceo-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.ceo-title .text-blue {
    color: #4361ee;
}

.ceo-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ceo-header .ceo-title {
    margin-bottom: 0;
}

.ceo-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ceo-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ceo-signoff {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.ceo-signoff-regards {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ceo-signoff-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: serif;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.ceo-signoff-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4361ee;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .ceo-message-container {
        flex-direction: column;
    }
    .ceo-image-col {
        height: 400px;
    }
    .ceo-text-col {
        padding: 3rem 2rem;
    }
}

/* ── Blog Preview Section ── */
.blog-preview-section {
    padding: 4rem 2rem 5rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.blog-carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    z-index: 5;
}

.blog-carousel-btn:hover {
    background: #4361ee;
    color: #fff;
    border-color: #4361ee;
    transform: scale(1.08);
}

.blog-preview-grid {
    display: flex;
    gap: 2rem;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.8rem 0.5rem 1.8rem;
    scrollbar-width: none;
}

.blog-preview-grid::-webkit-scrollbar {
    display: none;
}

@keyframes smoothCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.blog-preview-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: 320px;
    scroll-snap-align: start;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    animation: smoothCardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.blog-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(67, 97, 238, 0.3);
}

.blog-preview-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-surface);
}

.blog-preview-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-preview-card:hover .blog-preview-card-image img {
    transform: scale(1.06);
}

.blog-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(67, 97, 238, 0.03));
    color: #4361ee;
    font-size: 2.5rem;
    opacity: 0.3;
}

.blog-preview-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-preview-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4361ee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-preview-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.blog-preview-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.blog-preview-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.blog-preview-cta {
    margin-top: 2.5rem;
    text-align: center;
}

/* ── Contact Section ── */
.contact-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10001;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    color: var(--text-primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info-title .text-blue {
    color: #4361ee;
}

.contact-info-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    width: 100%;
    max-width: 450px;
}

.contact-detail-item:hover {
    transform: translateY(-3px);
    border-color: #4361ee;
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.18);
    background: rgba(67, 97, 238, 0.04);
}

.contact-detail-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 1.2rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-detail-item:hover .contact-detail-icon {
    background: #4361ee;
    color: #ffffff;
    transform: scale(1.08);
}

.contact-detail-action {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-hint);
    font-size: 0.9rem;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.contact-detail-item:hover .contact-detail-action {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.1);
    transform: translateX(4px);
}

.contact-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
    align-items: center;
}

.contact-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #4361ee;
    color: #4361ee;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 0 8px rgba(67, 97, 238, 0.2);
    background: var(--bg-surface);
}

.contact-socials a:hover {
    background: #4361ee;
    color: #ffffff;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.35), 0 0 16px rgba(67, 97, 238, 0.5);
    border-color: #4361ee;
}

.contact-form-box {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    background: var(--bg-surface);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #4361ee;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #3651c4;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-box {
        padding: 2rem;
    }
}

/* ── Footer ── */
.site-footer {
    background: #0d0d0d;
    padding: 1.5rem 2rem;
    border-top: 1px solid #222222;
    position: relative;
    z-index: 10002;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    margin: 0;
    color: #aaaaaa;
    font-size: 0.9rem;
    font-family: "Inter", sans-serif;
}

.footer-container strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-container .text-red {
    color: #ffffff;
    font-weight: 800;
}

.footer-container a {
    color: #8899a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-container a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-container {
        text-align: center;
    }
}

/* --- View Transitions API: Dark Mode Ripple Effect --- */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
    display: block;
}

/* When expanding TO dark mode, new view (dark) expands over old view */
html.to-dark::view-transition-old(root) { z-index: 1; opacity: 1; }
html.to-dark::view-transition-new(root) { z-index: 2; opacity: 1; }

/* When shrinking FROM dark mode TO light mode, old view (dark) stays on top while shrinking over light view */
html.to-light::view-transition-old(root) { z-index: 2; opacity: 1; }
html.to-light::view-transition-new(root) { z-index: 1; opacity: 1; }

/* Prevent default crossfade and viewport shift on everything else */
::view-transition-group(root),
::view-transition-image-pair(root) {
    animation: none;
}

/* ── Responsive ── */
/* ── Hamburger Button (hidden on desktop) ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10010;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Responsive adjustments for smaller desktop/laptop screens (13"/14" laptops and compact windows) */
@media (min-width: 1101px) and (max-width: 1400px), (min-width: 1101px) and (max-height: 800px) {
    .hero-nav,
    .about-nav {
        padding: 1.2rem clamp(1.2rem, 3vw, 3.5rem) !important;
    }

    .hero-nav .nav-links,
    .about-nav .nav-links {
        gap: clamp(1rem, 2vw, 1.8rem) !important;
    }

    .hero-nav .nav-links a,
    .about-nav .nav-links a {
        font-size: 0.95rem !important;
    }

    .nav-logo {
        transform: scale(2.8, 2.6) !important;
    }

    .hero-container {
        padding: 1.2rem clamp(1.5rem, 4vw, 4rem) 2.5rem !important;
        gap: clamp(1.5rem, 3vw, 3rem) !important;
    }

    .hero-text-content {
        flex: 0 1 540px !important;
        max-width: 540px !important;
    }

    .hero-title {
        font-size: clamp(2.4rem, 4.5vw, 3.4rem) !important;
        margin-bottom: 0.5rem !important;
        letter-spacing: -1.5px !important;
    }

    .hero-subtitle {
        font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 0.65rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        letter-spacing: -1px !important;
    }

    .hero-description {
        font-size: 0.98rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.55 !important;
        max-width: 95% !important;
    }

    .hero-socials {
        margin-bottom: 0.85rem !important;
        gap: 0.8rem !important;
    }

    .hero-socials a {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.15rem !important;
    }

    .btn {
        min-width: 135px !important;
        padding: 0.75rem 1.6rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 1100px) {
    /* Ensure entire mobile page background (body, html, hero, navbar, and all sections) is 100% full-screen, solid, deep pure black (#08090c) without any charcoal grey (#121212/#1b1d22/frost-overlay) anywhere in the width OR height */
    body.dark-mode,
    body.dark-mode html,
    body.dark-mode section.hero,
    body.dark-mode .hero,
    body.dark-mode #home,
    body.dark-mode .hero-container,
    body.dark-mode .about-section,
    body.dark-mode .services-section,
    body.dark-mode .projects-section,
    body.dark-mode .team-section,
    body.dark-mode .blog-preview-section,
    body.dark-mode .contact-section {
        background: #08090c !important;
        --bg-primary: #08090c !important;
        --nav-bg: rgba(8, 9, 12, 0.9) !important;
        --bg-surface: #0f1118 !important;
    }

    body.dark-mode .hero-nav,
    body.dark-mode .about-nav {
        background: rgba(8, 9, 12, 0.95) !important;
    }

    .frost-overlay {
        display: none !important;
    }

    body,
    html {
        background: var(--bg-primary) !important;
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100svh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    .hero-nav {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--nav-bg) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 10005 !important;
        box-shadow: 0 4px 20px var(--shadow-color);
        opacity: 1 !important;
        pointer-events: auto !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 0.8rem clamp(0.8rem, 3vw, 1.5rem) !important;
    }

    .about-nav {
        display: none !important;
    }

    .hero-nav .hamburger,
    .about-nav .hamburger {
        order: 1;
        flex: 0 0 auto !important;
        margin-right: 0.4rem !important;
    }

    .hero-nav .logo,
    .about-nav .logo {
        order: 2;
        margin-left: 0.8rem !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    .theme-switch-wrapper {
        order: 3;
        margin-left: auto !important;
        flex: 0 0 auto !important;
        transform: scale(0.9) !important;
        transform-origin: right center !important;
    }

    .hero-nav .nav-links,
    .about-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 3% !important;
        width: 94% !important;
        max-height: calc(100svh - 90px) !important;
        overflow-y: auto !important;
        gap: 0;
        z-index: 10010 !important;
        background: var(--bg-surface) !important;
        border-radius: 14px !important;
        margin: 0 !important;
        padding: 0.6rem 0 !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
        border: 1px solid var(--border-color) !important;
    }

    .hero-nav .nav-links {
        background: rgba(var(--bg-surface-rgb, 255, 255, 255), 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    body.dark-mode .hero-nav .nav-links,
    body.dark-mode .about-nav .nav-links {
        background: rgba(18, 20, 26, 0.98) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    .hero-nav .nav-links.mobile-open,
    .about-nav .nav-links.mobile-open {
        display: flex !important;
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-nav .nav-links a,
    .about-nav .nav-links a {
        padding: 0.85rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .hero-nav .nav-links a:hover,
    .about-nav .nav-links a:hover {
        background: rgba(67, 97, 238, 0.08);
    }

    .hero-nav .nav-links a::after,
    .about-nav .nav-links a::after {
        display: none;
    }

    /* Logo scaling fix for mobile */
    .nav-logo {
        height: 38px !important;
        width: auto !important;
        transform: scale(2.2, 2.0) !important;
        transform-origin: left center !important;
        max-width: none !important;
    }

    /* Standardize all card border-radius on mobile view */
    .about-card,
    .service-card,
    .service-row,
    .service-row.row-reverse,
    .feature-card,
    .mp-card,
    .team-card,
    .ceo-message-container,
    .contact-form-box,
    .blog-preview-card,
    .blog-card,
    .project-card {
        border-radius: 4px !important;
    }

    /* Hero layout and seamless full-page background for mobile */
    section.hero,
    .hero,
    #home {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100svh !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        background: var(--bg-primary) !important;
        border: none !important;
        box-shadow: none !important;
    }

    .hero-container {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 58px 0 1rem !important;
        gap: 0 !important;
        margin: 0 !important;
        min-height: 100% !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        background: var(--bg-primary) !important;
        border: none !important;
        box-shadow: none !important;
    }

    .about-section,
    .services-section,
    .projects-section,
    .team-section,
    .blog-preview-section,
    .contact-section {
        margin-top: 0 !important;
        opacity: 1 !important;
        background: var(--bg-primary) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-image-wrapper {
        display: none !important;
    }

    .hero-text-content {
        flex: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start !important;
        text-align: center;
        padding: 0 !important;
        margin: 0 auto;
        background: none;
        z-index: 4;
        order: 1;
        pointer-events: auto;
        opacity: 1 !important;
    }

    .mobile-hero-slider {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 96% !important;
        max-width: 620px !important;
        margin: -5px auto 0.65rem !important;
        overflow: hidden;
        position: relative;
        z-index: 5;
        padding: 0 !important;
    }

    .mhs-image-banner {
        width: 100% !important;
        max-width: 100% !important;
        height: clamp(140px, 40vw, 185px) !important;
        border-radius: 6px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .mhs-image-banner img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 6px !important;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    }

    /* Ensure all section titles stay together on one line on mobile */
    .tech-stack-header .projects-label-small {
        font-size: clamp(1.4rem, 6.5vw, 2.2rem) !important;
        white-space: nowrap !important;
        letter-spacing: 1px !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7.5vw, 2.6rem) !important;
        width: 92% !important;
        max-width: 600px !important;
        margin: 0 auto 0.5rem !important;
        line-height: 1.05;
        text-align: center !important;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 4.2vw, 1.45rem) !important;
        width: 92% !important;
        max-width: 600px !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 auto 0.65rem !important;
        line-height: 1.3;
        text-align: center !important;
        white-space: normal;
        word-wrap: break-word;
    }

    .typing-text {
        min-width: 0;
    }

    .hero-description {
        font-size: 0.95rem !important;
        line-height: 1.38 !important;
        width: 90% !important;
        max-width: 540px !important;
        margin: 0 auto 0.75rem !important;
        padding: 0;
        text-align: center !important;
    }

    .hero-socials {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.9rem !important;
        margin: 0 auto 0.85rem !important;
    }

    .hero-socials a {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .hero-buttons {
        width: 92% !important;
        max-width: 440px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.7rem !important;
        margin: 0.1rem auto 1.5rem !important;
    }

    .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        min-width: 130px !important;
        max-width: 100%;
        padding: 0.75rem 1.3rem !important;
        font-size: 0.96rem !important;
        flex: 1 1 auto;
    }

    #laptop-canvas {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }

    .image-glow {
        width: 260px;
        height: 260px;
    }

    .about-content {
        padding: 2.5rem 1rem 3rem;
        min-height: auto;
        height: auto;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }

    .about-card {
        min-height: auto;
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .about-slide {
        flex-direction: column;
    }

    .about-split-left {
        padding: 2rem 1.4rem 1.6rem;
        gap: 0.8rem;
    }

    .about-split-logo p {
        font-size: 1.4rem;
        margin: 0;
    }

    .about-split-text {
        margin: 0.4rem 0;
        gap: 0.8rem;
    }

    .about-split-primary {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .about-split-secondary {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .about-split-right {
        min-height: 220px;
        height: 220px;
        flex: none;
        width: 100%;
    }

    .about-prev,
    .about-next {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        top: auto;
        bottom: 12px;
        transform: none;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    body.dark-mode .about-prev,
    body.dark-mode .about-next {
        background: rgba(28, 28, 28, 0.92);
        color: #fff;
    }

    .about-prev {
        left: 12px;
    }

    .about-next {
        right: 12px;
    }

    /* ── Mobile Services Section ── */
    .services-section {
        padding: 4rem 1rem 3rem;
    }

    .services-editorial {
        gap: 2.2rem;
        margin: 1.5rem auto;
        width: 100%;
    }

    .service-row,
    .service-row.row-reverse {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 1.2rem;
        box-shadow: 0 8px 24px var(--shadow-color);
    }

    .service-row.row-reverse .service-row-image,
    .service-row.row-reverse .service-row-content {
        order: unset;
    }

    .service-row-image {
        aspect-ratio: 16 / 9;
        border-radius: 4px;
        width: 100%;
        margin: 0;
    }

    .service-row-content {
        padding: 0.2rem;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .service-row-title {
        font-size: 1.35rem;
        margin-bottom: 0.85rem;
    }

    .service-pills {
        justify-content: center;
        gap: 0.55rem;
    }

    /* ── Mobile Projects Section & Carousel ── */
    .projects-sticky-left,
    .projects-scroll-right {
        display: none !important;
    }

    .mobile-projects-carousel {
        display: block !important;
        width: 100%;
        padding: 1rem 0 2rem;
    }

    .mp-carousel-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mp-prev, .mp-next {
        position: absolute;
        top: 52%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        box-shadow: 0 4px 15px var(--shadow-color);
        z-index: 10;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mp-prev:active, .mp-next:active {
        transform: translateY(-50%) scale(0.92);
    }

    .mp-prev { left: -5px; }
    .mp-next { right: -5px; }

    .mp-track-container {
        width: 100%;
        overflow: hidden;
        padding: 10px 4px;
    }

    .mp-track {
        display: flex;
        transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .mp-slide {
        min-width: 100%;
        box-sizing: border-box;
        padding: 0 8px;
        display: flex;
        flex-direction: column;
    }

    .mp-card {
        background: var(--bg-surface);
        border-radius: 4px;
        border: 1px solid var(--border-color);
        overflow: hidden;
        box-shadow: 0 10px 30px var(--shadow-color);
        display: flex;
        flex-direction: column;
    }

    .mp-card-img {
        width: 100%;
        height: 200px;
        background: #0f111a;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .mp-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mp-card-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        text-align: left;
        gap: 0.75rem;
    }

    .mp-card-title {
        font-size: 1.45rem;
        font-weight: 800;
        color: var(--text-primary);
        margin: 0;
        line-height: 1.3;
    }

    .mp-card-subtitle {
        font-size: 0.95rem;
        font-weight: 700;
        color: #4361ee;
        margin: 0;
        line-height: 1.4;
    }

    .mp-card-desc {
        font-size: 0.94rem;
        line-height: 1.6;
        color: var(--text-secondary);
        margin: 0;
    }

    .mp-tech-label {
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--text-hint);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 0.4rem 0 0.2rem;
    }

    .mp-tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin: 0.4rem 0;
    }

    .mp-tech-tag {
        background: rgba(67, 97, 238, 0.12);
        color: #4361ee;
        border: 1px solid rgba(67, 97, 238, 0.3);
        padding: 0.3rem 0.75rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
    }

    .mp-actions {
        margin-top: 0.8rem;
        width: 100%;
    }

    .mp-visit-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        width: 100%;
        padding: 0.85rem 1.2rem;
        font-weight: 700;
        border-radius: 12px;
        text-align: center;
        text-decoration: none;
        box-sizing: border-box;
    }

    .mp-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1.3rem;
    }

    .mp-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--border-color);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mp-dot.active {
        width: 28px;
        border-radius: 5px;
        background: #4361ee;
    }

    /* ── Mobile Tech Stack & Partners ── */
    .tech-stack-section,
    .partners-section {
        padding: 3.5rem 1rem;
    }

    .tech-stack-header {
        margin-bottom: 1.8rem !important;
    }

    .partners-container {
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .partner-logo {
        height: 65px;
        width: 100%;
        max-width: 220px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* ── Mobile Meet Our Team ── */
    .team-section {
        padding: 4rem 1rem 4rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100%;
    }

    .team-card {
        padding: 0 !important;
        border-radius: 4px;
        width: 100%;
    }

    .team-image-wrapper {
        margin-bottom: 0.6rem;
        border-radius: 4px;
        width: 100%;
    }

    /* Keep images in full color (not grayscale) on mobile view */
    .team-image-wrapper img {
        filter: grayscale(0%) contrast(1) brightness(1) !important;
    }

    .team-name {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.2rem;
    }

    .team-role {
        font-size: 0.72rem;
        margin-bottom: 0.8rem;
    }

    .team-linkedin {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* ── Mobile CEO Message ── */
    .ceo-message-section {
        padding: 3.5rem 1rem;
    }

    .ceo-message-container {
        border-radius: 4px;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px var(--shadow-color);
        padding: 2rem 1.2rem;
        text-align: center;
    }

    .ceo-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .ceo-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 0 auto;
    }

    .ceo-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .ceo-quote {
        font-size: 1.15rem !important;
        line-height: 1.6 !important;
    }

    .ceo-author {
        font-size: 0.95rem !important;
    }

    /* ── Mobile Contact Section ── */
    .contact-section {
        padding: 4rem 1rem 5rem;
    }

    .contact-container {
        gap: 2rem;
        grid-template-columns: 1fr !important;
    }

    .contact-info {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .contact-info-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .contact-info-desc {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .contact-details {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 1.2rem !important;
        margin: 1.5rem auto 0 !important;
    }

    .contact-detail-item {
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1rem 1.25rem !important;
        text-align: left !important;
    }

    .contact-detail-left {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        flex: 1 !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .contact-detail-left > div:last-child {
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .contact-socials {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.1rem !important;
        margin: 1.8rem auto 0.5rem !important;
        width: 100% !important;
    }

    .contact-form-box {
        padding: 1.8rem 1.2rem !important;
        border-radius: 4px;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        box-shadow: 0 8px 24px var(--shadow-color);
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px !important;
        padding: 0.85rem 1rem;
        border-radius: 4px;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.05rem;
        border-radius: 4px;
    }

@media (max-width: 1024px) {
    .blog-preview-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    #projects, #team, #blog, #about, #services, #contact {
        scroll-margin-top: 130px;
    }

    /* ── Mobile Blog Preview ── */
    .blog-preview-section {
        padding: 3.5rem 1rem 3rem;
    }

    .blog-carousel-wrapper {
        gap: 0.6rem;
        justify-content: center;
        align-items: center;
    }

    .blog-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .blog-preview-grid {
        gap: 1rem;
        padding: 0.5rem 0 1.5rem;
        scroll-snap-type: x mandatory;
    }

    .blog-preview-card {
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
        scroll-snap-align: center;
        border-radius: 4px;
        margin: 0 auto;
    }

    .blog-preview-card-body {
        padding: 1.2rem;
    }

    .blog-preview-title {
        font-size: 1.05rem;
    }
}}