:root {
    /* Color Palette - RPG Fusion */
    --color-bg: #ffffff;
    --color-text: #0e0e0e;
    --color-accent: #c43e1c;
    --color-fresh: #10b981;
    --color-muted: #888888;
    --color-border: #eeeeee;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-hand: 'Homemade Apple', cursive;

    /* Spacing */
    --space-safe: 2.5rem;
    --container-width: 1400px;
}

/* === LANGUAGE SWITCHER UI === */
.lang-switcher {
    display: flex;
    gap: 1rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lang-btn {
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
}

.lang-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.lang-btn.active {
    opacity: 1;
    color: var(--color-accent);
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle paper texture */
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    background-attachment: fixed;
}

/* === LAYOUT UTILITIES === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-safe);
}

/* === HEADER === */
/* Default Header (Home) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    pointer-events: none;
}

header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    pointer-events: auto;
}

/* Contact Page Header Overrides */
body.contact-page header {
    position: static;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

body.contact-page header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 950;
    font-size: 2.6rem;
    letter-spacing: -0.06em;
    display: flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    color: var(--color-text);
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

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

.info-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.5rem 2rem;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 0.2rem 0;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--color-accent);
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

.operator-info {
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.5;
    font-weight: 300;
    max-width: 450px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#clock {
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.8rem;
}

.header-cta {
    display: inline-block;
    background: var(--color-text);
    color: var(--color-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.back-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-text);
}

/* === MAIN CONTENT === */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.contact-page main {
    align-items: center;
    justify-content: center;
    padding: 2rem 0 4rem;
}

/* === HERO SECTION === */
#hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding-bottom: 4rem;
    padding-top: 12rem;
    z-index: 1;
    overflow: hidden;
}

#hero .container {
    will-change: transform, opacity, filter;
    transform-origin: center center;
}

.tomato-container {
    width: 380px;
    aspect-ratio: 16 / 9;
    position: relative;
    z-index: 1;
    margin-bottom: -2rem;
    mix-blend-mode: darken;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: high-quality;
    filter: contrast(130%) brightness(105%) saturate(115%);
}

.handwritten-note {
    position: absolute;
    left: -80px;
    top: 10px;
    font-family: 'Rock Salt', cursive;
    font-size: 1.2rem;
    color: var(--color-muted);
    transform: rotate(-10deg);
    opacity: 0.5;
    white-space: nowrap;
    line-height: 1.1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.handwritten-note span {
    display: block;
}

.handwritten-note .curve {
    width: 100px;
    height: 20px;
    border: solid 1.5px var(--color-muted);
    border-color: transparent transparent var(--color-muted) transparent;
    border-radius: 0 0 100% 100%;
    margin-top: -5px;
    transform: rotate(-2deg);
}

/* Generic Graffiti Style */
.graffiti-tag {
    position: absolute;
    font-family: 'Rock Salt', 'Caveat', cursive;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.75);
    opacity: 0.75;
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease;
    word-spacing: 0.25em;
}

.graffiti-tag .curve {
    height: 12px;
    border: solid 1.5px rgba(0, 0, 0, 0.65);
    border-color: transparent transparent rgba(0, 0, 0, 0.65) transparent;
    border-radius: 0 0 100% 100%;
    margin-top: -3px;
}

/* Home Page Placements */
.tag-just-do-it {
    top: 55%;
    right: 4%;
    transform: rotate(15deg);
}

.tag-just-do-it .curve {
    width: 80px;
}

.tag-think-different {
    top: 10px;
    right: 5%;
    transform: rotate(4deg);
}

.tag-think-different .curve {
    width: 100px;
}

.tag-lovin-it {
    bottom: 15%;
    left: 1%;
    transform: rotate(-8deg);
}

.tag-lovin-it .curve {
    width: 90px;
}

/* Global .tag-happiness (Home & Contact Shared) */
.tag-happiness {
    top: 50%;
    left: -18%;
    right: auto;
    bottom: auto;
    transform: rotate(-12deg);
    z-index: 50;
    width: max-content;
    pointer-events: none;
}

.tag-happiness .curve {
    width: 120px;
}

/* Contact Page Placements Overrides */
body.contact-page .tag-chaos {
    top: 15%;
    left: 3%;
    transform: rotate(-12deg);
}

body.contact-page .tag-chaos .curve {
    width: 70px;
}

body.contact-page .tag-just-do-it {
    top: 50%;
    right: 3%;
    transform: rotate(10deg);
}

body.contact-page .tag-think-different {
    top: 15%;
    bottom: auto;
    left: auto;
    right: 3%;
    transform: rotate(8deg);
}

body.contact-page .tag-happiness {
    display: flex;
    top: 50%;
    left: -18%;
    bottom: auto;
    right: auto;
    transform: rotate(-12deg);
    z-index: 20;
}

body.contact-page .tag-lovin-it {
    top: 85%;
    bottom: auto;
    right: 2%;
    left: auto;
    transform: rotate(15deg);
}

.hero-text {
    text-align: center;
    z-index: 10;
    transition: transform 0.45s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    transform-style: preserve-3d;
    will-change: transform;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

h1 span {
    display: block;
}

h1 .bold {
    font-weight: 800;
}

.description {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    max-width: 450px;
    margin: 0 auto;
    color: var(--color-muted);
    line-height: 1.6;
}

/* === NEW SCHOOL STATS SECTION === */
#stats {
    padding: 3rem 0; /* Same as features and portfolio */
    position: relative;
    z-index: 3;
}

.stats-new-school-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.ns-stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px; /* Slightly tighter curves */
    padding: 1.8rem 1.5rem; /* More compact inner padding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-height: 200px;
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.ns-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.ns-stat-top {
    display: flex;
    align-items: baseline;
    position: relative;
    z-index: 2;
}

.ns-number {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(4rem, 6vw, 6.5rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: var(--color-text);
    transition: all 0.3s ease;
    display: inline-block;
}

.ns-stat-card:hover .ns-number,
.ns-stat-card:hover .ns-suffix {
    transform: translateY(-4px);
    -webkit-text-stroke: 2.5px var(--color-text);
    color: #fff;
    paint-order: stroke fill;
}

.ns-suffix {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.8;
    color: var(--color-text);
    margin-left: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.ns-stat-bottom {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-muted);
    line-height: 1.5;
    position: relative;
    z-index: 2;
    margin-top: 0;
    transition: color 0.3s ease;
}

.ns-stat-card:hover .ns-stat-bottom {
    color: var(--color-text);
}

.ns-stat-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-fresh) 0%, transparent 70%);
    opacity: 0;
    bottom: -100px;
    right: -100px;
    filter: blur(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
    border-radius: 50%;
}

.ns-stat-card:nth-child(2) .ns-stat-glow { background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%); }
.ns-stat-card:nth-child(3) .ns-stat-glow { background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, transparent 70%); }
.ns-stat-card:nth-child(4) .ns-stat-glow { background: radial-gradient(circle, var(--color-fresh) 0%, transparent 70%); }

.ns-stat-card:hover .ns-stat-glow {
    opacity: 0.15;
    transform: scale(1.5);
}

@media (max-width: 1024px) {
    .stats-new-school-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 600px) {
    .stats-new-school-grid { grid-template-columns: 1fr; }
    .ns-stat-card { min-height: auto; padding: 2rem; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.5rem; }
    .ns-stat-top { align-items: center; }
    .ns-stat-bottom { margin-top: 0; font-size: 0.75rem; text-align: left; line-height: 1.3; }
    .ns-suffix { margin-top: 0; font-size: 2rem; }
    .ns-number { font-size: 3.5rem; }
}

/* === AGENCY PORTFOLIO (NEW SCHOOL) === */
.ag-portfolio {
    padding: 3rem 0 0; /* Same top spacing, no bottom (marquee section handles it) */
    background: transparent;
    color: var(--color-text);
    position: relative;
    z-index: 3;
}

.ag-portfolio .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.ag-portfolio-intro {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 0 3.5rem 0;
    color: var(--color-muted);
}

.ag-carousel-container {
    position: relative;
    width: 100%;
}

.ag-nav-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ag-nav-btn.prev {
    left: -27px;
}

.ag-nav-btn.next {
    right: -27px;
}

.ag-nav-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(196, 62, 28, 0.3);
}

@media (max-width: 1100px) {
    .ag-nav-btn.prev { left: 10px; }
    .ag-nav-btn.next { right: 10px; }
}

/* Scrollable Container */
.ag-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.ag-carousel::-webkit-scrollbar {
    display: none;
}

.ag-card {
    flex: 0 0 580px;
    height: 580px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: #18181b;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    scroll-snap-align: start;
}

.ag-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.5s ease, transform 0.7s ease;
}

.ag-card:hover .ag-card-bg {
    filter: grayscale(0%) brightness(0.95);
    transform: scale(1.05);
}

.ag-card-bg.ag-card-bg-zoomed {
    transform: scale(1.22) translateY(-18.5%);
}

.ag-card:hover .ag-card-bg.ag-card-bg-zoomed {
    transform: scale(1.28) translateY(-19.5%);
}

/* Removed blurred classes for backgrounds */

.ag-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.ag-card-content {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.ag-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ag-tags {
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* Reduced gap */
    margin-top: -0.8rem; /* Move them higher */
}

.ag-tag {
    font-size: 0.65rem; /* Slightly smaller text */
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.9rem; /* Less padding to save space */
    line-height: 1.2;
    border-radius: 100px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ag-card-logo {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.9;
    flex-shrink: 0;
}

.ag-card-bottom {
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.ag-card:hover .ag-card-bottom {
    transform: translateY(0);
}

.ag-card-bottom h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ag-card-bottom p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Interactive Scrollable Mockup Card */

.ag-card-scrollable .ag-browser-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.0);
    width: 76%;
    height: 66%;
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.ag-card-scrollable:hover .ag-browser-wrapper {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 40px 80px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.7);
}

.ag-browser-header {
    height: 28px;
    background: #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    border-bottom: 1px solid #c9c9c9;
}

.ag-browser-dots {
    display: flex;
    gap: 6px;
}

.ag-browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.ag-browser-dots span:nth-child(1) { background: #ff5f56; }
.ag-browser-dots span:nth-child(2) { background: #ffbd2e; }
.ag-browser-dots span:nth-child(3) { background: #27c93f; }

.ag-browser-title {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 500;
    color: #666;
    margin-right: 48px; /* Offset to center text visually considering the dots */
    letter-spacing: 0.05em;
    font-family: monospace;
}

.ag-browser-content {
    flex: 1;
    width: 100%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    transition: background-position 1.2s cubic-bezier(0.2, 0, 0, 1); /* Quick return */
    will-change: background-position;
    transform: translateZ(0); /* Hardware Acceleration Force */
}

.ag-card-scrollable:hover .ag-browser-content {
    background-position: bottom center;
}

/* Normalized scroll duration to match exactly the 470px/s feel of Verse */
.ag-card:nth-child(1).ag-card-scrollable:hover .ag-browser-content { transition: background-position 20.7s ease-in-out; }
.ag-card:nth-child(3).ag-card-scrollable:hover .ag-browser-content { transition: background-position 16.1s ease-in-out; }
.ag-card:nth-child(4).ag-card-scrollable:hover .ag-browser-content { transition: background-position 24.7s ease-in-out; }
.ag-card:nth-child(5).ag-card-scrollable:hover .ag-browser-content { transition: background-position 9.5s ease-in-out; }
.ag-card:nth-child(6).ag-card-scrollable:hover .ag-browser-content { transition: background-position 19.4s ease-in-out; }

/* Ensure foreground text is above the browser */
.ag-card-scrollable .ag-card-gradient {
    z-index: 2;
}

.ag-card-scrollable .ag-card-content {
    z-index: 3;
    pointer-events: none; /* Allows hover mapping cleanly to the card */
}

/* Footer CTA */
.ag-footer-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.ag-btn-all {
    display: inline-block;
    background: var(--color-text);
    border: 1px solid var(--color-text);
    color: var(--color-bg);
    padding: 1rem 3rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.ag-btn-all:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 62, 28, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .ag-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ag-card {
        flex: 0 0 440px;
        height: 440px;
    }
}
@media (max-width: 600px) {
    .ag-nav { display: none; }
    .ag-card {
        flex: 0 0 350px;
        height: 350px;
    }
}

/* === FOOTER === */
footer {
    background: #050505;
    color: #fff;
    padding: 1.5rem 0 0.8rem;
    position: relative;
    z-index: 4;
    overflow: hidden;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-bottom: -0.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-contact {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.footer-logo-container {
    width: 100%;
    text-align: left;
    margin-bottom: -1rem;
    padding: 0.5rem 5vw 0.5rem 0;
    box-sizing: border-box;
}

.footer-logo-huge {
    font-family: var(--font-display);
    font-size: clamp(8rem, 21vw, 28rem);
    font-weight: 900;
    line-height: 0.7;
    letter-spacing: -0.05em;
    color: #fff;
    opacity: 0.95;
    user-select: none;
    text-transform: uppercase;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-block;
    white-space: nowrap;
    margin-left: -0.15em;
}

.footer-logo-huge .dot {
    color: #9333ea;
    display: inline-block;
    width: 0.1em;
    height: 0.1em;
    background: #9333ea;
    border-radius: 50%;
    margin-left: 0.05em;
    vertical-align: baseline;
}

.footer-logo-huge:hover {
    opacity: 1;
    transform: scale(1.01);
    letter-spacing: -0.01em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* === LEGAL MODAL === */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.legal-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 4rem;
    border-radius: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.legal-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    color: #000;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-text {
    font-family: var(--font-main);
    line-height: 1.8;
    font-size: 1rem;
}

.modal-text h2 {
    font-family: var(--font-display);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.modal-text h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* === FEATURES SECTION (BENTO GRID) === */
#features {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
    z-index: 2;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}

#features::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.01) 0%, transparent 70%),
        linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
    z-index: 0;
    animation: gridWind 20s infinite ease-in-out;
    will-change: transform;
}

@keyframes gridWind {
    0% {
        transform: translate(0, 0) rotate(0deg) skew(0deg);
    }

    25% {
        transform: translate(15px, 10px) rotate(0.2deg) skew(0.5deg);
    }

    50% {
        transform: translate(0, 20px) rotate(-0.1deg) skew(-0.2deg);
    }

    75% {
        transform: translate(-15px, 10px) rotate(0.1deg) skew(0.3deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) skew(0deg);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(15px);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.03);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* Optimized: anchored at 0 */
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    /* Optimized: translateX instead of left */
    transform: translateX(-150%);
    animation: sweep 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sweep {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    15% {
        transform: translateX(150%);
        opacity: 0;
    }

    100% {
        transform: translateX(150%);
        opacity: 0;
    }
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.025);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 40px 100px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    animation: none;
    transition: 0.5s;
    /* Optimized: use transform for off-screen */
    transform: translateX(100%);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
    max-width: 80%;
}

.card-ecosystem {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ecosystem-content {
    padding: 2.5rem;
    z-index: 2;
}

.orbital-view {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 400px;
    height: 400px;
    opacity: 0.8;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(16, 185, 129, 0.4);
    border-radius: 50%;
}

.ring-1 {
    width: 180px;
    height: 180px;
    animation: rotateCW 20s linear infinite;
}

.ring-2 {
    width: 300px;
    height: 300px;
    animation: rotateCCW 30s linear infinite;
}

.orbit-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
}

.icon-1 {
    top: -20px;
    left: calc(50% - 20px);
}

.icon-2 {
    bottom: -20px;
    left: calc(50% - 20px);
}

.icon-3 {
    left: -20px;
    top: calc(50% - 20px);
}

.icon-4 {
    right: -20px;
    top: calc(50% - 20px);
}

.icon-5 {
    top: -20px;
    left: calc(50% - 20px);
}

.icon-6 {
    bottom: -20px;
    left: calc(50% - 20px);
}

@keyframes rotateCW {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateCCW {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* 1. Scale - Managed Portfolio */
.scale-container {
    width: 100%;
    height: 100px;
    position: relative;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    padding-left: 50px;
    box-sizing: border-box;
}

.portfolio-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}

.port-line {
    position: absolute;
    bottom: 25px;
    width: 8px;
    background: #666;
    border-radius: 4px;
    opacity: 0.7;
    /* Transformation setup for height optimization (scaleY) */
    transform-origin: bottom;
}

/* Optimized Animation: Using scaleY instead of height to prevent reflow */
/* Original Height Key: 
   20px -> scaleY(1) (base)
   35px -> scaleY(1.75)
   60px -> scaleY(3)
   15px -> scaleY(0.75)
   65px -> scaleY(3.25)
   40px -> scaleY(2)
   30px -> scaleY(1.5)
   base height ~20px for easier math, let's say base is 20px. 
*/

.port-line:nth-child(1) {
    left: 5%;
    height: 20px;
    animation: line-1 8s infinite;
}

.port-line:nth-child(2) {
    left: 20%;
    height: 20px;
    animation: line-2 8s infinite;
}

.port-line:nth-child(3) {
    left: 40%;
    height: 20px;
    animation: line-3 8s infinite;
}

.port-line:nth-child(4) {
    left: 90%;
    height: 20px;
    animation: line-4 8s infinite;
}

.port-line:nth-child(5) {
    left: 75%;
    height: 20px;
    animation: line-5 8s infinite;
}

.port-line:nth-child(6) {
    left: 95%;
    height: 20px;
    animation: line-6 8s infinite;
}

@keyframes line-1 {

    0%,
    100% {
        left: 5%;
        transform: scaleY(1);
        background: #666;
    }

    25%,
    90% {
        left: 15%;
        transform: scaleY(1.75);
        background: var(--color-fresh);
    }
}

@keyframes line-2 {

    0%,
    100% {
        left: 20%;
        transform: scaleY(1.5);
        background: #666;
    }

    25%,
    90% {
        left: 29%;
        transform: scaleY(3);
        background: var(--color-fresh);
    }
}

@keyframes line-3 {

    0%,
    100% {
        left: 40%;
        transform: scaleY(0.75);
        background: #666;
    }

    25%,
    90% {
        left: 43%;
        transform: scaleY(2.25);
        background: var(--color-fresh);
    }
}

@keyframes line-4 {

    0%,
    100% {
        left: 90%;
        transform: scaleY(1.25);
        background: #666;
    }

    25%,
    90% {
        left: 57%;
        transform: scaleY(3.25);
        background: var(--color-fresh);
    }
}

@keyframes line-5 {

    0%,
    100% {
        left: 75%;
        transform: scaleY(0.9);
        background: #666;
    }

    25%,
    90% {
        left: 71%;
        transform: scaleY(2);
        background: var(--color-fresh);
    }
}

@keyframes line-6 {

    0%,
    100% {
        left: 95%;
        transform: scaleY(0.6);
        background: #666;
    }

    22%,
    90% {
        left: 85%;
        transform: scaleY(1.5);
        background: var(--color-fresh);
    }
}

.base-line {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    /* Optimized start */
    width: 80%;
    /* Fixed width */
    height: 2px;
    background: #444;
    animation: expandBase 8s infinite;
}

@keyframes expandBase {

    0%,
    15% {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }

    25%,
    90% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }

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

.limit-line {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    border-top: 1px dashed var(--color-fresh);
    opacity: 0;
    animation: showLimit 8s infinite;
}

@keyframes showLimit {

    0%,
    40% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
    }

    50%,
    90% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }

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

.port-counter {
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-fresh);
    opacity: 0;
    animation: showCounter 8s infinite;
}

.port-counter::after {
    content: "120 000 Kč";
    animation: countUp 8s infinite;
}

@keyframes showCounter {

    0%,
    25% {
        opacity: 0;
    }

    30%,
    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes countUp {
    30% {
        content: "120 000 Kč";
    }

    40% {
        content: "280 000 Kč";
    }

    50%,
    100% {
        content: "500 000+ Kč";
    }
}

/* 2. ROI - Combo Chart */
.roi-container {
    width: 100%;
    height: 100px;
    position: relative;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 20px;
    box-sizing: border-box;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.chart-bar {
    width: 8%;
    background: #E0E0E0;
    border-radius: 4px;
    opacity: 0.2;
    animation: barRiseLoop 8s ease-in-out infinite;
    transform-origin: bottom;
    transform: scaleY(0);
}

.chart-bar:nth-child(1) {
    height: 30%;
    animation-delay: 0.1s;
}

.chart-bar:nth-child(2) {
    height: 45%;
    animation-delay: 0.2s;
}

.chart-bar:nth-child(3) {
    height: 40%;
    animation-delay: 0.3s;
}

.chart-bar:nth-child(4) {
    height: 60%;
    animation-delay: 0.4s;
}

.chart-bar:nth-child(5) {
    height: 55%;
    animation-delay: 0.5s;
}

.chart-bar:nth-child(6) {
    height: 75%;
    animation-delay: 0.6s;
}

.chart-bar:nth-child(7) {
    height: 65%;
    animation-delay: 0.7s;
}

.chart-bar:nth-child(8) {
    height: 90%;
    animation-delay: 0.8s;
    background: linear-gradient(to top, var(--color-fresh), transparent);
    opacity: 0.4;
}

@keyframes barRiseLoop {
    0% {
        transform: scaleY(0);
    }

    10%,
    90% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
    }
}

.trend-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 2;
}

.trend-line {
    fill: none;
    stroke: var(--color-fresh);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLineLoop 8s ease-out infinite;
    animation-delay: 1s;
    filter: drop-shadow(0 4px 6px rgba(16, 185, 129, 0.4));
}

.trend-point {
    fill: #fff;
    stroke: var(--color-fresh);
    stroke-width: 2;
    r: 0;
    animation: popPointLoop 8s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.trend-point:nth-child(2) {
    animation-delay: 1.1s;
}

.trend-point:nth-child(3) {
    animation-delay: 1.3s;
}

.trend-point:nth-child(4) {
    animation-delay: 1.5s;
}

.trend-point:nth-child(5) {
    animation-delay: 1.7s;
}

.trend-point:nth-child(6) {
    animation-delay: 1.9s;
}

.trend-point:nth-child(7) {
    animation-delay: 2.1s;
}

.trend-point:nth-child(8) {
    animation-delay: 2.3s;
}

.trend-point:nth-child(9) {
    animation-delay: 2.5s;
    animation-name: popBigPointLoop;
    fill: var(--color-fresh);
    stroke: #fff;
    filter: drop-shadow(0 0 8px var(--color-fresh));
}

@keyframes drawLineLoop {
    0% {
        stroke-dashoffset: 400;
    }

    20%,
    90% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 400;
        opacity: 0;
    }
}

@keyframes popPointLoop {
    0% {
        r: 0;
    }

    5%,
    90% {
        r: 4;
    }

    100% {
        r: 0;
    }
}

@keyframes popBigPointLoop {
    0% {
        r: 0;
    }

    5%,
    90% {
        r: 5;
    }

    100% {
        r: 0;
    }
}

/* 3. Retention - Natural Selection */
.retention-container {
    width: 100%;
    height: 100px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.selection-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.core-loop {
    fill: none;
    stroke: var(--color-fresh);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0;
    animation: fadeInLoop 8s ease-out infinite;
}

.cohort-dot {
    fill: var(--color-fresh);
    r: 4;
    transition: opacity 0.5s;
}

/* Dot Animations */
.cohort-dot:nth-child(2) {
    animation: toPos1 8s ease-in-out infinite;
}

@keyframes toPos1 {
    0% {
        cx: 40px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 110px;
        cy: 50px;
    }

    100% {
        cx: 40px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(3) {
    animation: toPos2 8s ease-in-out infinite;
}

@keyframes toPos2 {
    0% {
        cx: 75px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 135px;
        cy: 30px;
    }

    100% {
        cx: 75px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(4) {
    animation: toPos3 8s ease-in-out infinite;
}

@keyframes toPos3 {
    0% {
        cx: 110px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 170px;
        cy: 22px;
    }

    100% {
        cx: 110px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(5) {
    animation: toPos4 8s ease-in-out infinite;
}

@keyframes toPos4 {
    0% {
        cx: 145px;
        cy: 50px;
        r: 4;
        stroke: none;
    }

    35%,
    90% {
        cx: 200px;
        cy: 20px;
        r: 5;
        fill: var(--color-fresh);
        stroke: #fff;
        stroke-width: 2px;
    }

    100% {
        cx: 145px;
        cy: 50px;
        r: 4;
        stroke: none;
    }
}

.cohort-dot:nth-child(6) {
    animation: toPos5 8s ease-in-out infinite;
}

@keyframes toPos5 {
    0% {
        cx: 180px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 230px;
        cy: 22px;
    }

    100% {
        cx: 180px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(7) {
    animation: toPos6 8s ease-in-out infinite;
}

@keyframes toPos6 {
    0% {
        cx: 215px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 265px;
        cy: 30px;
    }

    100% {
        cx: 215px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(8) {
    animation: toPos7 8s ease-in-out infinite;
}

@keyframes toPos7 {
    0% {
        cx: 250px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 290px;
        cy: 50px;
    }

    100% {
        cx: 250px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(9) {
    animation: toPos8 8s ease-in-out infinite;
}

@keyframes toPos8 {
    0% {
        cx: 285px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 250px;
        cy: 75px;
    }

    100% {
        cx: 285px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(10) {
    animation: toPos9 8s ease-in-out infinite;
}

@keyframes toPos9 {
    0% {
        cx: 320px;
        cy: 50px;
    }

    35%,
    90% {
        cx: 150px;
        cy: 75px;
    }

    100% {
        cx: 320px;
        cy: 50px;
    }
}

.cohort-dot:nth-child(11) {
    animation: dropDot 8s ease-in infinite;
    fill: #666;
}

@keyframes dropDot {
    0% {
        cx: 355px;
        cy: 50px;
        opacity: 1;
    }

    20% {
        cx: 355px;
        cy: 80px;
        opacity: 0;
    }

    90% {
        cx: 355px;
        cy: 100px;
        opacity: 0;
    }

    100% {
        cx: 355px;
        cy: 50px;
        opacity: 1;
    }
}

@keyframes fadeInLoop {
    0% {
        opacity: 0;
    }

    35%,
    90% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }
}

/* 4. Funnel - Web that sells */
.card-funnel {
    align-items: flex-start;
    text-align: left;
}

.card-funnel p {
    max-width: 80%;
    margin: 0;
}

.funnel-container {
    width: 100%;
    height: 130px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.funnel-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Browser wireframe */
.browser-frame {
    fill: none;
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 1.5;
}

.browser-bar {
    stroke: rgba(0, 0, 0, 0.06);
    stroke-width: 1;
}

.browser-dot {
    fill: rgba(0, 0, 0, 0.1);
}
.browser-dot.bd-2 { fill: rgba(0, 0, 0, 0.08); }
.browser-dot.bd-3 { fill: rgba(0, 0, 0, 0.06); }

/* Content placeholder lines */
.page-line {
    fill: rgba(0, 0, 0, 0.06);
    opacity: 0;
}

.pl-1 { animation: lineReveal 8s 0.6s ease-out infinite; }
.pl-2 { animation: lineReveal 8s 1.2s ease-out infinite; }
.pl-3 { animation: lineReveal 8s 1.8s ease-out infinite; }

@keyframes lineReveal {
    0% { opacity: 0; width: 0; }
    8%, 40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* CTA button */
.cta-btn {
    fill: var(--color-fresh);
    opacity: 0;
    animation: ctaAppear 8s 2.4s ease-out infinite;
}

@keyframes ctaAppear {
    0% { opacity: 0; }
    5%, 38% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Cursor */
.cursor-icon {
    fill: var(--color-text);
    opacity: 0;
    animation: cursorMove 8s 3.6s ease-in-out infinite;
}

@keyframes cursorMove {
    0% { opacity: 0; transform: translate(20px, 10px); }
    8% { opacity: 0.9; transform: translate(0, 0); }
    15% { opacity: 0.9; transform: translate(-38px, -17px); }
    18% { opacity: 0.9; transform: translate(-40px, -15px); }
    20% { opacity: 0.9; transform: translate(-38px, -17px); }
    35% { opacity: 0.6; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Click ripple */
.click-ring {
    fill: none;
    stroke: var(--color-fresh);
    stroke-width: 1.5;
    opacity: 0;
    animation: clickPulse 8s 4.8s ease-out infinite;
}

.click-ring.ring-2 {
    animation-delay: 5.2s;
}

@keyframes clickPulse {
    0% { opacity: 0; r: 4; }
    3% { opacity: 0.8; r: 6; }
    12% { opacity: 0; r: 20; }
    100% { opacity: 0; }
}

/* === PROJECTS SECTION === */
#projects {
    padding: 0.5rem 0; /* Minimal gaps between blocks */
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 50;
}

.marquee-mask {
    display: flex;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: max-content;
    padding: 2rem 0; /* Area to grab */
    cursor: grab;
    pointer-events: auto !important; /* Force interactivity */
    user-select: none;
}

.marquee-track:active {
    cursor: grabbing;
}

.logo-item {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Individual adjustments for balanced visual weight */
.logo-item[src*="joyslogo"] { height: 35px; opacity: 0.8; }
.logo-item[src*="serhii"] { height: 38px; opacity: 0.8; }
.logo-item[src*="evalogo"] { height: 140px; opacity: 1; }
.logo-item[src*="podcastylogo"] { height: 48px; opacity: 0.8; }
.logo-item[src*="idealmove"] { height: 48px; opacity: 0.8; }
.logo-item[src*="verselogo"] { height: 45px; opacity: 0.8; }

.logo-item:hover {
    transform: scale(1.1);
}

/* === CONTACT SECTION === */
#contact {
    width: 100%;
    padding: 2rem 0;
    position: relative;
    z-index: 3;
}

/* Home Page specific contact adjustment from index.html */
#contact:not(.page-section) {
    /* This matches index.html usage where it's a section, but in contact.html it's main content */
    padding-top: 0;
}

/* === CONTACT PRE-FORM INTRO BLOCKS === */
.contact-intro-flow {
    max-width: 1000px;
    margin: 10rem auto 5rem auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    position: relative;
    z-index: 10;
}

.cflow-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.cflow-headline-sm {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.cflow-highlight {
    color: var(--color-accent);
    font-weight: 800;
    font-style: normal;
}

.cflow-block-1 {
    text-align: left;
}

.cflow-desc {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    max-width: 750px;
}

.cflow-block-2 {
    text-align: center;
}

.cflow-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.cflow-card {
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(196, 62, 28, 0.15);
}

.cflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(196, 62, 28, 0.15);
}

.cflow-step {
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.cflow-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.cflow-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.cflow-block-3 {
    text-align: center;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.cflow-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    letter-spacing: -0.02em;
}

.cflow-contact-btn:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.cflow-contact-btn svg {
    transition: transform 0.3s ease;
}

.cflow-contact-btn:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

@media (max-width: 900px) {
    .cflow-cards {
        grid-template-columns: 1fr;
    }
    .contact-intro-flow {
        gap: 4rem;
        margin-bottom: 4rem;
        margin-top: 2rem;
    }
    .cflow-block-3 {
        margin-top: 4rem;
    }
}

/* === ULTRA PREMIUM AURORA CONTACT FORM === */
@keyframes premiumReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

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

.premium-contact-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 6rem 3rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    
    /* Solid White Container for Max Contrast */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 40px;
    
    /* Prominent floating shadow */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(0, 0, 0, 0.06),
        0 4px 10px rgba(0, 0, 0, 0.04);
}



.premium-header {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: premiumReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    position: relative;
    z-index: 1;
}

.premium-headline {
    color: var(--color-text) !important;
    margin-bottom: 2rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.premium-offer {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
}

.premium-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: premiumReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
    position: relative;
    z-index: 1;
}

.premium-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.premium-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.premium-field label {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888888;
    padding-left: 1.2rem;
}

.premium-field input {
    width: 100%;
    height: 64px;
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    border-radius: 9999px; /* Reverting to slick pill shape */
    padding: 0 1.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #111111;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.premium-field input:focus {
    background: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transform: scale(1.01);
}

.premium-field input::placeholder {
    color: #bbbbbb;
    font-weight: 300;
}

.premium-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    animation: premiumReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.premium-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    height: 60px;
    padding: 0 3rem;
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-submit:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* Graffiti-style Free Offer Callout */
@keyframes graffitiWiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(-1deg); }
}

.premium-graffiti-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -1.5rem;
    margin-bottom: 1.5rem;
    animation: premiumReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards, graffitiWiggle 4s ease-in-out infinite;
    opacity: 0;
    position: relative;
    z-index: 1;
}

.premium-graffiti-offer span {
    font-family: 'Rock Salt', 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--color-accent);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.02em;
}

.premium-graffiti-curve {
    width: 160px;
    height: 12px;
    border: solid 2px var(--color-accent);
    border-color: transparent transparent var(--color-accent) transparent;
    border-radius: 0 0 100% 100%;
    margin-top: -2px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .premium-contact-card {
        padding: 4rem 1.5rem 4rem;
        margin: 0 1rem;
        border-radius: 32px;
    }
    .premium-contact-card::before {
        filter: blur(30px);
        top: -10px; bottom: -10px; left: -10px; right: -10px;
    }
    .premium-headline {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 2.5rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    .premium-fields-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .premium-submit {
        width: 100%;
        padding: 0 2rem;
        height: 64px;
        font-size: 0.85rem;
    }
}

/* Contact Card Styles (Shared) */
.contact-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 48px;
    padding: 4.5rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 25px 35px -5px rgba(0, 0, 0, 0.04), 0 50px 120px -30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 10;
}

.contact-card:hover {
    transform: translateY(-15px) scale(1.005);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05), 0 50px 100px -20px rgba(0, 0, 0, 0.1), 0 120px 220px -50px rgba(0, 0, 0, 0.2);
}

/* === EDITORIAL CONTACT CARD === */
.contact-card--editorial {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6rem 2rem;
    max-width: 800px;
    text-align: center;
}

.contact-card--editorial:hover {
    transform: none;
    box-shadow: none;
}

.editorial-badge {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: 0.95rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    position: relative;
}

.editorial-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--color-accent);
    opacity: 0.4;
}

.editorial-headline {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.editorial-headline__thin {
    font-weight: 200;
    display: block;
}

.editorial-headline__heavy {
    font-weight: 900;
    font-style: italic;
    display: block;
}

.editorial-note {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* Editorial Form */
.editorial-form {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    width: 100%;
}

.editorial-field {
    flex: 1;
    position: relative;
    text-align: left;
}

.editorial-field input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
    font-family: var(--font-main);
    font-size: 1.05rem;
    color: var(--color-text);
    transition: border-color 0.3s ease;
    outline: none;
}

.editorial-field input:focus {
    border-color: var(--color-text);
}

.editorial-field input:focus ~ label,
.editorial-field input:not(:placeholder-shown) ~ label {
    transform: translateY(-1.8rem) scale(0.7);
    color: var(--color-accent);
    letter-spacing: 0.15em;
}

.editorial-field label {
    position: absolute;
    left: 0;
    bottom: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    pointer-events: none;
    transform-origin: left bottom;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Editorial Submit */
.editorial-submit {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-text);
    color: #fff;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.editorial-submit:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(196, 62, 28, 0.25);
}

.editorial-submit__arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.editorial-submit:hover .editorial-submit__arrow {
    transform: translateX(4px);
}

/* Editorial Trust */
.editorial-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    opacity: 0.6;
}

.editorial-trust__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-muted);
    flex-shrink: 0;
}

/* On Home Page, Contact Card animates in */
.contact-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Trust Line */
.trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}

.trust-line__sep {
    opacity: 0.3;
    font-size: 1rem;
}

.section-title {
    color: var(--color-text) !important;
    margin-bottom: 2rem;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: 3.5rem;
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
}

.contact-offer {
    text-align: center;
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    opacity: 0.75;
}

.contact-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form--short {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    padding-left: 0.8rem;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.1rem 2rem;
    border-radius: 28px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transform: scale(1.01);
}

.form-group textarea {
    height: 140px;
    resize: none;
}

.submit-btn {
    grid-column: span 2;
    justify-self: center;
    background: var(--color-text);
    color: white;
    border: none;
    padding: 1.4rem 5rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1.2rem;
    align-self: center;
    width: fit-content;
}

.submit-btn:hover {
    background: var(--color-accent);
    transform: scale(1.06);
    box-shadow: 0 20px 50px rgba(196, 62, 28, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .graffiti-tag {
        display: none;
    }

    /* From contact.html */
    /* index.html didn't hide them on 1200px, but contact did. Let's keep it safe or merge behavior. 
       Actually index.html does NOT hide them on 1200. I'll respect contact.html rule for contact page mainly. */
    body.contact-page .graffiti-tag {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-safe: 1.5rem;
    }

    h1 {
        font-size: clamp(3rem, 12vw, 4.5rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    header {
        padding: 1rem 0;
    }

    header .container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
        gap: 0;
        padding-top: 0.5rem;
    }

    body.contact-page header .container {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        font-size: 2rem;
        justify-self: start;
        margin-bottom: 0;
        line-height: 1;
    }

    .info-center {
        display: flex;
        grid-column: 1;
        grid-row: 2;
        width: auto;
        margin-top: -0.2rem;
        justify-self: start;
    }

    .lang-switcher {
        justify-content: flex-start;
        gap: 1rem;
    }

    .operator-info {
        display: none;
    }

    .info-right {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 0;
        text-align: right;
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: -0.5rem;
    }

    /* Hero Mobile */
    #hero {
        padding-top: 0;
        padding-bottom: 1rem;
    }

    .tomato-container {
        width: 280px;
        margin-bottom: 0.5rem;
        margin-top: 6rem;
        /* Pushed down to create breathing room */
    }

    .handwritten-note {
        left: auto;
        right: -40px;
        top: 60px;
        font-size: 0.9rem;
        transform: rotate(8deg);
        width: 120px;
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2.5rem 2rem;
    }

    .card-ecosystem {
        grid-column: span 1;
    }

    .orbital-view {
        height: 300px;
        margin-top: 1.5rem;
    }

    /* Contact Mobile */
    .contact-card {
        padding: 2.5rem 1.5rem;
        border-radius: 28px;
        margin-top: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form {
        grid-template-columns: 100% !important;
        gap: 1.5rem;
    }

    .form-group,
    .form-group.full-width,
    .submit-btn {
        grid-column: 1 / -1 !important;
        width: 100%;
    }

    .submit-btn {
        width: 100%;
        padding: 1.2rem 2rem;
        margin-top: 0;
    }


    .trust-line {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .trust-line__sep {
        display: none;
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 2rem;
    }

    .footer-contact {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-logo-container {
        text-align: center;
        margin-bottom: 2rem;
        padding: 0;
    }

    .footer-logo-huge {
        font-size: 19vw;
        margin-left: 0;
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .footer-meta {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    /* Mobile Tags */
    .graffiti-tag {
        display: flex;
        font-size: 0.85rem;
        opacity: 0.9;
    }

    .tag-just-do-it {
        top: auto;
        bottom: 10px;
        right: 5%;
    }

    .tag-think-different {
        top: 10px;
        right: 5%;
    }

    .tag-lovin-it {
        bottom: 10px;
        left: 5%;
    }

    .tag-happiness {
        top: auto;
        bottom: 50px;
        left: 2%;
        transform: rotate(-10deg);
        font-size: 0.8rem;
    }
}

/* Animations Helper Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

.stagger-1 {
    animation-delay: 0.3s;
}

.stagger-2 {
    animation-delay: 0.6s;
}

.stagger-3 {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* === ANIMATION OPTIMIZATION === */
/* Pause all animations by default if the container is not in view */
.feature-card:not(.is-animating) *,
.feature-card:not(.is-animating)::before,
.ns-stat-card:not(.is-animating) *,
.ag-card:not(.is-animating) *,
.hero-text:not(.is-animating) *,
#features:not(.is-animating) *,
#features:not(.is-animating)::before,
.marquee-wrapper:not(.is-animating) * {
    animation-play-state: paused !important;
}
