@import url('assets/Avenir/font.css');

@font-face {
    font-family: 'Avenir';
    src: url('assets/Avenir/Avenir-Light.woff2') format('woff2'),
        url('assets/Avenir/Avenir-Light.woff') format('woff'),
        url('assets/Avenir/Avenir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('assets/Avenir/Avenir-Book.woff2') format('woff2'),
        url('assets/Avenir/Avenir-Book.woff') format('woff'),
        url('assets/Avenir/Avenir-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('assets/Avenir/Avenir-Roman.woff2') format('woff2'),
        url('assets/Avenir/Avenir-Roman.woff') format('woff'),
        url('assets/Avenir/Avenir-Roman.ttf') format('truetype');
    font-weight: 450;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('assets/Avenir/Avenir-Medium.woff2') format('woff2'),
        url('assets/Avenir/Avenir-Medium.woff') format('woff'),
        url('assets/Avenir/Avenir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('assets/Avenir/Avenir-Heavy.woff2') format('woff2'),
        url('assets/Avenir/Avenir-Heavy.woff') format('woff'),
        url('assets/Avenir/Avenir-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('assets/Avenir/Avenir-Black.woff2') format('woff2'),
        url('assets/Avenir/Avenir-Black.woff') format('woff'),
        url('assets/Avenir/Avenir-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    /* Brand Colors (Hash Format) */
    --bg-dark: #040e29;
    --primary: #0051ff;
    --secondary: #bd00ff;
    --accent: #00f2ff;

    --text: #ffffff;
    --text-muted: #aab2c0;

    /* RGB Components (Reduced for opacity control) */
    --bg-rgb: 4, 14, 41;
    --primary-rgb: 0, 81, 255;
    --accent-rgb: 0, 242, 255;

    /* System Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Avenir', sans-serif;

    --gradient-main: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--secondary) 100%);

    /* Golden Ratio Design System */
    --phi: 1.618;
    --sp-xs: 0.618rem;
    --sp-sm: 1rem;
    --sp-md: 1.618rem;
    --sp-lg: 2.618rem;
    --sp-xl: 4.236rem;
    --sp-xxl: 6.854rem;

    /* Typographic Scale (Golden Ratio) */
    --fs-xs: 0.618rem;
    /* 1/phi */
    --fs-sm: 0.809rem;
    /* 1/phi^0.5 */
    --fs-base: 1rem;
    /* base */
    --fs-md: 1.272rem;
    /* phi^0.5 */
    --fs-lg: 1.618rem;
    /* phi */
    --fs-xl: 2.058rem;
    /* phi^1.5 */
    --fs-2xl: 2.618rem;
    /* phi^2 */
    --fs-3xl: 3.330rem;
    /* phi^2.5 */
    --fs-4xl: 4.236rem;
    /* phi^3 */
    --fs-5xl: 6.854rem;
    /* phi^4 */

    /* Standardized Animation Variables */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Lenis Smoothing Helpers */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

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

html {
    font-size: 1rem;
    scroll-padding-top: 120px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body.loading {
    height: 100vh;
}

body.is-dragging {
    user-select: none;
    cursor: grabbing !important;
}

body.is-dragging * {
    pointer-events: none;
}

body.is-dragging #hero-canvas,
body.is-dragging .hero {
    pointer-events: all;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out-expo);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.2);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1440px;
    /* Standard wide container */
    margin: 0 auto;
    /* Responsive padding */
    padding: 0 var(--sp-md);
    position: relative;
}

/* Glass Panels */
.glass-panel {
    background: rgba(var(--bg-rgb), 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-xxl) 0;
    top: 0;
    min-height: 100vh;
    z-index: 1;
    position: relative;
    /* separation shadow */
    background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%), var(--bg-dark);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.6rem 0;
    transition: all 0.5s var(--ease-out-expo);
    background-color: transparent;
    backdrop-filter: blur(0px);
}

.header.scrolled {
    background-color: rgba(var(--bg-rgb), 0.85);
    padding: 1.10rem 0;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
}

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

.header-brand {
    display: inline-flex;
    transition: transform 0.3s var(--ease-out-expo);
    cursor: pointer;
}

.header-brand img {
    height: 65px;
    width: auto;
    display: block;
    transition: height 0.5s var(--ease-out-expo);
    /* Light Blue Brand Tint */
}

.header.scrolled .header-brand img {
    height: 45px;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 900;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    position: relative;
    text-transform: uppercase;

    text-shadow: 0 2px 0px rgba(0, 0, 0, 0.2);
    transition: color 0.3s var(--ease-out-expo);
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-main);
    transition: width 0.3s var(--ease-out-expo);
}

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



/* Typography Helpers */


.section-label {
    font-size: var(--fs-lg);
    /* High impact identifiers */
    text-transform: uppercase;

    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.section-line {
    width: 60px;
    height: 6px;
    background: var(--gradient-main);
    margin-bottom: 2rem;
    display: inline-block;
    border-radius: 99px;
}



.gradient-text {
    background: linear-gradient(to right, var(--accent), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    /* Ensures gradient spans text width only */
}

.headline-number {
    font-family: var(--font-main);
    font-size: var(--fs-4xl);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
    margin-bottom: 0.5rem;
    display: block;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo);
}

.item-title {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    transition: color 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.item-desc {
    font-size: var(--fs-base);
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-sm);
    margin-top: 4rem;
}

.philosophy-item {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    height: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 0;
    padding-top: 160px;
    /* Header space */
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.13) 0%, rgba(var(--primary-rgb), 0.08) 38%, transparent 75%);
    background-size: cover;
    background-position: center;
}

section:not(.hero) {
    z-index: 10;
    position: relative;
    background-color: var(--bg-dark);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: blur(30px);
    opacity: 0;
    transition: filter 3s var(--ease-out-expo), opacity 3s var(--ease-out-expo);
    will-change: filter, opacity;
}

body.loaded #hero-canvas {
    filter: blur(0);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--sp-sm);
}

.hero-subtitle {
    font-size: var(--fs-base);
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.hero-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    text-transform: uppercase;
}

.hero-title-container {
    text-shadow: 0px 0px 16px rgba(0, 0, 0, 0.5);
}

.hero-title-main {
    font-size: var(--fs-5xl);
    font-weight: 900;
    display: inline-block;
    line-height: 1;
    color: var(--text-light);
}

.ml11 {
    font-weight: 900;
}

.ml11 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    line-height: 1;
    overflow: hidden;
}

.ml11 .line {
    opacity: 0;
    position: absolute;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent);
    /* Pink */
    transform-origin: 0 50%;
    top: 0;
    z-index: 2;
}

.ml11 .letter {
    display: inline-block;
    line-height: 1em;
    opacity: 0;
    /* Hide initially for animation reveal */
}


.hero-desc {
    font-size: var(--fs-md);
    color: var(--text);
    font-weight: 700;
    text-transform: none;
    padding: 0 25%;
}

.hero-cta {
    display: flex;
    gap: var(--sp-sm);
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: 0 var(--sp-md);
    height: 42px;
    min-width: 170px;
    border-radius: 50px;
    font-size: 0.95rem;
    /* Following specific user request */
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--text);
    box-shadow: 0 5px 10px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.5);
    filter: brightness(1.1);
}

.btn-simple {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.btn-simple:hover {
    color: var(--text-light);
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.btn-simple span {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-simple:hover span {
    transform: translateX(5px);
}





/* Text Reveal Animation */
.split-chars-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.char {
    display: inline-block;

    /* Scroll Sync Calculation */
    /* active = clamp(0, (progress * total) - index + 0.5, 1) */
    --val: calc((var(--reveal-progress, 0) * var(--total-chars, 0)) - var(--char-index, 0) + 0.5);
    --active: clamp(0, var(--val), 1);

    opacity: calc(0.1 + (0.9 * var(--active)));

    transition: none;
    /* Controlled via JS variable updates */
    will-change: opacity, transform;
}



.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    opacity: 0;
    animation: fadeIn 2s 2s forwards;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    transition: border-color 0.3s;
}

.scroll-down:hover {
    border-color: rgba(255, 255, 255, 0.8);
}



/* Scrolling Wheel Dot */
.scroll-down::before {
    content: '';
    width: 4px;
    height: 6px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}





/* About Section */


/* About Section - Swiss Layout */


.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.about-bg-logo-container {
    position: absolute;
    top: 0;
    right: 1.5rem;
    width: 35%;
    height: 100%;
}

.about-bg-logo {
    width: 100%;
    filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.about-info-col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    /* Ensure content pushes the height for sticky to work */
}

/* Inherit standard header spacing */
.about-text-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-sm);
    margin-top: 3rem;
    position: relative;
    background: transparent;
}

/* Using global typography */
.about-item {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    gap: var(--sp-sm);
    height: 100%;
}

/* Scroll Reveal Animation Targets */
.about-item,
.project-card,
.philosophy-item,
.section-header,
.projects-cta,
.contact-info {
    opacity: 0;
    transform: translateY(60px);
    /* Transitions controlled by JS for sync-scroll */
}







.about-text-col p {
    font-size: var(--fs-md);
    color: var(--text);
    font-weight: normal;
}





/* Services Section */

/* Typography Update - Swiss Style */
.section-title {
    font-size: var(--fs-4xl);
    text-transform: uppercase;
    line-height: 1;

    font-weight: 900;
    margin-bottom: 3rem;
    max-width: 1024px;
    position: relative;
}




.section-desc {
    font-size: var(--fs-md);
    /* Consistently small subtext */
    /* Subtext reduction */
    max-width: 600px;
    margin-bottom: 4rem;
    color: var(--text);
}

/* Services List - Premium Interactive Layout */
.services-list-container {
    margin-top: 4rem;
}

.services-list-ui {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    background: transparent;
    border: none;
    gap: var(--sp-sm);
}

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--sp-lg);
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}







/* */

/* Item Header */
.service-header {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    margin-bottom: 2rem;
}





/* Item Description */
.service-desc {
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align items to right */
    text-align: right;
    /* Align text to right */
    gap: var(--sp-sm);
}

.service-desc p {
    /* Style moved to .item-desc */
    max-width: 90%;
    /* prevent full width stretch for better right align feel */
}

.service-arrow {
    align-self: flex-end;
    /* Arrow at bottom right */
    font-size: 2.5rem;
    opacity: 0.2;
    transition: all 0.4s var(--ease-out-expo);
}


/* Responsive List */


/* Projects Section */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: var(--sp-xl);
    gap: var(--sp-sm);
    align-items: start;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    cursor: pointer;
    background: transparent;
    border: none;
    overflow: visible;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background: var(--bg-dark);
}

.project-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    pointer-events: none;
}

.project-card:hover .project-image-wrapper::after {
    opacity: 1;
}


.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: grayscale(20%);
}

.project-card:hover .project-image {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.project-info {
    position: relative;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
}

.project-category {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-card:hover .item-title::before {
    width: 60px;
}

.project-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    opacity: 1;
    transform: none;
    text-transform: uppercase;
}

.project-link span {
    color: var(--accent);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.project-card:hover .project-link span {
    transform: translateX(8px);
}

.projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
    width: 100%;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-sm);
    margin-top: var(--sp-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
}

.philosophy-item {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.item-desc {
    max-width: 90%;
}

.philosophy-title {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.philosophy-quote {
    font-size: var(--fs-3xl);
    font-weight: 900;
    line-height: 1.2;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.contact-links,
.contact-address,
.contact-info {
    padding: var(--sp-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.contact-title {
    font-size: var(--fs-xl);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
}

.contact-big-link {
    font-size: var(--fs-4xl);
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-big-link:hover {
    color: var(--accent);
    transform: translateX(20px);
}

.contact-address {
    font-size: var(--fs-xl);
    font-weight: 300;
    color: var(--text);
    line-height: 1.4;
    max-width: 1000px;
    opacity: 0.8;
}

.footer {
    padding: 4rem 0 2.5rem;
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-muted);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary), var(--secondary), transparent);
    opacity: 0.8;
    z-index: 2;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-col {
    align-items: flex-start;
}

.contact-col {
    align-items: flex-end;
    text-align: right;
}


.footer-heading {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.footer-desc {
    max-width: 340px;
    font-size: var(--fs-base);
    line-height: 1.7;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
    width: fit-content;
    position: relative;
    opacity: 0.7;
    text-transform: uppercase;
    font-size: var(--fs-base);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
    opacity: 1;
}

.footer-address {
    line-height: 1.6;
    font-style: normal;
    opacity: 0.7;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.footer-contact-link {
    color: var(--text);
    font-size: var(--fs-md);
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-contact-link:hover {
    color: var(--accent);
}

.footer-logo-img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    opacity: 0.5;
}

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

.footer-legal a {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--accent);
}

.legal-sep {
    opacity: 0.1;
}

.footer-social {
    display: flex;
    gap: var(--sp-sm);
    margin-top: 1rem;
}

.social-link {
    color: var(--text-muted);
    font-size: var(--fs-md);
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

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

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.8s ease;
    overflow: hidden;
}

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

.loader-content {
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content img {
    width: 50%;
    transition: filter 1.5s ease, opacity 1.5s ease;
}

.loader-content.blur-out img {
    filter: blur(20px);
    opacity: 0;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1005;
    padding: 10px;
    flex-direction: column;
    gap: 7px;
}

.mobile-nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.mobile-nav-toggle:hover span {
    background-color: var(--accent);
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bg-rgb), 0.8);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #020617;
    z-index: 1002;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
    right: 0;
}


.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    text-align: center;
    width: 100%;
}

.drawer-link {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.drawer-social {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
    z-index: 10;
}

.drawer-social .social-link {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.drawer-social .social-link:hover {
    color: var(--accent);
}

.mobile-nav-drawer.open .drawer-link {
    opacity: 1;
    transform: translateX(0);
    transition-duration: 1.2s;
}

.mobile-nav-drawer.open .mobile-nav-list li:nth-child(1) .drawer-link {
    transition-delay: 0.1s;
}

.mobile-nav-drawer.open .mobile-nav-list li:nth-child(2) .drawer-link {
    transition-delay: 0.15s;
}

.mobile-nav-drawer.open .mobile-nav-list li:nth-child(3) .drawer-link {
    transition-delay: 0.2s;
}

.mobile-nav-drawer.open .mobile-nav-list li:nth-child(4) .drawer-link {
    transition-delay: 0.25s;
}

.mobile-nav-drawer.open .mobile-nav-list li:nth-child(5) .drawer-link {
    transition-delay: 0.3s;
}

.drawer-link:hover {
    color: var(--accent);
}

@media screen and (min-width: 300px) and (max-width: 450px) {

    .header.scrolled .header-brand img,
    .header-brand img {
        height: 35px;
    }

    section {
        padding: 3rem 0;
    }

    .hero-content {
        gap: var(--sp-sm);
    }

    .hero-title {
        font-size: var(--fs-base);
    }

    .hero-title-main {
        font-size: var(--fs-xl) !important;
    }

    .hero-desc,
    .hero-subtitle {
        font-size: var(--fs-sm) !important;
        padding: 0 4%;
    }

    .contact-title {
        font-size: var(--fs-md) !important;
    }
}

@media only screen and (max-width: 600px) {
    section {
        padding: 3rem 0;
    }

    .about-content {
        flex-direction: column;
    }

    .about-info-col {
        width: 100%;
    }

    .scroll-down {
        display: none;
    }

    .hero-title {
        font-size: var(--fs-base);
    }

    .hero-title-main {
        font-size: var(--fs-xl);
    }

    .hero-desc,
    .hero-subtitle {
        font-size: var(--fs-base);
    }

    .hero-desc {
        padding: 0 20%;
    }

    .section-title {
        font-size: var(--fs-3xl);
    }

    .section-desc {
        font-size: var(--fs-md);
    }

    .project-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact-title {
        font-size: var(--fs-lg);
    }

    .contact-big-link {
        font-size: var(--fs-xl) !important;
    }

    .contact-address {
        font-size: var(--fs-lg) !important;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--sp-sm);
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .footer-logo {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--sp-sm);
    }

    .footer-legal {
        justify-content: center;
    }

    .service-item {
        padding: 2rem;
        min-height: 370px;
    }

    .service-header {
        margin-bottom: 1rem;
    }

    .service-desc {
        gap: var(--sp-sm);
    }
}

@media only screen and (min-width: 600px) {
    .hero-title {
        font-size: var(--fs-lg);
    }

    .hero-title-main {
        font-size: var(--fs-3xl);
    }

    .hero-desc,
    .hero-subtitle {
        font-size: var(--fs-md);
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 600px) and (max-width: 992px) {
    .contact-title {
        font-size: var(--fs-lg);
    }

    .contact-big-link,
    .contact-address {
        font-size: var(--fs-2xl);
    }

    section {
        padding: 3rem 0;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-sm);
    }

    .nav-col,
    .contact-col {
        align-items: flex-end;
        text-align: right;
    }
}

@media only screen and (min-width: 992px) {
    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-title-main {
        font-size: var(--fs-5xl);
    }

    .services-list-ui {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (min-width: 1200px) {
    section {
        padding: var(--sp-xxl) 0;
    }

    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-title-main {
        font-size: var(--fs-5xl);
    }
}

@media only screen and (min-width: 1440px) {
    .hero-desc {
        font-size: var(--fs-md);
    }

    .hero-title {
        font-size: var(--fs-4xl);
    }

    .hero-title-main {
        font-size: var(--fs-5xl);
    }
}

@media only screen and (max-width: 1200px) {
    .about-bg-logo-container {
        display: none;
    }
}

@media only screen and (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

}