:root {
    --bg-primary: #000000;
    --bg-secondary: #151515;
    --bg-card: #111111;
    --bg-hero: linear-gradient(135deg, #101010 0%, #000000 100%);
    --text-primary: #ffffff;
    --text-primary-inverted: #1a1a1a;
    --text-secondary: #a0a0a0;
    --text-shadow-color: rgba(255,255,255,0.05);
    --accent: #ffffff;
    --accent-hover: #e0e0e0;
    --accent-light: #ffffff;
    --border: #222222;
    --success: #4caf50;
    --warning: #ff9800;
    --shadow: rgba(255, 255, 255, 0.35);
    --gradient-accent: linear-gradient(135deg, #ffffff 0%, #bfbfbf 100%);
}

[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: #f5f5f5;
    --bg-hero: linear-gradient(135deg, #e8e8e8 0%, #fafafa 100%);
    --text-primary: #1a1a1a;
    --text-primary-inverted: #ffffff;
    --text-secondary: #666666;
    --text-shadow-color: rgba(255,255,255,0.4);
    --accent: #000000;
    --accent-hover: #333333;
    --accent-light: #000000;
    --border: #e0e0e0;
    --success: #059669;
    --warning: #d97706;
    --shadow: rgba(0,0,0,0.08);
    --gradient-accent: linear-gradient(135deg, #000000 0%, #2e2e2e 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 93.75vw;
    margin: 0 auto;
    padding: 0 clamp(20px, 1.5625vw, 30px);
}

@media (min-width: 1920px) {
    .container {
        max-width: 88.8vw;
    }
}

/* Navigation */
nav {
    background-color: transparent;
    box-shadow: inset 0 clamp(7px, 0.546875vw, 10.5px) clamp(9px, 0.703125vw, 13.5px) clamp(-10.5px, -0.546875vw, -7px) var(--text-primary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    pointer-events: none;
    will-change: transform, opacity;
}

nav.animating-out {
    animation: slideOut 0.2s ease forwards;
}

nav.animating-in {
    animation: slideIn 0.2s ease forwards;
}

@keyframes slideOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-70%); }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-70%); }
    100% { opacity: 1; transform: translateY(0); }
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 1.25vw, 1.5rem) clamp(50px, 3.90625vw, 75px);
    max-width: 100%;
}

.logo {
    position: absolute;
    width: clamp(24rem, 30vw, 36rem);
    top: clamp(1rem, 1.25vw, 1.5rem);
    left: clamp(0.5rem, 0.625vw, 0.75rem);
    pointer-events: auto;
    cursor: pointer;
}

.nav-links.desktop {
    display: flex;
    list-style: none;
    gap: clamp(2rem, 2.5vw, 3rem);
    pointer-events: auto;
    margin-left: auto;
    margin-top: clamp(15px, 1.171875vw, 22.5px);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: clamp(1rem, 1.25vw, 1.5rem);
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    position: relative;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    margin-left: auto;
    pointer-events: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary, #333);
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-primary, #fff);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    pointer-events: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 2vw;
    right: 5vw;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-primary, #333);
}

.nav-links.mobile {
    list-style: none;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-links.mobile a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
    border-bottom: #b9b9b9 solid 2px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1001;
    pointer-events: auto;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    .mobile-menu,
    .overlay {
        display: none;
    }
}

/* Theme Toggle */
.theme-toggle {
    display: none;
}

.theme-toggle-nav {
    background: none;
    border: clamp(2px, 0.15625vw, 3px) solid var(--accent);
    color: var(--accent);
    padding: clamp(0.5rem, 0.625vw, 0.75rem) clamp(1rem, 1.25vw, 1.5rem);
    border-radius: clamp(20px, 1.5625vw, 30px);
    cursor: pointer;
    font-size: clamp(0.9rem, 1.125vw, 1.35rem);
    transition: all 0.3s ease;
}

.theme-toggle-nav:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* Main Content */
main {
    margin-top: clamp(80px, 6.25vw, 120px);
    flex: 1;
}

section {
    padding: clamp(4rem, 5vw, 6rem) 0;
}

h1, h2, h3 {
    margin-bottom: clamp(1rem, 1.25vw, 1.5rem);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 3.75vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2.5rem, 3.125vw, 3.75rem);
    font-weight: 600;
    margin-bottom: clamp(2rem, 2.5vw, 3rem);
}

h3 {
    font-size: clamp(1rem, 1.25vw, 1.5rem);
}

p {
    margin-bottom: clamp(1rem, 1.25vw, 1.5rem);
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 1.375vw, 1.65rem);
}

/* Blog Marquee Section */
#blog-marquee {
    padding: clamp(2rem, 2.5vw, 3rem) 0 clamp(4rem, 5vw, 6rem) 0;
    background: var(--bg-secondary);
    border-top: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    border-bottom: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    overflow: hidden;
}

#blog-marquee h2 {
    text-align: center;
    font-size: clamp(2rem, 2.5vw, 3rem);
    margin-bottom: clamp(2rem, 2.5vw, 3rem);
    color: var(--text-primary);
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow-y: hidden;
    padding: clamp(15px, 1.171875vw, 22.5px) 0;
    margin: clamp(-22.5px, -1.171875vw, -15px) 0;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;

    mask-image: linear-gradient(
        to right,
        transparent,
        black clamp(3rem, 3.75vw, 4.5rem),
        black calc(100% - clamp(3rem, 3.75vw, 4.5rem)),
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black clamp(3rem, 3.75vw, 4.5rem),
        black calc(100% - clamp(3rem, 3.75vw, 4.5rem)),
        transparent
    );
}

.marquee-wrapper::-webkit-scrollbar {
    display: none;
}

.marquee-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
}

.marquee-wrapper.dragging .blog-card{
    pointer-events: none;
}

.marquee-track {
    display: flex;
    gap: clamp(2rem, 2.5vw, 3rem);
    width: max-content;
    will-change: transform;
}

.blog-card {
    flex-shrink: 0;
    width: clamp(350px, 27.34375vw, 525px);
    background: var(--bg-card);
    border-radius: clamp(12px, 0.9375vw, 18px);
    border: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

#marqueeTrack .blog-card.is-hovered {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 0 clamp(10px, 0.78125vw, 15px) var(--shadow);
}

.blog-image {
    width: 100%;
    height: clamp(200px, 15.625vw, 300px);
    background-size: cover;
    background-position: center;
    position: relative;
    transform: translateZ(0);
}

.blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-card) 100%);
    transform: translateY(1px);
}

.blog-content {
    padding: clamp(1.5rem, 1.875vw, 2.25rem);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.75rem, 0.9375vw, 1.125rem);
    margin-bottom: clamp(0.5rem, 0.625vw, 0.75rem);
}

.blog-date,
.blog-readtime {
    font-size: clamp(0.85rem, 1.0625vw, 1.275rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: text;
}

.blog-date {
    margin-bottom: 0;
    text-align: left;
    cursor: text;
}

.blog-readtime {
    text-align: right;
}

.blog-card h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    margin-bottom: clamp(0.75rem, 0.9375vw, 1.125rem);
    color: var(--text-primary);
    line-height: 1.4;
    cursor: text;
}

.blog-card p {
    font-size: clamp(0.95rem, 1.1875vw, 1.425rem);
    color: var(--text-secondary);
    margin-bottom: clamp(1rem, 1.25vw, 1.5rem);
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: text;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.5rem, 0.625vw, 0.75rem);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.1875vw, 1.425rem);
    margin-top: auto;
}

/* Home Section */
#home {
    text-align: center;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: -35%;
    left: 55%;
    width: clamp(500px, 39.0625vw, 750px);
    height: clamp(500px, 39.0625vw, 750px);
    background: radial-gradient(circle, rgba(74, 158, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

[data-theme="light"] #home::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

#home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--bg-primary),
        transparent clamp(30px, 2.34375vw, 45px),
        transparent calc(100% - clamp(30px, 2.34375vw, 45px)),
        var(--bg-primary)
    );
    pointer-events: none;
}

#home p {
    margin-bottom: clamp(2.5rem, 3.125vw, 3.75rem);
}

.conveyor-wrapper {
    position: absolute;
    top: 0px;
    right: 0px;
    width: max(800px, 62.5vw);
    height: max(600px, 46.875vw);
    overflow: hidden;
    overflow-anchor: none;
}

/* Keep it normal on desktop */
@media (min-width: 769px) {
    .conveyor-wrapper {
        filter: brightness(1);
    }
}

.conveyor-frame {
    position: absolute;
    top: min(-66.40625vw, -850px);
    width: max(1500px, 117.1875vw);
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.conveyor-belt {
    position: relative;
    top: min(-69.296875vw, -887px);
    width: max(1580px, 123.4375vw);
    left: min(-3.125vw, -40px);
    height: auto;
    pointer-events: none;
    z-index: 2;
    animation: beltRotate 20s linear infinite;
}

@keyframes beltRotate {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.conveyor-plates {
    position: absolute;
    top: min(-32.421875vw, -415px);
    left: max(350px, 27.34375vw);
    width: 100%;
    height: 100%;
    z-index: 3;
    animation: beltSpin 20s linear infinite;
    pointer-events: none;
}

/* Individual plates positioned in a circle */
.plate-item {
    position: absolute;
    width: max(250px, 19.53125vw);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Center point of rotation */
    top: 50%;
    left: 50%;
    margin: min(-9.765625vw, -125px) 0 0 min(-9.765625vw, -125px); /* half of width/height */
}

/* Position plates in a circle */
.plate-item:nth-child(1) { transform: rotate(0deg) translateY(min(-42.96875vw, -550px)) rotate(0deg); }
.plate-item:nth-child(2) { transform: rotate(72deg) translateY(min(-42.96875vw, -550px)) rotate(-72deg); }
.plate-item:nth-child(3) { transform: rotate(144deg) translateY(min(-42.96875vw, -550px)) rotate(-144deg); }
.plate-item:nth-child(4) { transform: rotate(216deg) translateY(min(-42.96875vw, -550px)) rotate(-216deg); }
.plate-item:nth-child(5) { transform: rotate(288deg) translateY(min(-42.96875vw, -550px)) rotate(-288deg); }

/* Counter-rotate plates so they stay upright */
@keyframes beltSpin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

#story-scroll{
    padding: 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.story-block{
    min-height: 100vh;
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(4rem, 5vw, 6rem);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.story-block.alt{
    direction: rtl;
}
.story-block.alt > *{
    direction: ltr;
}

.story-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

[data-theme="dark"] .story-block::before {
    filter: brightness(var(--bg-bright, 0.5));
}

.story-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-image-2);
    background-size: cover;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

.story-block.alt[data-tag="story-block-2"] {
    grid-template-columns: 1fr;
    padding: 0 clamp(12.5vw, 12.5vw, 15rem);
    vertical-align: middle;
}

.story-text{
    padding: 0 clamp(3rem, 3.75vw, 6rem);
    z-index: 5;
    opacity: 0;
    transform: translateX(clamp(-120px, -6.25vw, -80px));
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.story-block.alt .story-text {
    transform: translateX(clamp(80px, 6.25vw, 120px));
}
.story-text[data-tag="story-text-header"] {
    margin-top: clamp(-150px, -7.8125vw, -100px);
}
[data-theme="light"] .story-text[data-tag="story-text-header"] {
    backdrop-filter: none;
    background: none;
}
.story-text h2{
    font-size: clamp(2rem, 2.5vw, 3rem);
    margin-bottom: clamp(1rem, 1.25vw, 1.5rem);
    color: var(--text-primary);
}
.story-text p{
    font-size: clamp(1.1rem, 1.375vw, 1.65rem);
    color: var(--text-secondary);
    line-height: 1.7;
}
[data-theme="dark"] .story-text p{
    filter: brightness(1.3);
}
[data-theme="light"] .story-text p {
    filter: brightness(0.7);
}
.story-text p b {
    color: var(--text-primary);
}
.story-text p[data-tag="small-text"] {
    font-size: clamp(0.8rem, clamp(0.8rem, 1vw, 1.2rem), clamp(0.8rem, 1vw, 1.2rem));
    margin-top: clamp(0.4rem, 0.5vw, 0.6rem); 
    color: var(--text-primary);
    filter: brightness(0.7);
}

.story-mobile-panels {
    display: none;
}

.story-media{
    padding: 0 clamp(3rem, 3.75vw, 4.5rem);
    border-radius: clamp(16px, 1.25vw, 24px);
    opacity: 0;
    z-index: 5;
    transform: translateX(clamp(80px, 6.25vw, 120px));
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.story-block.alt .story-media {
    transform: translateX(clamp(-120px, -6.25vw, -80px));
}
.story-media img,
.story-media video{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.story-media.video{
    background: #000;
}

.story-block.in-view .story-text,
.story-block.in-view .story-media {
    opacity: 1;
    transform: translateX(0);
}

[data-theme="dark"] .story-text {
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

[data-theme="light"] .story-text {
    padding: 2rem 3rem;
    margin-left: 2rem;
    backdrop-filter: blur(10px);
    background: var(--text-shadow-color);
    border-radius: 20px;
}

[data-theme="light"] .story-block.alt .story-text {
    margin-right: 2rem;
    margin-left: 0;
}

.tagline {
    font-size: clamp(1.4rem, 1.75vw, 2.1rem);
    color: var(--accent);
    margin-bottom: clamp(2rem, 2.5vw, 3rem);
    font-weight: 300;
    white-space: nowrap;
}

.value-cta .cta-button {
    color: #000000;
    background: linear-gradient(135deg, #ffffff 0%, #bfbfbf 100%);
    text-decoration: none;
    padding: clamp(10.24px, 0.8vw, 15.36px) clamp(23.04px, 1.8vw, 34.56px);
    font-size: clamp(0.88rem, 1.1vw, 1.32rem);
    font-weight: 600;
    border-radius: 6.4px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

[data-theme="light"] .value-cta .cta-button {
    background: linear-gradient(135deg, #1f1f1f 0%, #303030 100%);
    color: #ffffff;
}

.cta-button {
    display: inline-block;
    padding: clamp(15px, 1.171875vw, 22.5px) clamp(40px, 3.125vw, 60px);
    background: var(--gradient-accent);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: clamp(30px, 2.34375vw, 45px);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: clamp(1rem, 1.25vw, 1.5rem);
    margin: clamp(5px, 0.390625vw, 7.5px);
    border: none;
    cursor: pointer;
    box-shadow: 0 clamp(4px, 0.3125vw, 6px) clamp(15px, 1.171875vw, 22.5px) rgba(37, 99, 235, 0.2);
}

.cta-button:hover {
    transform: translateY(clamp(-6px, -0.3125vw, -4px));
    box-shadow: 0 clamp(8px, 0.625vw, 12px) clamp(25px, 1.953125vw, 37.5px) rgba(37, 99, 235, 0.3);
}

.cta-button.secondary {
    background: transparent;
    border: clamp(2px, 0.15625vw, 3px) solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Stats Highlight */
.stats-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 2.5vw, 3rem);
    margin: clamp(4rem, 5vw, 6rem) 0;
    margin-top: clamp(3rem, 3.75vw, 4.5rem);
    padding: clamp(3rem, 3.75vw, 4.5rem);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: clamp(12px, 0.9375vw, 18px);
    z-index: 1;
}

.stats-highlight a[data-tag="small-text"] {
    grid-column: 1 / -1;
    margin-top: clamp(1rem, 1.25vw, 1.5rem);
    color: #a0a0a0;
    text-align: center;
    margin-bottom: clamp(-30px, -1.5625vw, -20px);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s ease;
}

.stats-highlight a[data-tag="small-text"]:hover {
    color: #d0d0d0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.8rem, 2.25vw, 2.7rem);
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: clamp(0.5rem, 0.625vw, 0.75rem);
    white-space: nowrap;
}

.stat-label {
    font-size: clamp(0.9rem, 1.125vw, 1.35rem);
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats story block first-view animation */
.story-block[data-tag="story-block-2"] .stats-highlight {
    opacity: 0;
    transform: translateY(clamp(40px, 3vw, 60px)) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-block[data-tag="story-block-2"] .stat-item {
    opacity: 0;
    transform: translateY(clamp(24px, 2vw, 36px));
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-block[data-tag="story-block-2"] .stat-item:nth-child(1) {
    transition-delay: 0.15s;
}
.story-block[data-tag="story-block-2"] .stat-item:nth-child(2) {
    transition-delay: 0.3s;
}
.story-block[data-tag="story-block-2"] .stat-item:nth-child(3) {
    transition-delay: 0.45s;
}

.story-block[data-tag="story-block-2"] .stat-number {
    font-size: clamp(3rem, 3.75vw, 4.5rem);
}

.story-block[data-tag="story-block-2"] .stat-label {
    font-size: clamp(1rem, 1.25vw, 1.5rem);
}

.story-block[data-tag="story-block-2"] a[data-tag="small-text"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.6s;
}

/* Reveal once the story block is in view */
.story-block[data-tag="story-block-2"].in-view .stats-highlight,
.story-block[data-tag="story-block-2"].in-view .stat-item,
.story-block[data-tag="story-block-2"].in-view a[data-tag="small-text"] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* About Subpage */
.about-content {
    display: none;
    background-color: var(--bg-secondary);
    padding: clamp(2rem, 2.5vw, 3rem);
    border-radius: clamp(10px, 0.78125vw, 15px);
    margin-top: clamp(2rem, 2.5vw, 3rem);
}

.about-content.active {
    display: block;
}

.about-nav {
    display: flex;
    gap: clamp(1rem, 1.25vw, 1.5rem);
    margin-bottom: clamp(2rem, 2.5vw, 3rem);
    flex-wrap: wrap;
}

.about-nav button {
    padding: clamp(10px, 0.78125vw, 15px) clamp(20px, 1.5625vw, 30px);
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    border-radius: clamp(5px, 0.390625vw, 7.5px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-nav button:hover,
.about-nav button.active {
    background-color: var(--accent);
    color: var(--bg-secondary);
    border-color: var(--accent);
}

.value-card {
    background-color: var(--bg-card);
    padding: clamp(2rem, 2.5vw, 3rem);
    border-radius: clamp(10px, 0.78125vw, 15px);
    margin-bottom: clamp(2rem, 2.5vw, 3rem);
    border: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
}

/* Fancy Founder Cards */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(2rem, 2.5vw, 3rem);
    margin-top: clamp(0.5rem, 0.625vw, 0.75rem);
}

.founder-card {
    background: var(--bg-card);
    border-radius: clamp(20px, 1.5625vw, 30px);
    padding: clamp(2rem, 2.5vw, 3rem);
    border: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(4px, 0.3125vw, 6px);
    background: var(--gradient-accent);
}

.founder-card:hover {
    transform: translateY(clamp(-7.5px, -0.390625vw, -5px));
    box-shadow: 0 clamp(20px, 1.5625vw, 30px) clamp(40px, 3.125vw, 60px) var(--shadow);
}

.founder-header {
    display: flex;
    gap: clamp(1rem, 1.25vw, 1.5rem);
    align-items: center;
    margin-bottom: clamp(1.5rem, 1.875vw, 2.25rem);
}

.founder-avatar {
    width: clamp(100px, 7.8125vw, 150px);
    height: clamp(100px, 7.8125vw, 150px);
    margin-left: clamp(-22.5px, -1.171875vw, -15px);
    border-radius: 50%;
    position: relative; /* CRITICAL: Contains absolute children */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: clamp(3px, 0.234375vw, 4.5px) solid var(--text-primary);
    box-shadow: 0 clamp(4px, 0.3125vw, 6px) clamp(15px, 1.171875vw, 22.5px) rgba(0,0,0,0.2);
    overflow: hidden; /* Keeps image inside circle */
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: 50%; /* Ensure circular */
}

.avatar-initials {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 2.5vw, 3rem);
    color: var(--text-primary-inverted);
    font-weight: 700;
}

.founder-info h3 {
    color: var(--text-primary);
    margin-bottom: clamp(0.25rem, 0.3125vw, 0.375rem);
    font-size: clamp(1.3rem, 1.625vw, 1.95rem);
    white-space: nowrap;
}

.founder-title {
    color: var(--accent);
    font-size: clamp(1rem, 1.25vw, 1.5rem);
    margin-bottom: clamp(0.5rem, 0.625vw, 0.75rem);
    font-weight: 500;
    white-space: nowrap;
}

.founder-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 1.875vw, 2.25rem);
    font-size: clamp(1rem, 1.25vw, 1.5rem);
}

.founder-social {
    display: flex;
    gap: clamp(1rem, 1.25vw, 1.5rem);
    padding-top: clamp(1rem, 1.25vw, 1.5rem);
    border-top: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
}

.social-icon {
    width: clamp(40px, 3.125vw, 60px);
    height: clamp(40px, 3.125vw, 60px);
    border-radius: 50%;
    background: var(--bg-secondary);
    border: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: clamp(1.1rem, 1.375vw, 1.65rem);
}

.social-icon:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(clamp(-3px, -0.15625vw, -2px));
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(350px, 27.34375vw, 525px), 1fr));
    gap: clamp(2rem, 2.5vw, 3rem);
    margin-top: clamp(2rem, 2.5vw, 3rem);
}

.solution-card {
    background-color: var(--bg-card);
    padding: clamp(2rem, 2.5vw, 3rem);
    border-radius: clamp(15px, 1.171875vw, 22.5px);
    border: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .solution-card {
    border: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
    box-shadow: 0 clamp(2px, 0.15625vw, 3px) clamp(8px, 0.625vw, 12px) var(--shadow);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(3px, 0.234375vw, 4.5px);
    background: var(--gradient-1);
}

.solution-card:hover {
    transform: translateY(clamp(-12px, -0.625vw, -8px));
    box-shadow: 0 clamp(15px, 1.171875vw, 22.5px) clamp(40px, 3.125vw, 60px) rgba(74, 158, 255, 0.2);
    border-color: var(--accent);
}

[data-theme="light"] .solution-card:hover {
    box-shadow: 0 clamp(8px, 0.625vw, 12px) clamp(25px, 1.953125vw, 37.5px) rgba(37, 99, 235, 0.15);
    border-color: var(--accent);
}

.solution-card-image {
    width: 100%;
    height: clamp(250px, 19.53125vw, 375px);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(53, 122, 189, 0.05) 100%);
    border-radius: clamp(10px, 0.78125vw, 15px);
    margin-bottom: clamp(1.5rem, 1.875vw, 2.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border: clamp(2px, 0.15625vw, 3px) dashed var(--border);
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.125vw, 1.35rem);
    overflow: hidden;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price {
    font-size: clamp(1.5rem, 1.875vw, 2.25rem);
    color: var(--success);
    font-weight: 600;
    margin: clamp(1rem, 1.25vw, 1.5rem) 0;
}

.success-story {
    background-color: var(--bg-card);
    padding: clamp(1.5rem, 1.875vw, 2.25rem);
    border-radius: clamp(8px, 0.625vw, 12px);
    margin: clamp(1rem, 1.25vw, 1.5rem) 0;
    border-left: clamp(4px, 0.3125vw, 6px) solid var(--success);
}

/* Subscribe Form - Styled to match your design system */
#subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 1.25vw, 1.5rem);
    align-items: center;
}

#subscribe-form input {
    padding: clamp(1rem, 1.25vw, 1.5rem) clamp(1.5rem, 1.875vw, 2.25rem);
    font-size: clamp(1.1rem, 1.375vw, 1.65rem);
    width: clamp(300px, 23.4375vw, 450px);
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: clamp(2px, 0.15625vw, 3px) solid var(--border);
    border-radius: clamp(8px, 0.625vw, 12px);
    transition: all 0.3s ease;
    font-family: inherit;
}

#subscribe-form input::placeholder {
    color: var(--text-secondary);
}

#subscribe-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 clamp(3px, 0.234375vw, 4.5px) rgba(255, 255, 255, 0.1);
}

[data-theme="light"] #subscribe-form input:focus {
    box-shadow: 0 0 0 clamp(3px, 0.234375vw, 4.5px) rgba(0, 0, 0, 0.1);
}

#subscribe-form input:-webkit-autofill,
#subscribe-form input:-webkit-autofill:hover, 
#subscribe-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

#subscribe-form button {
    padding: clamp(1rem, 1.25vw, 1.5rem) clamp(2rem, 2.5vw, 3rem);
    background: var(--gradient-accent);
    color: var(--bg-primary);
    border: none;
    border-radius: clamp(8px, 0.625vw, 12px);
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.375vw, 1.65rem);
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 clamp(4px, 0.3125vw, 6px) clamp(15px, 1.171875vw, 22.5px) var(--shadow);
}

#subscribe-form button:hover:not(:disabled) {
    transform: translateY(clamp(-3px, -0.15625vw, -2px));
    box-shadow: 0 clamp(8px, 0.625vw, 12px) clamp(25px, 1.953125vw, 37.5px) var(--shadow);
    filter: brightness(1.1);
}

#subscribe-form button:hover:disabled {
    cursor: not-allowed;
}

#message {
    font-size: clamp(0.95rem, 1.1875vw, 1.425rem);
    margin-top: clamp(1rem, 1.25vw, 1.5rem);
    min-height: clamp(1.5rem, 1.875vw, 2.25rem);
    font-weight: 500;
    color: var(--text-secondary);
}

/* Contact Footer */
.contact-footer {
    background: var(--bg-secondary);
    padding-top: clamp(2rem, 2.5vw, 3rem);
    border-top: clamp(2px, 0.15625vw, 3px) solid var(--accent);
    margin-top: auto;
    position: relative;
    box-shadow: 0 clamp(-6px, -0.3125vw, -4px) clamp(20px, 1.5625vw, 30px) var(--shadow);
}

[data-theme="light"] .contact-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.theme-toggle-footer {
    background: none;
    border: none;
    font-size: clamp(1.3rem, 1.625vw, 1.95rem);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline;
    margin: clamp(0px, 0vw, 0px) clamp(0px, 0vw, 0px) clamp(0px, 0vw, 0px) clamp(80px, 6.25vw, 120px);
}

.theme-toggle-footer:hover {
    transform: scale(1.2) rotate(20deg);
    opacity: 0.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 19.53125vw, 375px), 1fr));
    gap: clamp(2rem, 2.5vw, 3rem);
}

.contact-item h3 {
    color: var(--accent);
    margin-bottom: 0.5em;
}

.contact-item p {
    margin-bottom: clamp(0.2rem, 0.25vw, 0.3rem);
}

.hidden {
    display: none !important;
}

/* Media Showcase Section */
.media-showcase {
    padding: clamp(4rem, 5vw, 6rem) 0;
    background: var(--bg-secondary);
    border-top: clamp(1px, 0.078125vw, 1.5px) solid var(--border);
}

.media-showcase h2 {
    font-size: clamp(2.5rem, 3.125vw, 3.75rem);
    text-align: center;
    margin-bottom: clamp(3rem, 3.75vw, 4.5rem);
    color: var(--text-primary);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 23.4375vw, 450px), 1fr));
    gap: clamp(2rem, 2.5vw, 3rem);
    max-width: clamp(1200px, 93.75vw, 1800px);
    margin: 0 auto;
}

.media-item {
    border-radius: clamp(12px, 0.9375vw, 18px);
    overflow: hidden;
    box-shadow: 0 clamp(4px, 0.3125vw, 6px) clamp(15px, 1.171875vw, 22.5px) var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-card);
    aspect-ratio: 4 / 3;
}

.media-item:hover {
    transform: translateY(clamp(-15px, -0.78125vw, -10px));
    box-shadow: 0 clamp(8px, 0.625vw, 12px) clamp(25px, 1.953125vw, 37.5px) var(--shadow);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-item {
    background: #000;
}

.video-item video {
    object-fit: contain;
}
