
.hero-section::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(235, 235, 235, 0) 0px, transparent 0px),
                      linear-gradient(90deg, rgba(235, 235, 235, 0) 0px, transparent 0px);
    background-size: 100px 100px;
    background-position: center center;
    z-index: 0;
    pointer-events: none;
}
/* ====================================
   PRELOADER
   ==================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0A0A0A 100%);
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 50%, #1A1A1A 100%);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader-left {
    left: 0;
    transform-origin: left;
}

.preloader-right {
    right: 0;
    transform-origin: right;
}

.preloader.animate .preloader-left {
    transform: translateX(-100%);
}

.preloader.animate .preloader-right {
    transform: translateX(100%);
}

.preloader-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-md);
    animation: logoFloat 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.2);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, rgba(42, 42, 42, 0.5) 0%, rgba(26, 26, 26, 0.8) 100%);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background: var(--gradient-silver);
    width: 0;
    transition: width 0.3s ease;
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    padding: 1rem 0;
    transition: padding var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--silver-light);
    z-index: 10;
    flex-shrink: 0;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    position: relative;
    font-weight: var(--font-weight-medium);
    color: var(--silver-medium);
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-silver);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--silver-light);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--silver-light);
    transition: all var(--transition-base);
}

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

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

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


/* ====================================
   HERO SECTION (Homepage - Premium Grid)
   ==================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
    background: #000000;
}

/* STRONG VISIBLE GRID PATTERN */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, hsla(0, 0%, 78%, 0.116) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(200, 200, 200, 0.116) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* Grid Glow Effect */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(200, 200, 200, 0.123) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 200, 200, 0.116) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}




.hero-canvas {

    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}




.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--silver-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-badge .dot {
    color: var(--primary-silver);
    font-size: 1.5rem;
    line-height: 0;
}

.hero-title.massive {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--silver-medium);
    font-weight: 500;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-features .dot {
    color: var(--primary-silver);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--silver-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--silver-medium);
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    /* Removed floating animation for stable appearance */
}

.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.3;
    /* Removed pulse animation for stable appearance */
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--silver-medium);
    font-size: 0.875rem;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--silver-dark);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-silver);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ====================================
   SECTION HEADER
   ==================================== */
.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-header.center {
    text-align: center;
}

/* ====================================
   SERVICES GRID
   ==================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    padding: var(--spacing-xl);
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-silver);
    border-radius: var(--radius-md);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--black-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--silver-light);
}

.service-card p {
    color: var(--silver-medium);
    margin-bottom: var(--spacing-md);
}

/* ====================================
   TWO COLUMN LAYOUT
   ==================================== */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--spacing-3xl);
    align-items: center;
}

.column-left h2 {
    margin-bottom: var(--spacing-md);
}

.column-left p {
    margin-bottom: var(--spacing-md);
}

/* ====================================
   STATS GRID
   ==================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(168, 168, 168, 0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.08) 0%, rgba(168, 168, 168, 0.04) 100%);
    border-color: rgba(192, 192, 192, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--silver-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ====================================
   PORTFOLIO GRID
   ==================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.portfolio-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.portfolio-info {
    padding: var(--spacing-md);
}

.portfolio-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--silver-light);
    margin-bottom: var(--spacing-xs);
}

.portfolio-info p {
    color: var(--silver-medium);
}

/* ====================================
   CTA SECTION
   ==================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.8) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(5, 5, 5, 0.8) 100%);
}

.cta-card {
    padding: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content {
    margin-bottom: var(--spacing-xl);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--silver-light);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--silver-medium);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   TESTIMONIALS SECTION
   ==================================== */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.testimonials-marquee {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 80s linear infinite;
    will-change: transform;
}

.testimonials-marquee:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 450px;
    max-width: 450px;
    padding: 2rem;
    text-align: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(192, 192, 192, 0.2);
    transform: translateY(-5px);
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.quote-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-silver);
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--silver-medium);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 150px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--black-primary);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    color: var(--silver-light);
    margin-bottom: 0.25rem;
    text-align: left;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--silver-medium);
    text-align: left;
}

/* Mobile testimonials */
@media (max-width: 767px) {
    .testimonials-marquee {
        animation: marqueeScroll 60s linear infinite;
    }

    .testimonial-card {
        min-width: 320px;
        max-width: 320px;
        padding: 1.5rem;
    }

    .quote-icon {
        font-size: 2.5rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
        line-height: 1.6;
        min-height: 120px;
        -webkit-line-clamp: 5;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.8125rem;
    }
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--silver-light);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.footer-tagline {
    color: var(--silver-medium);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transition: all var(--transition-base);
    color: #ffffff;
}

.social-links a svg,
.social-links a i {
    color: #ffffff;
    stroke: #ffffff;
    width: 18px;
    height: 18px;
}

.social-links a:hover {
    background: #ffffff;
    border-color: #000000;
    transform: translateY(-3px);
}

.social-links a:hover svg,
.social-links a:hover i {
    color: #000000;
    stroke: #000000;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--silver-light);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li,
.footer-contact li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a,
.footer-contact a {
    color: var(--silver-medium);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-silver);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--primary-silver);
    flex-shrink: 0;
    margin-top: 3px;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(168, 168, 168, 0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--silver-light);
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: var(--silver-dark);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-silver);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--black-tertiary);
    color: var(--silver-dark);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-legal a:hover {
    color: var(--primary-silver);
}

.separator {
    color: var(--black-tertiary);
}

/* ====================================
   PAGE HERO (Inner Pages)
   ==================================== */


.page-hero {
    padding-top: 70px;
    padding-bottom: var(--spacing-3xl);
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* STRONG VISIBLE GRID PATTERN */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(200, 200, 200, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(200, 200, 200, 0.25) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(200, 200, 200, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}


.breadcrumb {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--silver-dark);
}

.breadcrumb a {
    color: var(--silver-medium);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-silver);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-silver);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.page-hero-icon svg {
    width: 40px;
    height: 40px;
    color: var(--black-primary);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--silver-light);
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--silver-medium);
    line-height: 1.8;
}

.page-hero-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-hero-mascot img {
    max-width: 400px;
    border-radius: var(--radius-lg);
    /* Removed floating animation for stable appearance */
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet */
@media (max-width: 1199px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }
    
    .hero-container,
    .two-column-layout,
    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    

    .hero-content,
    .page-hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
        --spacing-xl: 2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -110%;
        width: 70%;
        max-width: 260px;
        height: 100vh;
        background: var(--black-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-md);
        transition: right var(--transition-base);
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: left;
        align-items: flex-start;
    }
    
    .cta-card {
        padding: var(--spacing-xl);
    }
    
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet (1200px and below) */
@media (max-width: 1199px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }
    
    .hero-container,
    .two-column-layout,
    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-visual,
    .page-hero-mascot {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-content,
    .page-hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .navbar-container {
        padding: 0 1.5rem;
    }
}

/* Mobile Landscape (768px to 991px) */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Mobile Portrait (767px and below) */
@media (max-width: 767px) {
    :root {
        --spacing-3xl: 2.5rem;
        --spacing-2xl: 2rem;
        --spacing-xl: 1.5rem;
    }
    
    /* Body and HTML */
    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
        position: fixed;
        width: 100%;
    }
    
    .navbar-container {
        padding: 0 1rem;
        align-items: center;
        justify-content: space-between;
        display: flex;
    }
    
    .logo {
        font-size: 1.125rem;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .logo img {
        width: 36px;
        height: 36px;
    }
    
    /* Mobile Menu Backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 998;
    }
    
    .nav-backdrop.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -110%;
        width: 70%;
        max-width: 260px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 1.25rem 2rem;
        gap: 0.75rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        width: 100%;
        padding: 0.75rem 0;
        text-align: left;
        display: block;
    }
    
    .nav-link::after {
        bottom: 0.25rem;
    }
    
    .hamburger {
        display: flex;
        padding: 0.5rem;
        z-index: 1000;
        flex-shrink: 0;
    }
    
    .hamburger span {
        width: 24px;
        height: 2px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 70px 0 2.5rem;
        text-align: center;
    }
    
    .hero-container {
        padding: 0;
        text-align: center;
        align-items: center;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--silver-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-badge .dot {
    color: var(--primary-silver);
    font-size: 1.5rem;
    line-height: 0;
}

.hero-title.massive {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--silver-medium);
    font-weight: 500;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-features .dot {
    color: var(--primary-silver);
}

.hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: stretch;
    }
    
    .hero-visual {
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
    
    .hero-image-wrapper {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Page Hero */
    

.page-hero {

        padding: 70px 0 2.5rem;
        text-align: center;
    }
    
    .page-hero-grid {
        text-align: center;
        align-items: center;
    }
    
    .page-hero-content {
        text-align: center;
        width: 100%;
    }
    
    .breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 1.25rem;
    }
    
    .page-hero-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .page-hero-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .page-hero p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        max-width: 100%;
    }
    
    .page-hero-mascot {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .page-hero-mascot img {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
    }
    
    /* Section Headers */
    .section-header {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .section-header.center {
        text-align: center;
    }
    
    .eyebrow {
        font-size: 0.8125rem;
        text-align: center;
        display: block;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 1.875rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .large-text {
        font-size: 1.125rem;
        line-height: 1.7;
        text-align: center;
    }
    
    /* Two Column Layout */
    .two-column-layout {
        text-align: center;
    }
    
    .column-left,
    .column-right {
        text-align: center;
    }
    
    .column-left p,
    .column-right p {
        text-align: center;
    }
    
    /* Grids */
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    .service-card h3,
    .service-card p {
        text-align: center;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    .service-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .card-link {
        justify-content: center;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .stat-label {
        font-size: 0.8125rem;
        text-align: center;
    }
    
    /* Portfolio */
    .portfolio-card {
        text-align: left;
    }
    
    .portfolio-info {
        padding: 1rem;
        text-align: left;
    }
    
    .portfolio-info h3 {
        font-size: 1.125rem;
        text-align: left;
    }
    
    .portfolio-info p {
        text-align: left;
    }
    
    .portfolio-tags {
        justify-content: flex-start;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-small {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* CTA Section */
    .cta-section {
        text-align: center;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .cta-content p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-logo {
        font-size: 1.125rem;
        justify-content: flex-start;
        margin: 0 0 1rem;
    }
    
    .footer-logo img {
        width: 36px;
        height: 36px;
    }
    
    .footer-tagline {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-column h4 {
        text-align: left;
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-links li {
        text-align: left;
    }
    
    .footer-contact {
        text-align: left;
    }
    
    .footer-contact li {
        justify-content: flex-start;
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
        font-size: 0.8125rem;
        align-items: flex-start;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
    }
    
    /* Newsletter Form */
    .newsletter-form {
        max-width: 100%;
    }
    
    .newsletter-form input {
        flex: 1;
        min-width: 0;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --spacing-3xl: 2rem;
        --spacing-2xl: 1.5rem;
        --spacing-xl: 1.25rem;
        --spacing-lg: 1rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--silver-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-badge .dot {
    color: var(--primary-silver);
    font-size: 1.5rem;
    line-height: 0;
}

.hero-title.massive {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--silver-medium);
    font-weight: 500;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-features .dot {
    color: var(--primary-silver);
}

.hero-title {
        font-size: 1.75rem;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 1.5rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
    }
    
    .nav-links {
        width: 90%;
        padding: 100px 1.25rem 1.5rem;
    }
}


/* Team Carousel */
.team-carousel-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    margin-top: var(--spacing-xl);
}

.team-carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.team-carousel-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card {
    flex: 0 0 calc(33.333% - 1rem);
    text-align: center;
    padding: var(--spacing-lg);
}

.team-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    color: var(--primary-silver);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Tech Marquee */
.tech-marquee-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #000000, transparent);
}

.tech-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #000000, transparent);
}

.tech-marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.tech-marquee-content {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
}

.tech-badge {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--silver-light);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: #fff;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 991px) {
    .team-card { flex: 0 0 calc(50% - 1rem); }
}

@media (max-width: 768px) {
    .team-card { flex: 0 0 100%; }
}

/* Vertical Marquee Override */
.tech-marquee-wrapper {
    height: 450px !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
}
.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
    left: 0 !important;
    width: 100% !important;
    height: 120px !important;
}
.tech-marquee-wrapper::before {
    top: 0 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,1), transparent) !important;
}
.tech-marquee-wrapper::after {
    bottom: 0 !important;
    top: auto !important;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent) !important;
}
.tech-marquee-track {
    flex-direction: column !important;
    animation: marquee-vertical 20s linear infinite !important;
}
.tech-marquee-content {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding-right: 0 !important;
    padding-bottom: 1.5rem !important;
    align-items: center !important;
}
.tech-badge {
    text-align: center !important;
    width: 250px !important;
}

@keyframes marquee-vertical {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}


/* Portfolio Alternating Marquee */
.portfolio-marquee-container {
    display: flex;
    gap: 1.5rem;
    height: 700px;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
    justify-content: center;
}

/* Fading edges to blend seamlessly into the background */
.portfolio-marquee-container::before,
.portfolio-marquee-container::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 10;
    pointer-events: none;
}

.portfolio-marquee-container::before {
    top: 0;
    background: linear-gradient(to bottom, var(--black-primary) 0%, transparent 100%);
}

.portfolio-marquee-container::after {
    bottom: 0;
    background: linear-gradient(to top, var(--black-primary) 0%, transparent 100%);
}

.portfolio-column {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.portfolio-track-down {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: scroll-down 20s linear infinite;
}

.portfolio-track-up {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: scroll-up 22s linear infinite;
}

/* Slightly different animation speeds for an organic feel */
.portfolio-column:nth-child(2) .portfolio-track-up {
    animation-duration: 24s;
}
.portfolio-column:nth-child(3) .portfolio-track-down {
    animation-duration: 18s;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0; /* Override glass-card default padding */
    height: 350px;
    display: flex;
    background: rgba(255, 255, 255, 0.02);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
}

.img-placeholder::after {
    content: 'Add Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes scroll-down {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@media (max-width: 1200px) {
    .portfolio-column:nth-child(5) { display: none; }
}

@media (max-width: 991px) {
    .portfolio-column:nth-child(4) { display: none; }
    .portfolio-marquee-container { height: 600px; }
}

@media (max-width: 768px) {
    .portfolio-column:nth-child(3) { display: none; }
    .portfolio-marquee-container { height: 500px; }
}


/* Portfolio Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-image-wrapper {
    width: 100%;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.project-image-wrapper::after {
    content: 'Add Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    color: var(--silver-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-desc {
    color: var(--silver-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}


/* ====================================
   GLOBAL MOBILE ALIGNMENT OVERRIDES
   ==================================== */

@media (max-width: 991px) {
    /* Hero Section Scaling */
    .hero-title.massive {
        font-size: 4rem;
        letter-spacing: -2px;
    }
    
    .page-hero-grid,
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content, .page-hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-features {
        justify-content: center;
    }
    
    /* Layout Scaling */
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        justify-content: center;
        text-align: center;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    /* Padding Scaling */
    .section-padding {
        padding: 4rem 0;
    }
    
    .page-hero {
        padding-top: 120px;
        padding-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    /* Typography Scaling */
    .hero-title.massive {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Team Carousel Scaling */
    .team-carousel-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
    
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
    
    /* Tech Stack Scaling */
    .portfolio-marquee-container {
        height: 400px !important;
        gap: 1rem;
    }
    
    .portfolio-column {
        min-width: 140px;
    }
    
    /* Hide some columns on mobile for better fit */
    .portfolio-column:nth-child(4),
    .portfolio-column:nth-child(5) {
        display: none !important;
    }
    
    /* Footer Scaling */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    
    .social-links, .footer-contact li {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-legal {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Ultra-small screens */
    .hero-title.massive {
        font-size: 2.5rem;
    }
    
    .portfolio-column:nth-child(3) {
        display: none !important;
    }
    
    .tech-badge {
        width: 100% !important;
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* Services Intro Redesign */
.services-intro-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.eyebrow-theme {
    color: var(--primary-silver);
    letter-spacing: 3px;
    font-weight: 600;
}

.services-intro-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.gradient-text-theme {
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-intro-subtitle {
    font-size: 1.25rem;
    color: var(--silver-medium);
    margin-bottom: 2rem;
}

.services-intro-paragraph {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    line-height: 1.5;
    color: var(--silver-light);
    margin-bottom: 3rem;
    max-width: 700px;
}

.btn-wide-purple {
    background: linear-gradient(135deg, #a87ffb 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(168, 127, 251, 0.3);
    width: 100%;
    max-width: 500px;
    justify-content: center;
}

.btn-wide-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(168, 127, 251, 0.4);
    background: linear-gradient(135deg, #b895fc 0%, #9c73f7 100%);
}

@media (max-width: 768px) {
    .services-intro-block {
        padding: 2rem 1rem;
    }
}


.btn-wide {
    width: 100%;
    max-width: 500px;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
}




/* ====================================
   TEAM MARQUEE ANIMATION
   ==================================== */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: var(--spacing-lg);
    width: max-content;
    animation: scrollMarquee 20s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--spacing-lg) / 2))); }
}

.text-only-card {
    width: 280px;
    height: 280px;
    flex: 0 0 auto;
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(10, 10, 10, 0.5);
}

.text-only-card:hover {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.9);
}

.card-default-content {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(15px);
}

.text-only-card:hover .card-default-content {
    transform: translateY(-20px);
}

.card-hover-content {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 0 var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-only-card:hover .card-hover-content {
    bottom: 25px;
    opacity: 1;
    visibility: visible;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--silver-medium);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.text-only-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.text-only-card .team-role {
    color: var(--silver-dark);
    font-size: 1rem;
    margin: 0;
}


/* ====================================
   LIGHTBOX
   ==================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 300;
    color: var(--silver-light);
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--silver-light);
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: default;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--silver-light);
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    max-width: 90%;
}

.lightbox-counter {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    color: var(--silver-light);
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    z-index: 10000;
}

/* Mobile Lightbox Adjustments */
@media (max-width: 767px) {
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-img {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-caption {
        bottom: 1rem;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .lightbox-counter {
        top: 1rem;
        left: 1rem;
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
}
