@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
    /* Constant Base Colors */
    --clr-navy: #0B1628;
    --clr-navy-mid: #152035;
    --clr-navy-light: #1E3050;
    --clr-gold: #C9A84C;
    --clr-gold-light: #E2C06E;
    --clr-gold-dark: #A3822B;
    --clr-cream: #F5F0E8;
    --clr-cream-light: #FAF8F3;
    --clr-cream-dark: #EAE3D5;
    --clr-white: #FFFFFF;
    --clr-gray: #8A97AA;
    --clr-gray-dark: #4A5568;
    
    --font-display: 'Playfair Display', serif; 
    --font-body: 'DM Sans', sans-serif;
    
    /* Theme variables - Default Dark Mode */
    --navy: var(--clr-navy); 
    --navy-mid: var(--clr-navy-mid); 
    --navy-light: var(--clr-navy-light);
    --gold: var(--clr-gold); 
    --gold-light: var(--clr-gold-light); 
    --cream: var(--clr-cream);
    --white: var(--clr-white); 
    --gray: var(--clr-gray); 
    --border: rgba(201, 168, 76, 0.18);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --backdrop-color: rgba(6, 12, 22, 0.92);
    --dialog-bg: var(--clr-navy-mid);
    --code-bg: var(--clr-navy-mid);
    --input-bg: var(--clr-navy);
}

[data-theme="light"] {
    /* Light Mode bindings */
    --navy: var(--clr-cream-light);
    --navy-mid: var(--clr-white);
    --navy-light: var(--clr-cream-dark);
    --gold: var(--clr-gold-dark);
    --gold-light: var(--clr-gold);
    --cream: var(--clr-navy);
    --white: var(--clr-navy);
    --gray: var(--clr-gray-dark);
    --border: rgba(163, 130, 43, 0.28);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --backdrop-color: rgba(250, 248, 245, 0.92);
    --dialog-bg: var(--clr-white);
    --code-bg: #F0EDE6;
    --input-bg: var(--clr-cream-light);
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 72px; 
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { 
    width: 10px; 
}

::-webkit-scrollbar-track { 
    background: var(--navy); 
}

::-webkit-scrollbar-thumb { 
    background: var(--navy-light); 
    border: 2px solid var(--navy); 
    border-radius: 4px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: var(--gold); 
}

body { 
    background: var(--navy); 
    color: var(--cream); 
    font-family: var(--font-body); 
    font-weight: 300; 
    line-height: 1.7; 
    overflow-x: hidden; 
    transition: background 0.3s ease, color 0.3s ease;
}

/* NAV */
nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 1.4rem 5vw; 
    background: rgba(6, 12, 22, 0.97); 
    backdrop-filter: blur(14px); 
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); 
}

/* Maintain dark navbar on light mode for professional contrast, or adapt */
[data-theme="light"] nav {
    background: rgba(250, 248, 245, 0.97);
}

.logo { 
    font-family: var(--font-display); 
    font-size: 1.35rem; 
    font-weight: 700; 
    color: var(--white); 
    letter-spacing: 0.01em; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.logo-img { 
    height: 36px; 
    width: auto; 
}

nav ul { 
    display: flex; 
    gap: 2.5rem; 
    list-style: none; 
    align-items: center;
}

nav ul a { 
    color: var(--gray); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 500; 
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    transition: color 0.25s; 
}

nav ul a.active, nav ul a:hover { 
    color: var(--gold); 
}

.nav-cta { 
    background: var(--gold); 
    color: var(--navy) !important; 
    padding: 0.5rem 1.3rem; 
    border-radius: 2px; 
    transition: background-color 0.25s ease;
}

[data-theme="light"] .nav-cta {
    color: #FAF8F3 !important;
}

.nav-cta:hover { 
    background: var(--gold-light) !important; 
}

.hamburger { 
    display: none; 
    flex-direction: column; 
    justify-content: center; 
    gap: 5px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 4px; 
}

.hamburger span { 
    display: block; 
    width: 22px; 
    height: 2px; 
    background: var(--cream); 
    border-radius: 2px; 
    transition: transform 0.25s, opacity 0.25s; 
}

.hamburger.open span:nth-child(1) { 
    transform: translateY(7px) rotate(45deg); 
}

.hamburger.open span:nth-child(2) { 
    opacity: 0; 
}

.hamburger.open span:nth-child(3) { 
    transform: translateY(-7px) rotate(-45deg); 
}

.mobile-menu { 
    display: none; 
    position: fixed; 
    top: 65px; 
    left: 0; 
    right: 0; 
    background: rgba(6, 12, 22, 0.98); 
    backdrop-filter: blur(14px); 
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); 
    padding: 1rem 5vw 1.5rem; 
    flex-direction: column; 
    z-index: 999; 
}

.mobile-menu.open {
    display: flex;
}

[data-theme="light"] .mobile-menu {
    background: rgba(250, 248, 245, 0.98);
}

.mobile-menu a { 
    color: var(--gray); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 500; 
    letter-spacing: 0.06em; 
    text-transform: uppercase; 
    padding: 0.9rem 0; 
    border-bottom: 1px solid var(--border); 
    transition: color 0.2s; 
}

.mobile-menu a:last-child { 
    border-bottom: none; 
    color: var(--gold); 
    margin-top: 0.3rem; 
}

.mobile-menu a:hover { 
    color: var(--gold); 
}

/* HERO */
#hero { 
    min-height: 100vh; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    align-items: center; 
    padding: 10rem 5vw 6rem; 
    position: relative; 
    overflow: hidden; 
}

.hero-bg { 
    position: absolute; 
    inset: 0; 
    z-index: 0; 
    background: radial-gradient(ellipse 60% 50% at 75% 50%, rgba(201,168,76,0.07) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 10% 80%, rgba(30,48,80,0.8) 0%, transparent 70%); 
}

[data-theme="light"] .hero-bg {
    background: radial-gradient(ellipse 60% 50% at 75% 50%, rgba(201,168,76,0.12) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 10% 80%, rgba(230,224,213,0.8) 0%, transparent 70%); 
}

.hero-bg::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px); 
    background-size: 60px 60px; 
}

.hero-content { 
    position: relative; 
    z-index: 1; 
}

.hero-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 0.75rem; 
    letter-spacing: 0.15em; 
    text-transform: uppercase; 
    color: var(--gold); 
    font-weight: 500; 
    border: 1px solid var(--border); 
    padding: 0.4rem 1rem; 
    border-radius: 2px; 
    margin-bottom: 2rem; 
    animation: fadeUp 0.8s ease both; 
}

.hero-badge::before { 
    content: ''; 
    width: 6px; 
    height: 6px; 
    background: var(--gold); 
    border-radius: 50%; 
    animation: pulse 2s infinite; 
}

@keyframes pulse { 
    0%,100% { opacity: 1; } 
    50% { opacity: 0.3; } 
}

h1 { 
    font-family: var(--font-display); 
    font-size: clamp(2.8rem, 5vw, 4.4rem); 
    font-weight: 700; 
    line-height: 1.1; 
    color: var(--white); 
    margin-bottom: 1.5rem; 
    animation: fadeUp 0.8s 0.15s ease both; 
}

h1 em { 
    font-style: italic; 
    color: var(--gold); 
}

.hero-sub { 
    font-size: 1.05rem; 
    color: var(--gray); 
    max-width: 480px; 
    margin-bottom: 2.5rem; 
    animation: fadeUp 0.8s 0.3s ease both; 
}

.hero-actions { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap; 
    animation: fadeUp 0.8s 0.45s ease both; 
}

.btn-primary { 
    background: var(--gold); 
    color: var(--navy); 
    padding: 0.85rem 2.2rem; 
    font-family: var(--font-body); 
    font-weight: 500; 
    font-size: 0.9rem; 
    letter-spacing: 0.06em; 
    text-transform: uppercase; 
    border: none; 
    cursor: pointer; 
    text-decoration: none; 
    border-radius: 2px; 
    transition: background 0.25s, transform 0.2s; 
    display: inline-block; 
}

[data-theme="light"] .btn-primary {
    color: #FAF8F3;
}

.btn-primary:hover { 
    background: var(--gold-light); 
    transform: translateY(-2px); 
}

.btn-outline { 
    background: transparent; 
    color: var(--cream); 
    padding: 0.85rem 2.2rem; 
    font-family: var(--font-body); 
    font-weight: 500; 
    font-size: 0.9rem; 
    letter-spacing: 0.06em; 
    text-transform: uppercase; 
    border: 1px solid rgba(245,240,232,0.2); 
    cursor: pointer; 
    text-decoration: none; 
    border-radius: 2px; 
    transition: border-color 0.25s, color 0.25s, transform 0.2s; 
    display: inline-block; 
}

[data-theme="light"] .btn-outline {
    border-color: rgba(11,22,40,0.2);
}

.btn-outline:hover { 
    border-color: var(--gold); 
    color: var(--gold); 
    transform: translateY(-2px); 
}

.hero-visual { 
    position: relative; 
    z-index: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    animation: fadeIn 1s 0.5s ease both; 
}

.hero-card { 
    width: 340px; 
    background: var(--code-bg); 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 0 40px 80px var(--shadow-color); 
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-topbar { 
    background: var(--navy-light); 
    padding: 0.7rem 1rem; 
    display: flex; 
    align-items: center; 
    gap: 0.4rem; 
    border-bottom: 1px solid var(--border);
}

.dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
}

.dot-r { background: #FF5F57; } 
.dot-y { background: #FFBD2E; } 
.dot-g { background: #28CA41; }

.card-body { 
    padding: 1.5rem; 
    font-family: monospace; 
    font-size: 0.8rem; 
    line-height: 1.9; 
    min-height: 220px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
}

.c-gray { color: #5A6A80; } 
.c-gold { color: var(--gold); } 
.c-blue { color: #6EB4E8; } 
.c-green { color: #6ED4A0; } 
.c-cream { color: var(--cream); }

.code-line { 
    opacity: 0; 
    animation: slideIn 0.5s ease forwards; 
}

.code-line:nth-child(1) { animation-delay: 0.1s; } 
.code-line:nth-child(2) { animation-delay: 0.3s; } 
.code-line:nth-child(3) { animation-delay: 0.5s; } 
.code-line:nth-child(4) { animation-delay: 0.7s; } 
.code-line:nth-child(5) { animation-delay: 0.9s; } 
.code-line:nth-child(6) { animation-delay: 1.1s; } 
.code-line:nth-child(7) { animation-delay: 1.3s; } 
.code-line:nth-child(8) { animation-delay: 1.5s; } 
.code-line:nth-child(9) { animation-delay: 1.7s; }

@keyframes slideIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.hero-stats { 
    display: flex; 
    gap: 2rem; 
    margin-top: 3.5rem; 
    animation: fadeUp 0.8s 0.6s ease both; 
}

.stat-num { 
    font-family: var(--font-display); 
    font-size: 2rem; 
    font-weight: 700; 
    color: var(--white); 
}

.stat-label { 
    font-size: 0.75rem; 
    color: var(--gray); 
    text-transform: uppercase; 
    letter-spacing: 0.08em; 
    margin-top: 0.1rem; 
}

.stat-divider { 
    width: 1px; 
    background: var(--border); 
    align-self: stretch; 
    min-height: 40px; 
}

@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(28px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* SECTIONS */
section { 
    padding: 7rem 5vw; 
}

.section-tag { 
    font-size: 0.72rem; 
    letter-spacing: 0.2em; 
    text-transform: uppercase; 
    color: var(--gold); 
    font-weight: 500; 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: center; 
    gap: 0.7rem; 
}

.section-tag::before { 
    content: ''; 
    display: inline-block; 
    width: 28px; 
    height: 1px; 
    background: var(--gold); 
}

.section-title { 
    font-family: var(--font-display); 
    font-size: clamp(2rem, 3.5vw, 3rem); 
    font-weight: 700; 
    color: var(--white); 
    line-height: 1.15; 
    margin-bottom: 1.2rem; 
}

.section-title em { 
    font-style: italic; 
    color: var(--gold); 
}

.section-sub { 
    color: var(--gray); 
    font-size: 1rem; 
    max-width: 520px; 
    line-height: 1.8; 
}

/* PROCESS */
#how-we-work { 
    background: var(--navy); 
    border-top: 1px solid var(--border); 
}

.process-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
    margin-top: 3rem; 
}

.process-step { 
    background: var(--navy-mid); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    padding: 2rem 1.5rem; 
    text-align: center; 
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s; 
}

.process-step:hover { 
    transform: translateY(-4px); 
    border-color: rgba(201,168,76,0.4); 
}

.process-num { 
    font-family: var(--font-display); 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: rgba(201,168,76,0.15); 
    line-height: 1; 
    margin-bottom: 1rem; 
}

.process-icon-wrap { 
    width: 48px; 
    height: 48px; 
    margin: 0 auto 1rem; 
    background: rgba(201,168,76,0.08); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.process-icon-wrap svg { 
    stroke: var(--gold); 
    fill: none;
}

.process-name { 
    font-family: var(--font-display); 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--white); 
    margin-bottom: 0.6rem; 
}

.process-desc { 
    font-size: 0.85rem; 
    color: var(--gray); 
    line-height: 1.6; 
}

/* ABOUT */
#about { 
    background: var(--navy-mid); 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
}

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5rem; 
    align-items: center; 
}

.about-img { 
    position: relative; 
}

.about-img-inner { 
    width: 100%; 
    aspect-ratio: 4/3; 
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
}

.about-team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-inner::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%); 
}

.about-accent { 
    position: absolute; 
    bottom: -16px; 
    right: -16px; 
    width: 80px; 
    height: 80px; 
    background: var(--gold); 
    border-radius: 2px; 
    opacity: 0.12; 
}

.values-list { 
    list-style: none; 
    margin-top: 2rem; 
}

.values-list li { 
    display: flex; 
    gap: 1rem; 
    align-items: flex-start; 
    padding: 1rem 0; 
    border-bottom: 1px solid var(--border); 
}

.values-list li:last-child { 
    border-bottom: none; 
}

.val-icon { 
    width: 36px; 
    height: 36px; 
    flex-shrink: 0; 
    background: rgba(201,168,76,0.1); 
    border: 1px solid var(--border); 
    border-radius: 2px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-top: 0.1rem; 
}

.val-icon svg { 
    stroke: var(--gold); 
    fill: none;
}

.val-title { 
    font-weight: 500; 
    color: var(--white); 
    margin-bottom: 0.15rem; 
}

.val-desc { 
    font-size: 0.87rem; 
    color: var(--gray); 
}

/* SERVICES */
#services { 
    background: var(--navy); 
}

.services-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 3.5rem; 
    flex-wrap: wrap; 
    gap: 1.5rem; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5px; 
    background: var(--border); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    overflow: hidden; 
}

.service-card { 
    background: var(--navy-mid); 
    padding: 2.2rem 2rem; 
    transition: background 0.3s, transform 0.3s; 
    position: relative; 
    overflow: hidden; 
    transform: translate3d(0, 0, 0); 
    backface-visibility: hidden; 
}

.service-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 2px; 
    background: var(--gold); 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 0.35s ease; 
    pointer-events: none; 
}

.service-card:hover { 
    background: var(--navy-light); 
}

.service-card:hover::before { 
    transform: scaleX(1); 
}

.service-num { 
    font-family: var(--font-display); 
    font-size: 3rem; 
    font-weight: 700; 
    color: rgba(201,168,76,0.10); 
    line-height: 1; 
    margin-bottom: 1rem; 
}

.service-icon-wrap { 
    width: 44px; 
    height: 44px; 
    background: rgba(201,168,76,0.08); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 1rem; 
}

.service-icon-wrap svg { 
    stroke: var(--gold); 
    fill: none;
}

.service-name { 
    font-family: var(--font-display); 
    font-size: 1.15rem; 
    font-weight: 600; 
    color: var(--white); 
    margin-bottom: 0.7rem; 
}

.service-desc { 
    font-size: 0.87rem; 
    color: var(--gray); 
    line-height: 1.75; 
}

.service-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.4rem; 
    margin-top: 1.3rem; 
}

.tag { 
    font-size: 0.7rem; 
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    background: rgba(201,168,76,0.08); 
    color: var(--gold); 
    border: 1px solid rgba(201,168,76,0.2); 
    padding: 0.2rem 0.6rem; 
    border-radius: 2px; 
}

/* TECH STACK */
#tech-stack { 
    background: var(--navy-mid); 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
}

.stack-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
    margin-top: 3rem; 
}

.stack-col { 
    background: var(--navy); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    padding: 2rem 1.5rem; 
}

.stack-header { 
    display: flex; 
    align-items: center; 
    gap: 0.8rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 0.8rem; 
    border-bottom: 1px solid var(--border); 
}

.stack-header-ico { 
    font-size: 1.2rem; 
}

.stack-header-label { 
    font-family: var(--font-body); 
    font-size: 0.85rem; 
    font-weight: 500; 
    color: var(--gold); 
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
}

.stack-items { 
    display: flex; 
    flex-direction: column; 
    gap: 0.8rem; 
}

.tech-item { 
    display: flex; 
    align-items: center; 
    gap: 0.8rem; 
    padding: 0.6rem 0.8rem; 
    background: var(--navy-mid); 
    border-radius: 2px; 
    border: 1px solid var(--border); 
}

.tech-dot { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: var(--gold); 
    flex-shrink: 0; 
}

.tech-name { 
    font-size: 0.85rem; 
    font-weight: 500; 
    color: var(--cream); 
}

.tech-role { 
    font-size: 0.72rem; 
    color: var(--gray); 
    margin-left: auto; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

.stack-footer-note { 
    margin-top: 2.5rem; 
    font-size: 0.9rem; 
    color: var(--gray); 
    line-height: 1.7; 
    text-align: center; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

.stack-footer-note b { 
    color: var(--white); 
}

/* TESTIMONIALS */
#testimonials { 
    background: var(--navy-mid); 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
}

.testimonials-header { 
    margin-bottom: 3.5rem; 
}

.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
}

.testimonial-card { 
    background: var(--navy); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.testimonial-quote { 
    font-size: 0.95rem; 
    color: var(--cream); 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
    font-style: italic; 
}

.quote-mark { 
    font-family: var(--font-display); 
    font-size: 3rem; 
    color: var(--gold); 
    line-height: 0.5; 
    margin-bottom: 1rem; 
    opacity: 0.4; 
}

.testimonial-author { 
    display: flex; 
    align-items: center; 
    gap: 0.8rem; 
    padding-top: 1.5rem; 
    border-top: 1px solid var(--border); 
}

.author-avatar { 
    width: 44px; 
    height: 44px; 
    background: linear-gradient(135deg, var(--gold) 0%, var(--navy-light) 100%); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    color: var(--navy); 
    flex-shrink: 0; 
    font-size: 0.85rem; 
    overflow: hidden;
    border: 1px solid var(--border);
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[data-theme="light"] .author-avatar {
    color: #FAF8F3;
}

.author-name { 
    font-weight: 600; 
    color: var(--white); 
    font-size: 0.9rem; 
}

.author-title { 
    font-size: 0.75rem; 
    color: var(--gray); 
    text-transform: uppercase; 
    letter-spacing: 0.08em; 
    margin-top: 0.1rem; 
}

/* PORTFOLIO */
#portfolio { 
    background: var(--navy); 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
}

.portfolio-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 3.5rem; 
    flex-wrap: wrap; 
    gap: 1.5rem; 
}

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
}

.portfolio-card { 
    background: var(--navy-mid); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; 
    cursor: pointer; 
    display: block; 
    text-align: left; 
    width: 100%; 
    font-family: inherit; 
}

.portfolio-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 50px var(--shadow-color); 
    border-color: rgba(201,168,76,0.3); 
}

.portfolio-thumb { 
    height: 180px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.06);
}

.portfolio-thumb::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, transparent 40%, rgba(11,22,40,0.85) 100%); 
}

[data-theme="light"] .portfolio-thumb::after { 
    background: linear-gradient(to bottom, transparent 40%, rgba(250,248,245,0.85) 100%); 
}

.portfolio-initial { 
    font-family: var(--font-display); 
    font-size: 2.8rem; 
    font-weight: 700; 
    color: rgba(255,255,255,0.12); 
    letter-spacing: 0.05em; 
    position: relative; 
    z-index: 1; 
}

.portfolio-arrow { 
    position: absolute; 
    bottom: 1rem; 
    right: 1rem; 
    z-index: 2; 
    width: 32px; 
    height: 32px; 
    background: var(--gold); 
    border-radius: 2px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.25s; 
}

.portfolio-arrow svg { 
    stroke: var(--navy); 
    fill: none;
}

.portfolio-card:hover .portfolio-arrow { 
    opacity: 1; 
}

.p-gradient-1{background:linear-gradient(135deg,#1E3050,#0B2040)}
.p-gradient-2{background:linear-gradient(135deg,#1A2E1A,#0B2020)}
.p-gradient-3{background:linear-gradient(135deg,#2E1E10,#201008)}
.p-gradient-4{background:linear-gradient(135deg,#2E1030,#180820)}
.p-gradient-5{background:linear-gradient(135deg,#1E2030,#0B0E28)}
.p-gradient-6{background:linear-gradient(135deg,#102030,#081828)}

.portfolio-info { 
    padding: 1.4rem; 
}

.portfolio-cat { 
    font-size: 0.7rem; 
    letter-spacing: 0.12em; 
    text-transform: uppercase; 
    color: var(--gold); 
    margin-bottom: 0.4rem; 
}

.portfolio-name { 
    font-family: var(--font-display); 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--white); 
    margin-bottom: 0.4rem; 
}

.portfolio-desc { 
    font-size: 0.83rem; 
    color: var(--gray); 
}

/* NATIVE DIALOG MODAL */
dialog.modal-container {
    background: var(--dialog-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    max-width: 720px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    color: var(--cream);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    z-index: 1000;
}

dialog.modal-container::backdrop {
    background: var(--backdrop-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

dialog.modal-container[open] {
    animation: dialogFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: block;
}

@keyframes dialogFadeUp {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-thumb { 
    height: 220px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
    flex-shrink: 0; 
}

.modal-thumb-initial { 
    font-family: var(--font-display); 
    font-size: 5rem; 
    font-weight: 700; 
    color: rgba(255,255,255,0.10); 
    letter-spacing: 0.05em; 
}

.modal-thumb::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, transparent 30%, var(--dialog-bg) 100%); 
}

.modal-close { 
    position: sticky; 
    top: 1rem; 
    float: right; 
    margin-right: 1rem; 
    margin-top: 1rem; 
    margin-bottom: -36px; 
    z-index: 10; 
    background: rgba(11,22,40,0.85); 
    border: 1px solid var(--border); 
    color: var(--gray); 
    width: 36px; 
    height: 36px; 
    border-radius: 2px; 
    cursor: pointer; 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: color 0.2s, border-color 0.2s; 
}

.modal-close:hover { 
    color: var(--white); 
    border-color: var(--gold); 
}

.modal-body { 
    padding: 2rem 2.5rem 2.5rem; 
}

.modal-cat { 
    font-size: 0.7rem; 
    letter-spacing: 0.15em; 
    text-transform: uppercase; 
    color: var(--gold); 
    margin-bottom: 0.5rem; 
}

.modal-name { 
    font-family: var(--font-display); 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--white); 
    margin-bottom: 1rem; 
}

.modal-tagline { 
    font-size: 0.95rem; 
    color: var(--gray); 
    line-height: 1.7; 
    margin-bottom: 1.5rem; 
}

.modal-divider { 
    height: 1px; 
    background: var(--border); 
    margin: 1.5rem 0; 
}

.modal-section-label { 
    font-size: 0.72rem; 
    letter-spacing: 0.15em; 
    text-transform: uppercase; 
    color: var(--gold); 
    font-weight: 500; 
    margin-bottom: 0.6rem; 
}

.modal-outcome-box { 
    background: rgba(201,168,76,0.06); 
    border: 1px solid rgba(201,168,76,0.18); 
    border-radius: 4px; 
    padding: 1.2rem 1.5rem; 
    margin-bottom: 1.5rem; 
}

.modal-outcome-text { 
    font-size: 0.95rem; 
    color: var(--cream); 
    line-height: 1.7; 
}

.modal-stack { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
}

.modal-stack .tag { 
    font-size: 0.75rem; 
}

/* CONTACT */
#contact { 
    background: var(--navy-mid); 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5rem; 
    align-items: start; 
}

.contact-item { 
    display: flex; 
    gap: 1.2rem; 
    align-items: flex-start; 
    margin-bottom: 1.8rem; 
}

.contact-icon { 
    width: 44px; 
    height: 44px; 
    flex-shrink: 0; 
    background: rgba(201,168,76,0.1); 
    border: 1px solid var(--border); 
    border-radius: 2px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.contact-icon svg { 
    stroke: var(--gold); 
    fill: none;
}

.contact-label { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--gold); 
    margin-bottom: 0.2rem; 
}

.contact-val { 
    color: var(--cream); 
    font-size: 0.95rem; 
}

.contact-val a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-val a:hover {
    color: var(--gold);
}

.response-time { 
    background: rgba(201,168,76,0.08); 
    border: 1px solid rgba(201,168,76,0.2); 
    border-radius: 4px; 
    padding: 1.5rem; 
    margin-bottom: 2rem; 
}

.response-time-label { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--gold); 
    margin-bottom: 0.4rem; 
}

.response-time-value { 
    font-family: var(--font-display); 
    font-size: 1.4rem; 
    color: var(--white); 
    font-weight: 600; 
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.4rem; 
}

label { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--gray); 
    font-weight: 500; 
}

input, textarea, select { 
    background: var(--input-bg); 
    border: 1px solid var(--border); 
    border-radius: 2px; 
    padding: 0.8rem 1rem; 
    color: var(--cream); 
    font-family: var(--font-body); 
    font-size: 0.9rem; 
    outline: none; 
    transition: border-color 0.25s, background-color 0.3s; 
    width: 100%; 
}

input:focus, textarea:focus, select:focus { 
    border-color: var(--gold); 
}

textarea { 
    resize: vertical; 
    min-height: 120px; 
}

select option { 
    background: var(--navy-mid); 
    color: var(--cream);
}

.form-submit { 
    background: var(--gold); 
    color: var(--navy); 
    padding: 1rem; 
    font-family: var(--font-body); 
    font-weight: 600; 
    font-size: 0.9rem; 
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    border: none; 
    cursor: pointer; 
    border-radius: 2px; 
    transition: background 0.25s, transform 0.2s; 
}

[data-theme="light"] .form-submit {
    color: #FAF8F3;
}

.form-submit:hover { 
    background: var(--gold-light); 
    transform: translateY(-2px); 
}

/* FOOTER */
footer { 
    background: var(--navy); 
    border-top: 1px solid var(--border); 
    padding: 2.5rem 5vw; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 1rem; 
    transition: background-color 0.3s ease;
}

.footer-logo { 
    font-family: var(--font-display); 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--white); 
    text-decoration: none; 
}

.footer-logo span { 
    color: var(--gold); 
}

.footer-copy { 
    color: var(--gray); 
    font-size: 0.82rem; 
}

.footer-links { 
    display: flex; 
    gap: 1.8rem; 
}

.footer-links a { 
    color: var(--gray); 
    font-size: 0.82rem; 
    text-decoration: none; 
    transition: color 0.2s; 
}

.footer-links a:hover { 
    color: var(--gold); 
}

/* FAQ SECTION */
#faq { 
    background: var(--navy); 
    border-top: 1px solid var(--border); 
}

.faq-accordion { 
    max-width: 800px; 
    margin: 3rem auto 0; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

.faq-accordion details { 
    background: var(--navy-mid); 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    padding: 1.2rem 1.5rem; 
    transition: border-color 0.3s, background-color 0.3s; 
    cursor: pointer;
}

.faq-accordion details[open] { 
    border-color: rgba(201,168,76,0.4); 
}

.faq-accordion summary { 
    font-family: var(--font-display); 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--white); 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    outline: none; 
}

.faq-accordion summary::-webkit-details-marker { 
    display: none; 
}

.faq-accordion summary::after { 
    content: '+'; 
    font-size: 1.3rem; 
    color: var(--gold); 
    transition: transform 0.25s; 
}

.faq-accordion details[open] summary::after { 
    content: '−'; 
    transform: rotate(90deg); 
}

.faq-content { 
    margin-top: 1rem; 
    font-size: 0.9rem; 
    color: var(--gray); 
    line-height: 1.7; 
    border-top: 1px solid rgba(201,168,76,0.1); 
    padding-top: 0.8rem; 
}

/* REVEAL ANIMATIONS */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.7s ease, transform 0.7s ease; 
}

.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* THEME TOGGLE ELEMENT */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s, color 0.25s;
    outline: none;
    margin-left: 0.5rem;
}

.theme-toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    #hero { 
        grid-template-columns: 1fr; 
        padding-top: 8rem; 
    }
    
    .hero-visual { 
        display: none; 
    }
    
    .about-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    
    .services-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .stack-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .portfolio-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .testimonials-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .process-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    nav ul { 
        display: none; 
    }
    
    .hamburger { 
        display: flex; 
    }
    
    .form-row { 
        grid-template-columns: 1fr; 
    }
    
    .modal-body { 
        padding: 1.5rem; 
    }
    
    section { 
        padding: 4.5rem 5vw; 
    }
}

@media (max-width: 600px) {
    .services-grid, .portfolio-grid, .testimonials-grid { 
        grid-template-columns: 1fr; 
    }
    
    .stack-grid { 
        grid-template-columns: 1fr; 
    }
    
    .process-grid { 
        grid-template-columns: 1fr; 
    }
    
    .hero-stats { 
        gap: 1.5rem; 
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { 
        animation-duration: 0.01ms !important; 
        transition-duration: 0.01ms !important; 
    }
}

/* ==========================================
   9. CASE STUDY DETAIL PAGES
   ========================================== */
.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 5vw 6rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    transition: color 0.25s, transform 0.25s;
}

.back-link:hover {
    color: var(--gold-light);
    transform: translateX(-4px);
}

.case-study-hero {
    margin-bottom: 3.5rem;
}

.case-study-badge {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.case-study-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.case-study-tagline {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 800px;
    line-height: 1.8;
}

.case-study-visual {
    margin-bottom: 4.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px var(--shadow-color);
    overflow: hidden;
    background: var(--navy-mid);
}

.case-study-visual .card-topbar {
    background: var(--navy-light);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.case-study-visual .card-body {
    padding: 0;
    display: flex;
    overflow: hidden;
}

.case-study-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.case-study-section h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.case-study-section p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.case-study-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--navy-mid);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2.2rem;
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}

.outcome-stat {
    margin-bottom: 2rem;
}

.outcome-stat:last-child {
    margin-bottom: 0;
}

.stat-highlight {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.tech-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag-list .tag {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
}

@media (max-width: 900px) {
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .case-study-sidebar {
        position: static;
    }
}

/* ==========================================
   10. ABOUT IMAGE CAROUSEL STYLES
   ========================================== */
.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.about-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 22, 40, 0.85);
    color: var(--gold);
    padding: 0.7rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    transition: background 0.3s ease;
}

[data-theme="light"] .slide-caption {
    background: rgba(250, 248, 245, 0.88);
    color: var(--gold);
}

.carousel-dots {
    position: absolute;
    bottom: 3.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.dot-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot-indicator.active {
    background: var(--gold);
    transform: scale(1.25);
    border-color: transparent;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 22, 40, 0.7);
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
    z-index: 10;
    outline: none;
    line-height: 1;
    padding-bottom: 4px;
}

[data-theme="light"] .carousel-control {
    background: rgba(250, 248, 245, 0.85);
    color: var(--cream);
}

.carousel-control:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.9);
}

.carousel-control.prev {
    left: 1rem;
}

.carousel-control.next {
    right: 1rem;
}
