/* CSS Reset & Variables */
:root {
    --bg-color: #ffffff; /* White background */
    --surface-color: #f8f9fa; /* Light grey surface */
    --text-main: #24274E; /* Navy blue text from logo */
    --text-muted: #52525b;
    --accent-blue: #0055ff;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: initial; } /* Disabled for Lenis */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 85, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(36, 39, 78, 0.03) 0px, transparent 50%),
        radial-gradient(#00000008 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 20px 20px;
    background-position: center;
    color: var(--text-main);
    overflow-x: hidden;
    cursor: default;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Hide scrollbar globally for clean aesthetic */
::-webkit-scrollbar {
    display: none;
}
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 4vw; }

/* Custom Cursor */
.cursor {
    position: fixed; top: 0; left: 0; width: 10px; height: 10px;
    background: var(--text-main); border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
    transition: width 0.3s, height 0.3s;
}
.cursor-follower {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px;
    border: 1px solid rgba(36, 39, 78, 0.5); border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor.active { width: 0; height: 0; }
.cursor-follower.active {
    width: 80px; height: 80px; background: rgba(36, 39, 78, 0.1); border-color: transparent;
}

/* Preloader */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color); z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.preloader-logo-wrapper {
    position: relative;
    width: 200px;
    height: auto;
}
.preloader-logo-base {
    width: 100%;
    height: auto;
    opacity: 0.1; /* Grayed out base logo */
    filter: grayscale(100%);
}
.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    overflow: hidden;
}
.preloader-logo-fill {
    width: 200px; /* Must match wrapper width */
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}
.preloader-counter { display: none; } /* Hide the old text counter but keep in DOM for JS */

/* Floating Controls (Top Right) */
.floating-controls {
    position: fixed; top: 40px; right: 5vw; z-index: 9000;
    display: flex; align-items: center; gap: 15px;
}

/* Circular Language Button */
.lang-switch-circle {
    width: 50px; height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-switch-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Hamburger Menu Button */
.menu-btn {
    width: 50px; height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 9000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.menu-btn-lines, .menu-btn-lines::before, .menu-btn-lines::after {
    width: 24px; height: 2px; background: var(--text-main); position: relative; transition: all 0.3s ease;
    border-radius: 2px;
}
.menu-btn-lines::before { content: ''; position: absolute; top: -8px; left: 0; }
.menu-btn-lines::after { content: ''; position: absolute; top: 8px; left: 0; }

/* Menu Open State */
.nav-active .menu-btn-lines { background: transparent; }
.nav-active .menu-btn-lines::before { top: 0; transform: rotate(45deg); }
.nav-active .menu-btn-lines::after { top: 0; transform: rotate(-45deg); }

/* Navigation Overlay */
.nav-overlay {
    position: fixed; top: -100%; left: 0; width: 100%; height: 100vh;
    background: var(--surface-color); z-index: 8000;
    display: flex; align-items: center; justify-content: center;
    transition: top 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-overlay.open { top: 0; }
.nav-content { display: flex; flex-direction: column; gap: 40px; text-align: center; }
.nav-link { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; text-transform: uppercase; -webkit-text-stroke: 1px rgba(0,51,102,0.2); color: transparent; transition: 0.4s; }
.nav-link:hover { color: var(--text-main); -webkit-text-stroke: 1px transparent; }

/* Hero Section */
.hero { height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.grid-overlay {
    width: 100%; height: 100%;
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.hero-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo-link {
    display: inline-block;
    margin-bottom: 20px;
    cursor: pointer;
    z-index: 10;
}
.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.hero-main-logo {
    max-width: 550px;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
}
.hero-title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 6rem); font-weight: 900; line-height: 1; text-transform: uppercase; margin-bottom: 50px; }
.accent { color: var(--accent-blue); }
.hero-subtitle { font-size: 1.2rem; max-width: 500px; color: var(--text-muted); opacity: 0; transform: translateY(20px); }

.scroll-indicator { position: absolute; bottom: 50px; left: 4vw; display: flex; align-items: center; gap: 15px; opacity: 0; }
.mouse { width: 25px; height: 40px; border: 2px solid rgba(0,51,102,0.3); border-radius: 15px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--text-main); border-radius: 50%; animation: scroll 2s infinite; }
@keyframes scroll { 0% { top: 8px; opacity: 1; } 100% { top: 24px; opacity: 0; } }

.about { 
    padding: 150px 0; 
    background: transparent;
}
.glass-card {
    background: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(24px); 
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 40px 100px rgba(36, 39, 78, 0.2), 0 15px 35px rgba(36, 39, 78, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    width: calc(100% - 40px);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}
.glass-card:hover {
    transform: translateY(-10px) translateZ(0);
    -webkit-transform: translateY(-10px) translateZ(0);
    box-shadow: 0 50px 120px rgba(36, 39, 78, 0.25), 0 20px 40px rgba(36, 39, 78, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
/* Typography & Utilities */
.huge-text { font-family: var(--font-heading); font-size: 6rem; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--text-main); margin-bottom: 20px; letter-spacing: -2px; }
.section-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--text-main); margin-bottom: 30px; }
.scramble-target { opacity: 0; }
.reveal-text { opacity: 1; } /* Restore normal text */
.reveal-text p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}
.sew-target .container { clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%); }

/* Services Section */
.services { padding: 150px 0 50px; background: transparent; text-align: center; }
.services-list-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 40px;
    max-width: 900px;
    margin: 60px auto 0;
}
.service-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    width: 320px;
    border-bottom: 1px solid rgba(36, 39, 78, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-align: left;
}
.service-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-list-content {
    display: flex;
    flex-direction: column;
}
.service-explore-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}
.service-list-item:hover .service-explore-text {
    opacity: 1;
    transform: translateY(0);
}
.service-list-item:hover {
    transform: translateX(10px);
    border-bottom-color: var(--accent-blue);
}
.service-list-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.service-list-item:hover .service-list-img {
    transform: scale(1.1);
}
.service-list-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: -0.5px;
    margin: 0;
}

/* References Marquee Section */
.references-marquee {
    padding: 80px 0;
    overflow: hidden;
    background: transparent;
}
.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    width: 200%;
}
.marquee-content {
    display: flex;
    align-items: center;
    animation: scroll-marquee 20s linear infinite;
}
.marquee-content span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    text-transform: uppercase;
    padding: 0 40px;
}
.marquee-content span.dot {
    font-size: 2rem;
    -webkit-text-stroke: 0;
    color: var(--accent-blue);
    padding: 0 20px;
}
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Contact Section */
.contact { padding: 150px 0 50px; background: transparent; min-height: 100vh; display: flex; align-items: center; }
.contact-content { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.huge-text { font-family: var(--font-heading); font-size: clamp(5rem, 15vw, 20rem); font-weight: 900; line-height: 0.8; margin-bottom: 50px; color: var(--text-main); }
.contact-info-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 40px; }
.contact-info-item { flex: 1; min-width: 220px; text-align: center; }
.contact-info-item svg { stroke: var(--text-main); margin-bottom: 20px; }
.contact-info-item h4 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main); margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }
.contact-info-item p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.contact-link { color: var(--accent-blue); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.contact-link:hover { color: var(--text-main); }
/* Global Footer */
.footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 60px 0 30px;
    margin-top: 40px;
    position: relative;
    z-index: 100;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-info {
    flex: 1;
    max-width: 400px;
}
.footer-links {
    flex: 2;
}
.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--text-muted);
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--text-main);
}
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-bottom-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
.footer-credit {
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 600;
}
.footer-credit img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .services-container { width: 100%; flex-direction: column; padding-bottom: 100px; }
    .services-wrapper { height: auto; }
    .service-card { width: 100%; height: auto; }
}

@media (max-width: 992px) {
    .glass-card {
        padding: 40px 15px;
    }
    .services-list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-content: center;
        margin-top: 40px;
    }
    .service-link-wrapper {
        display: block;
        height: 100%;
    }
    .service-list-item {
        width: 100% !important;
        height: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding: 20px 10px;
        border: 1px solid rgba(36, 39, 78, 0.05);
        border-radius: 12px;
        background: rgba(36, 39, 78, 0.02);
    }
    .service-list-img {
        margin-right: 0;
        margin-bottom: 15px;
        width: 60px;
        height: 60px;
    }
    .service-list-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
        line-height: 1.3;
    }
}
@media (max-width: 768px) {
    .contact-info-grid {
        gap: 30px;
    }
    .contact-info-item {
        width: 100%;
    }
    .footer-bottom-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-credit {
        margin-top: 5px;
    }
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
}
.hero, .about, .services, .contact { position: relative; z-index: 100; }

/* Bracket Style Button */
.btn-bracket {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 3px;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    outline: none;
}

.btn-bracket::before,
.btn-bracket::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 100%;
    top: 0;
    border: 2px solid var(--accent-blue);
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    box-sizing: border-box;
}

.btn-bracket::before {
    left: 0;
    border-right: none;
}

.btn-bracket::after {
    right: 0;
    border-left: none;
}

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

.btn-bracket:hover::before,
.btn-bracket:hover::after {
    width: 50.5%;
    background: rgba(0, 195, 255, 0.05);
}

.btn-bracket:active {
    transform: translateY(1px);
}

/* Hide Google Translate Toolbar */
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* Static Dotted Background for Subpages */
.dotted-bg-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: #FFFFFF;
}
