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

/* Optional accent variants (apply class on <body>) */
body.accent-violet {
    --brand-accent: #a78bfa;
    --brand-accent-soft: rgba(167, 139, 250, 0.18);
}
body.accent-cyan {
    --brand-accent: #22d3ee;
    --brand-accent-soft: rgba(34, 211, 238, 0.18);
}
body.accent-rose {
    --brand-accent: #fb7185;
    --brand-accent-soft: rgba(251, 113, 133, 0.18);
}

:root {
    --brand-bg: #0A0A0A;
    --brand-fg: #FFFFFF;
    --brand-primary: #1e40af;      /* deep blue */
    --brand-primary-2: #1d4ed8;    /* lighter blue */
    --brand-accent: #60a5fa;       /* accent sky blue */
    --brand-accent-soft: rgba(96, 165, 250, 0.12);
}

body {
    background-color: var(--brand-bg);
    color: var(--brand-fg);
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}
nav a:hover,
nav a.active {
    border-bottom-color: #FFFFFF;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    text-shadow: none;
}
button, .btn {
    transition: none;
}
button:hover, .btn:hover {
    background: inherit;
    color: inherit;
    box-shadow: none;
}

main {
    padding-top: 80px;
    flex: 1;
    width: 100%;
    position: relative;
    transition: background 0.8s ease;
}

.content-section {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
}

#home-section {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    text-align: center;
    padding: 0 20px;
}

#home-section.active {
    display: flex;
}

.logo {
    width: 264px;
    max-width: 72vw;
    margin-bottom: 60px;
    position: relative;
}
.logo.glitch {
    animation: glitch 0.4s cubic-bezier(.25, .46, .45, .94) both;
}
@keyframes glitch {
    0% {
        transform: translate(0);
        filter: brightness(100%);
        clip-path: inset(0 0 0 0);
    }
    10% {
        transform: translate(-5px, 5px);
        filter: brightness(150%) hue-rotate(90deg);
        clip-path: inset(10% 0 80% 0);
    }
    20% {
        transform: translate(5px, -5px);
        filter: brightness(200%) hue-rotate(-90deg);
        clip-path: inset(80% 0 5% 0);
    }
    30% {
        transform: translate(-5px, -5px);
        filter: contrast(200%) hue-rotate(180deg);
        clip-path: inset(0% 80% 0 0);
    }
    40% {
        transform: translate(5px, 5px);
        filter: brightness(150%) saturate(200%);
        clip-path: inset(0 0 80% 80%);
    }
    50% {
        transform: translate(0);
        filter: brightness(100%);
        clip-path: inset(0 0 0 0);
    }
}
.logo::before,
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('9.png') center/contain no-repeat;
    opacity: 0;
    pointer-events: none;
}
.logo.glitch::before {
    animation: glitch-layer 0.4s cubic-bezier(.25, .46, .45, .94) both;
    animation-delay: 0.1s;
    mix-blend-mode: multiply;
    filter: brightness(200%) hue-rotate(90deg);
}
.logo.glitch::after {
    animation: glitch-layer 0.4s cubic-bezier(.25, .46, .45, .94) both;
    animation-delay: 0.2s;
    mix-blend-mode: multiply;
    filter: brightness(200%) hue-rotate(-90deg);
}
@keyframes glitch-layer {
    0%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    20%, 80% {
        opacity: 0.1;
        transform: translate(-2px, 2px);
    }
    40%, 60% {
        opacity: 0.2;
        transform: translate(2px, -2px);
    }
}

.company-name {
    font-size: 6rem; /* 5rem * 1.2 */
    margin: 36px 0 18px;
    font-weight: 600;
    letter-spacing: 0.096em;
}
.subheading {
    font-size: 2.64rem; /* 2.2rem * 1.2 */
    margin: 0 0 48px;
    font-weight: 400;
    letter-spacing: 0.06em;
    opacity: 0.95;
}

.contact-info {
    font-size: 1.32rem; /* 1.1rem * 1.2 */
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 0.024em;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info p {
    margin: 0;
}

/* Homepage contact link styling (avoid default dark blue) */
.contact-info a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.contact-info a:visited {
    color: rgba(255, 255, 255, 0.95);
}
.contact-info a:hover {
    color: #FFFFFF;
    border-bottom-color: var(--brand-accent);
}
.contact-info a:focus-visible {
    outline: 1px solid var(--brand-accent);
    outline-offset: 2px;
}

#tech-section {
    line-height: 1.8;
}

#tech-section h2 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0 0 40px;
    text-align: center;
    letter-spacing: 0.05em;
}

#tech-section h3 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 60px 0 30px;
    letter-spacing: 0.04em;
}

#tech-section h4 {
    font-size: 2.2rem;
    font-weight: 400;
    margin: 40px 0 20px;
    letter-spacing: 0.03em;
}

#tech-section h5 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 50px 0 25px;
    letter-spacing: 0.02em;
}

#tech-section p {
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

#tech-section ul,
#tech-section ol {
    margin: 25px 0;
    padding-left: 25px;
    list-style-position: outside;
}

#tech-section li {
    margin: 20px 0;
    line-height: 1.6;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

#tech-section ol li {
    margin: 30px 0;
    padding-left: 10px;
}

#tech-section strong {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
}

#tech-section em {
    font-style: italic;
}

#tech-section br {
    content: "";
    display: block;
    margin: 5px 0;
}

#blog-section {
    text-align: center;
    min-height: calc(100vh - 160px);
}

#blog-section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* --- SCROLL REVEAL --- */
/* Remove scroll reveal */
.reveal, .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 768px) {
    nav ul {
        gap: 18px;
    }

    nav a {
        font-size: 1rem;
    }

    .logo {
        width: 140px;
        margin-bottom: 30px;
    }
    .company-name {
        font-size: 2.7rem;
    }
    .subheading {
        font-size: 1.3rem;
    }
    .content-section {
        padding: 25px 8px;
    }

    #tech-section h2 {
        font-size: 2.5rem;
    }

    #tech-section h3 {
        font-size: 2rem;
    }

    #tech-section h4 {
        font-size: 1.8rem;
    }

    #tech-section h5 {
        font-size: 1.4rem;
    }

    #tech-section p,
    #tech-section li {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .logo {
        width: 90px;
        margin-bottom: 18px;
    }
    .company-name {
        font-size: 1.5rem;
    }
    .subheading {
        font-size: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Technology Section Styles */
.centered-heading {
    text-align: center;
}

#tech-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #FFFFFF;
    font-weight: 400;
}

#tech-section > p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero video */
.hero-video {
    position: relative;
    margin: 20px auto 32px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #000;
}
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: opacity 0.3s ease;
}
.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}



.tech-card h4 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.02em;
    text-align: center;
}

.tech-card p {
    font-size: 2rem !important;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.tech-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 35px 0;
    justify-content: center;
}

.highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.highlight:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.tech-link {
    display: block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #FFFFFF;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin: 30px auto 0 auto;
    text-align: center;
    width: fit-content;
}

.tech-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}





.tech-link.primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
    border-color: var(--brand-primary);
}

.tech-link.primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-2), var(--brand-primary));
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
}



/* --- Technology visuals & layout --- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0 10px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-accent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--brand-accent-soft) inset;
}
.feature-card h5 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.feature-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.tech-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 14px 0 6px;
}
.tech-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px var(--brand-accent-soft) inset;
}
.tech-stats .num {
    font-size: 1.6rem;
    font-weight: 600;
}
.tech-stats .label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

/* Disable hover animations/transitions on Technology page */
#tech-section .feature-card,
#tech-section .tech-link {
    transition: none !important;
}
#tech-section .feature-card:hover {
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
#tech-section .tech-link:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* --- Technology: Editorial + Glitch Aesthetic (static) --- */
/* Left-align all headings and paragraphs within Technology section */
#tech-section .centered-heading,
#tech-section h2,
#tech-section h3,
#tech-section h4,
#tech-section h5,
#tech-section > p {
    text-align: left;
}

/* Editorial typographic features */
#tech-section {
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
    font-feature-settings: "liga","kern";
}
#tech-section h4,
#tech-section h5 {
    text-wrap: balance;
}

/* Flatten the card chrome inside Technology section */
#tech-section .tech-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 28px 0 10px 0 !important;
    text-align: left !important;
    max-width: 740px;
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Glitch underline for section subhead */
#tech-section .tech-card h4 {
    text-align: left !important;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 2rem;
}
#tech-section .tech-card h4::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 10px;
    background: linear-gradient(90deg, rgba(167,139,250,0.4), rgba(251,113,133,0.25), rgba(96,165,250,0.35));
}

/* Overline kicker */
#tech-section .kicker {
    font-variant-caps: small-caps;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0 0 6px 0;
}

/* Tone down oversized paragraph text inside tech card */
#tech-section .tech-card p {
    font-size: 1.15rem !important;
    line-height: 1.8;
}

/* Constrain the intro paragraph measure and color */
#tech-section > p {
    max-width: 740px;
    margin-left: 0;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.88);
}

/* Align heading and kicker to the same measure */
#tech-section h3,
#tech-section .kicker {
    max-width: 740px;
    margin-left: 0;
    margin-right: auto;
}

/* Micro-contrast for copy in tech section */
#tech-section p,
#tech-section li {
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
}

/* Editorial feature list (replaces grid cards) */
#tech-section .feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 36px;
    margin: 24px 0 8px;
    list-style: none;
    padding: 0;
    max-width: 740px;
    margin-left: 0;
    margin-right: auto;
}
#tech-section .feature-item {
    padding: 12px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-top-color: color-mix(in oklab, white 8%, transparent);
}
#tech-section .feature-item:first-child {
    border-top: 0;
}

/* Glitch accent: subtle chromatic text shadow for feature titles */
#tech-section .feature-item h5 {
    letter-spacing: 0.03em;
    text-shadow: -0.5px 0 rgba(167, 139, 250, 0.18), 0.5px 0 rgba(251, 113, 133, 0.14);
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

/* Feature item body copy: tighten spacing */
#tech-section .feature-item p {
    margin: 6px 0 0 0;
}

/* Inline stats row */
#tech-section .tech-stats-inline {
    margin: 8px 0 0 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-align: left;
    opacity: 0.85;
    text-shadow: -0.4px 0 rgba(167, 139, 250, 0.2), 0.4px 0 rgba(34, 211, 238, 0.18);
    max-width: 740px;
    margin-left: 0;
    margin-right: auto;
}

/* Flat, outlined CTA with glitch accent */
#tech-section .tech-link.primary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: none !important;
    color: #FFFFFF;
    text-shadow: -0.4px 0 rgba(167, 139, 250, 0.16), 0.4px 0 rgba(251, 113, 133, 0.12);
    display: inline-block;
    margin: 24px 0 0 0 !important;
    width: auto !important;
    max-width: 740px;
    margin-left: 0 !important;
    margin-right: auto !important;
}
#tech-section .tech-link.primary:hover {
    background: transparent !important;
    border-color: var(--brand-accent) !important;
}

/* Secondary text link (editorial) */
#tech-section .tech-link.secondary {
    display: inline-block;
    margin: 8px 0 0 0;
    padding: 0;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    width: auto !important;
    max-width: 740px;
    margin-left: 0;
    margin-right: auto;
}
#tech-section .tech-link.secondary:hover {
    border-bottom-color: var(--brand-accent);
}

/* Accessible, elegant focus outlines */
#tech-section a:focus-visible {
    outline: 1px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Responsive: single column list on smaller screens */
@media (max-width: 900px) {
    #tech-section .feature-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .tech-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive adjustments for tech section */
@media (max-width: 768px) {
    .tech-card {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .tech-card h4 {
        font-size: 2rem;
    }

    .tech-card p {
        font-size: 1.1rem !important;
    }

    #tech-section > p {
        font-size: 1.1rem;
    }

    #tech-section h3 {
        font-size: 1.6rem;
    }

    .tech-highlights {
        gap: 15px;
    }

    .highlight {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .tech-link {
        font-size: 1.2rem;
        padding: 14px 28px;
        width: 100%;
        max-width: 280px;
    }



    .tech-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}
