:root {
    /* Dark Theme (Default) */
    --bg-color: #050511;
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-primary: #f2f2f2;
    --text-secondary: #94a3b8;
    --accent: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 17, 0.8);

    /* Gradient Colors */
    --bg-gradient-1: #0f172a;
    --bg-gradient-2: #1e1b4b;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Oswald', sans-serif;
    /* Adfinite Style: Bold Condensed Sans */
    --padding-x: 4vw;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --bg-card: rgba(0, 0, 0, 0.03);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #4f46e5;
    /* Darker Indigo for contrast */
    --accent-glow: rgba(79, 70, 229, 0.2);
    --border-color: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(248, 249, 250, 0.8);

    /* Light Mode Gradient - Clean & Subtle */
    --bg-gradient-1: #e2e8f0;
    --bg-gradient-2: #f1f5f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Navigation */
.nav-minimal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
    background: transparent;
    pointer-events: none;
    /* Let clicks pass through */
}

.nav-left {
    display: none;
    /* Hide Logo Globally */
}

.nav-right {
    position: absolute;
    top: 2rem;
    right: var(--padding-x);
    pointer-events: auto;
    /* Enable clicks for toggle */
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links-desktop {
    display: none;
    /* Hide Desktop Links Globally */
}

.nav-link {
    display: none;
    /* Ensure links are hidden */
}

/* Theme Toggle */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-btn:hover {
    color: var(--accent);
    transform: rotate(15deg);
}

.sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Hero Section (Split) */
.hero-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* More space for text */
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Ambient Glow Background */
.hero-split::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.hero-text {
    padding: 8rem var(--padding-x) 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 11vw, 13rem);
    /* Massive */
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.02em;
    /* Oswald needs positive spacing sometimes */
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-name i {
    font-style: normal;
    /* Oswald doesn't need italics for emphasis, maybe color */
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero-role-badge {
    display: inline-flex;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 4rem;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 550px;
    margin-bottom: auto;
}

.hero-meta {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-weight: 600;
}

.meta-item .value {
    font-size: 1rem;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.profile-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 85%;
    /* Focus on bottom/face */
    filter: grayscale(20%) sepia(10%) contrast(1.1);
    /* Cinematic look */
    transition: filter 0.5s ease, transform 0.5s ease;
}

.hero-visual:hover .profile-img-full {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.02);
}

/* Work Section (Grid) */
.work-section-v3 {
    padding: 8rem var(--padding-x);
    position: relative;
}

.section-header-v3 {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.section-header-v3 h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    white-space: nowrap;
}

.section-header-v3 h2 i {
    font-style: normal;
    color: var(--accent);
}

.line-spacer {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
}

.count {
    font-size: 1rem;
    color: var(--accent);
    font-family: var(--font-serif);
    font-style: italic;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.work-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Card Hover Glow */
.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.work-card.featured {
    grid-column: span 2;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.company {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.year {
    font-size: 0.9rem;
    color: var(--accent);
    font-family: var(--font-sans);
    background: rgba(129, 140, 248, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.card-body {
    flex-grow: 1;
}

.role {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 450px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.arrow {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.7;
    transform: translateX(0) rotate(-45deg);
    /* Arrow pointing up-right */
    transition: all 0.3s ease;
}

.work-card:hover .arrow {
    opacity: 1;
    transform: translateX(5px) rotate(-45deg);
}

/* Capabilities Section */
.capabilities-section {
    padding: 8rem var(--padding-x);
    border-top: 1px solid var(--border-color);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.cap-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.cap-card:hover::before {
    opacity: 1;
}

.cap-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.cap-icon {
    font-size: 2.5rem;
    color: var(--accent);
    transition: transform 0.4s ease;
    display: inline-block;
}

.cap-card:hover .cap-icon {
    transform: scale(1.1) rotate(5deg);
}

.cap-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.cap-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 350px;
}

/* Process Section (Sticky Stack) */
.process-section {
    padding: 8rem var(--padding-x);
    border-top: 1px solid var(--border-color);
}

.process-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 3rem;
    position: sticky;
    top: calc(100px + (var(--i) * 20px));
    /* Stacking effect */
    border-radius: 16px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.process-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.process-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tech Stack (Marquee) */
.stack-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    padding-left: 3rem;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.marquee-content .separator {
    color: var(--accent);
    font-size: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* About Section V3 */
.about-section-v3 {
    padding: 0 var(--padding-x) 8rem;
    border-top: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding-top: 6rem;
}

.about-col h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.ethos-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ethos-list li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ethos-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ethos-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.edu-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.school {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.degree {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-col p {
    font-size: 1.8rem;
    /* Large editorial text */
    line-height: 1.4;
    font-weight: 400;
    font-family: var(--font-serif);
}

.cta-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.2rem;
    transition: color 0.3s, border-color 0.3s;
}

/* Dynamic Background Gradient */
body {
    background: linear-gradient(-45deg, var(--bg-color), var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

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

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

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference;
}

/* Cursor States */
body.hover-link .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

body.hover-card .cursor-follower {
    width: 80px;
    height: 80px;
    background-color: var(--accent);
    border-color: transparent;
    mix-blend-mode: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.hover-card .cursor-follower::after {
    content: 'VIEW';
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-sans);
}

/* Hide Default Cursor on Desktop */
@media (min-width: 992px) {

    body,
    a,
    button {
        cursor: none;
    }
}

/* Disable Custom Cursor on Mobile */
@media (max-width: 991px) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto;
    }
}

/* Footer */
.footer-minimal {
    padding: 8rem var(--padding-x) 4rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.footer-cta {
    margin-bottom: 8rem;
    text-align: center;
}

.footer-cta h2 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-link {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 9vw, 7rem);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}

.cta-link:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.socials svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 991px) {
    :root {
        --padding-x: 6vw;
    }

    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 6rem;
        /* Reduced padding */
    }

    .hero-text {
        padding: 3rem var(--padding-x);
        /* Tighter padding */
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-visual {
        height: 35vh;
        /* Reduced height to show content above fold */
        border-left: none;
    }

    .hero-name {
        font-size: 12vw;
        /* Scaled down for elegance */
        /* Scale down for mobile */
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        /* Tighter gap */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        /* Tighter gap */
    }
}

@media (max-width: 768px) {

    .work-grid,
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .section-header-v3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header-v3 .line-spacer {
        display: none;
    }

    .process-card {
        padding: 2rem;
        min-height: auto;
    }

    /* Adjust sticky stacking for smaller screens if needed */
    .process-section {
        padding-bottom: 4rem;
    }

    .cta-link {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-text {
        padding: 6rem var(--padding-x) 4rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-visual {
        height: 50vh;
    }

    .work-card.featured {
        grid-column: span 1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
}

/* Visibility Icon Styles */
.meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-row .separator {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

.visibility-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.6;
}

.visibility-icon svg {
    width: 12px;
    height: 12px;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Animation */
.mobile-menu-btn.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 991px) {

    /* Simplified Mobile Nav */
    .nav-minimal {
        background: transparent;
        /* Remove background */
        backdrop-filter: none;
        padding: 0;
        /* Remove padding to avoid blocking clicks */
        pointer-events: none;
        /* Let clicks pass through container */
        height: 0;
        /* Minimize height */
        justify-content: center;
        /* Center logo */
    }

    .nav-left {
        display: none;
        /* Hide Logo */
        font-size: 1.8rem;
        /* Slightly larger logo */
    }

    .nav-right {
        position: absolute;
        right: var(--padding-x);
        top: 2rem;
        pointer-events: auto;
        /* Re-enable clicks for toggle */
        z-index: 1000;
    }

    .nav-links-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
        /* Hide Hamburger */
    }

    /* Centered Hero */
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 6rem;
        /* Reduced padding */
        text-align: center;
        /* Center text */
    }

    .hero-text {
        padding: 3rem var(--padding-x);
        /* Tighter padding */
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        align-items: center;
        /* Center flex items */
    }

    .hero-role-badge {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 0.5rem;
        margin-bottom: 2rem;
        /* Reduced margin */
        align-items: center;
    }

    .hero-tagline {
        margin: 0 auto 1.5rem;
        /* Reduced margin */
        /* Center block */
    }

    .hero-meta {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 1.5rem;
        /* Tighter gap */
    }

    .hero-visual {
        height: 35vh;
        /* Reduced height */
        border-left: none;
    }

    .hero-name {
        font-size: 12vw;
        /* Scaled down */
    }

    /* Centered Section Headers */
    .section-header-v3 {
        flex-direction: column;
        align-items: center;
        /* Center align */
        gap: 1rem;
        text-align: center;
    }

    .section-header-v3 .line-spacer {
        display: none;
    }

    .section-header-v3 h2 {
        font-size: 2.5rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        /* Tighter gap */
        text-align: center;
    }

    .about-col h3 {
        text-align: center;
    }

    .ethos-list {
        align-items: center;
    }

    .ethos-list li {
        align-items: center;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        /* Tighter gap */
        align-items: center;
        /* Center align */
        text-align: center;
    }

    .footer-cta h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {

    .work-grid,
    .capabilities-grid {
        grid-template-columns: 1fr;
        /* Single column for mobile */
    }

    .work-card {
        min-height: auto;
        /* Allow auto height */
        text-align: center;
        /* Center card content */
        align-items: center;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .card-footer {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .arrow {
        display: none;
        /* Hide arrow on mobile for cleaner look */
    }

    .cap-card {
        align-items: center;
        text-align: center;
    }

    .process-card {
        padding: 2rem;
        min-height: auto;
        position: relative;
        top: 0 !important;
        margin-bottom: 2rem;
        text-align: center;
    }

    .step-number {
        position: static;
        margin-bottom: 1rem;
        display: block;
    }

    .process-section {
        padding-bottom: 4rem;
    }

    .cta-link {
        font-size: 3rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 2rem;
    }

    .work-card.featured {
        grid-column: span 1;
    }
}

/* Large Connect Links (Icons) */
.connect-links {
    display: flex;
    gap: 2rem;
    /* Space between icons */
    margin-top: 2rem;
}

.connect-icon-link {
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.connect-icon-link svg {
    width: 60px;
    /* Large Icon Size */
    height: 60px;
    transition: transform 0.3s ease;
}

.connect-icon-link:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-5px);
}

.connect-icon-link:hover svg {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .connect-links {
        justify-content: center;
        /* Center on mobile */
        gap: 3rem;
    }

    .connect-icon-link svg {
        width: 50px;
        /* Slightly smaller on mobile */
        height: 50px;
    }

    /* Email Icon Specific Adjustment (Mobile) */
    .connect-icon-link[aria-label="Email"] svg {
        width: 60px;
        height: 60px;
    }
}

/* Email Icon Specific Adjustment (Desktop) */
.connect-icon-link[aria-label="Email"] svg {
    width: 70px;
    height: 70px;
}

/* Premium Footer Styles */
.footer-minimal {
    border-top: none;
    /* Removed border */
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--padding-x);
}

.footer-left .copyright,
.footer-right .location-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 500;
}

@media (max-width: 991px) {
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 1rem;
    }
}