/* Font Face - Medium.otf for all text/letters */
@font-face {
    font-family: 'Medium';
    src: url('medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Face - LexendExa-Black for everything else */
@font-face {
    font-family: 'LexendExa-Black';
    src: url('LexendExa-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #ffffff;
    --text-color: #ffffff;
    --bg-color: #000000;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Floating Liquid Glass */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: calc(1200px + 40px);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22.5px 25px;
    margin: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 2px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 2px 2px rgba(255, 255, 255, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    height: 36px;
    flex-shrink: 0;
    max-width: calc(50% - 30px);
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

.logo-img {
    height: 100%;
    width: auto;
    max-height: 32px;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: 'Medium', sans-serif;
    color: var(--text-color);
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 42px;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    margin-left: auto;
}

.menu-icon {
    display: inline-block;
    color: inherit;
}

.close-icon {
    display: none;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: inline-block;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: 'Medium', sans-serif;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(20px);
    animation: blurFadeOut 2s ease-out 0.5s forwards;
}

@keyframes blurFadeOut {
    from {
        filter: blur(20px);
    }
    to {
        filter: blur(5px);
    }
}

.dot-grid-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dot-grid-canvas {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.hero-title {
    font-family: 'Medium', sans-serif;
    font-size: clamp(36px, 6.5vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -2px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
}

.hero-title .line {
    display: block;
    text-align: center;
    white-space: nowrap;
    transition: filter 0.3s ease;
    cursor: default;
    filter: blur(0px);
    font-size: inherit; /* Inherit from parent for proper scaling */
    line-height: 1.1;
    margin-bottom: 0;
}

.hero-title .line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
}

/* Get a Quote Button - Submit Button Style */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Medium', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.submit-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(0) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.submit-button:active {
    transform: translateY(0) scale(1);
}

.submit-button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Hero Brands Section - Small logos at bottom of hero */
.hero-brands {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, -10px);
    z-index: 3;
    width: 100%;
    max-width: 800px;
    padding: 0 20px 10px 20px;
    text-align: center;
}

.hero-brands-title {
    font-family: 'Medium', sans-serif;
    font-size: clamp(9px, 1.08vw, 13px);
    font-weight: 600;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 0;
    padding-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    animation: fadeInTitle 1s ease-in-out 1s;
    animation-fill-mode: forwards;
}

.hero-brands-title .special-char {
    font-family: 'LexendExa-Black', sans-serif;
}

.hero-brands-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s;
    animation-fill-mode: forwards;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-brands-scroll {
    display: flex;
    animation: scroll-hero-brands 20s linear infinite;
    gap: 80px;
    width: fit-content;
    will-change: transform;
}

.hero-brand-logo {
    flex-shrink: 0;
    width: auto;
    min-width: 0;
    height: 162px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin: 0;
    padding: 0;
}

.hero-brand-logo:hover {
    opacity: 1;
}

.hero-brand-logo img {
    width: auto;
    height: 162px;
    max-width: none;
    max-height: 162px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
}

@keyframes scroll-hero-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Calculate exact width: 9 logos × 600px + 8 gaps × 80px = 6040px */
        /* Using approximate width since logos are now auto-sized */
        transform: translateX(calc(-1 * (600px * 9 + 80px * 8)));
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInTitle {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.9;
    }
}

.fileUploadWrapper {
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

#file {
    display: none;
}

.fileUploadWrapper label {
    cursor: pointer;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fileUploadWrapper label svg {
    height: 24px;
}

.fileUploadWrapper label svg path {
    transition: all 0.3s;
}

.fileUploadWrapper label svg circle {
    transition: all 0.3s;
}

.fileUploadWrapper label:hover svg path {
    stroke: #fff;
}

.fileUploadWrapper label:hover svg circle {
    stroke: #fff;
    fill: #3c3c3c;
}

.fileUploadWrapper label:hover .tooltip {
    display: block;
    opacity: 1;
}

.tooltip {
    position: absolute;
    top: -40px;
    display: none;
    opacity: 0;
    color: white;
    font-size: 10px;
    text-wrap: nowrap;
    background-color: #000;
    padding: 6px 10px;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.596);
    transition: all 0.3s;
}


/* Brands Section */
.brands-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #000000 0%, #050505 25%, #0a0a0a 50%, #050505 75%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background-attachment: fixed;
    overflow: hidden;
}

.brands-title {
    font-family: 'Medium', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E"),
        rgba(255, 255, 255, 1);
    background-size: 120px 120px, 100%;
    background-blend-mode: overlay, normal;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
}

.brands-title .brands-line {
    display: block;
    line-height: 1.2;
}

.brands-title .special-char {
    font-family: 'LexendExa-Black', sans-serif;
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E"),
        rgba(255, 255, 255, 1);
    background-size: 120px 120px, 100%;
    background-blend-mode: overlay, normal;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
}

.brands-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-scroll {
    display: flex;
    animation: scroll-brands 20s linear infinite;
    gap: 10px;
    width: fit-content;
    will-change: transform;
}

.brand-logo {
    flex-shrink: 0;
    width: 300px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-5px);
}

.brand-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Calculate exact width: 8 logos × 300px + 7 gaps × 10px = 2470px */
        transform: translateX(calc(-1 * (300px * 8 + 10px * 7)));
    }
}

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

/* Projects Section */
.projects {
    padding: 50px 0px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(5px);
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
    mix-blend-mode: lighten;
}

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

.section-title {
    font-family: 'Medium', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 0px;
    letter-spacing: -1px;
}

.section-title.clickable-title {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.section-title.clickable-title:hover {
    opacity: 0.7;
}

.projects-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    width: 100%;
}

.projects-grid .project-card {
    width: 100%;
    max-width: 100%;
}

.project-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
}

a.project-card {
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
}

/* Project Visual Cards */
.project-visual {
    width: 100%;
    aspect-ratio: 8 / 3;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #000;
}

.project-card:hover .project-visual {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Medium MENA Card */
.project-medium-mena {
    background: linear-gradient(135deg, #6B9BD2 0%, #E8F0F5 50%, #FFFFFF 100%);
    color: #000;
}

.project-card:hover .project-medium-mena {
    background: linear-gradient(135deg, #7BA9DD 0%, #F0F7FB 50%, #FFFFFF 100%);
}


/* Project Info Below Cards */
.project-info {
    margin-top: 30px;
    text-align: left;
}

.project-title {
    font-family: 'Medium', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterPopIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}


/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}


.project-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, color 0.3s ease;
}

.social-icon.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
}

/* Stagger animation delays for social icons */
.social-icon:nth-child(1) {
    transition-delay: 0.1s;
}

.social-icon:nth-child(2) {
    transition-delay: 0.2s;
}

.social-icon:nth-child(3) {
    transition-delay: 0.3s;
}

/* Social Media Section */
.social {
    padding: 80px 20px;
    text-align: center;
    background-color: #0a0a0a;
}

.social-title {
    font-family: 'Medium', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    text-decoration: none;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    text-align: center;
    background-color: var(--bg-color);
}

.contact-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-email {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-page-button {
    text-decoration: none;
}

/* Footer */
.footer {
    padding: 60px 40px;
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 0 0 auto;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    flex: 0 0 auto;
    text-align: right;
}

.footer-title {
    font-family: 'Medium', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-direction: row;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-link:hover {
    opacity: 0.7;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    font-weight: normal;
    color: #ffffff;
}

.footer-email {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    font-weight: normal;
    color: #ffffff;
}

.footer-y-tunnus {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    font-weight: normal;
    color: #ffffff;
}

.footer-links-link {
    display: block;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

.footer-links-link:hover {
    opacity: 1;
}

/* Links Page */
.links-content {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.links-title {
    font-family: 'Medium', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.links-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Medium', sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.link-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .links-content {
        padding: 120px 20px 80px;
    }

    .links-buttons {
        max-width: 100%;
    }

    .link-button {
        padding: 18px 25px;
        font-size: 16px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        left: 0;
        right: 0;
        transform: none;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        margin: 0 auto;
        padding: 16px 12px;
        border-radius: 15px;
        box-sizing: border-box;
    }

    .nav-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }

    .logo {
        flex-shrink: 0;
        max-width: calc(50% - 30px);
    }

    .logo-img {
        max-width: 100%;
        max-height: 32px;
    }

    .menu-toggle {
        flex-shrink: 0 !important;
        margin-left: auto !important;
        font-size: 32px !important;
        display: block !important;
        color: var(--text-color) !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 5px !important;
        z-index: 1001 !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .menu-toggle .menu-icon {
        display: inline-block !important;
        color: inherit !important;
        font-size: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 15px 50px;
        overflow: visible;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: clamp(24px, 6.5vw, 40px); /* Better scaling for 2 lines */
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
        letter-spacing: -1.5px; /* Slightly tighter on mobile */
        line-height: 1.15;
        margin-bottom: 25px;
    }

    .hero-title .line {
        display: block; /* Remove !important */
        white-space: nowrap; /* Keep words together */
        font-size: inherit; /* Ensure all lines scale together */
        line-height: 1.15;
        margin-bottom: 6px; /* Space between lines */
        word-wrap: normal;
        overflow-wrap: normal;
    }

    .hero-title .line:last-child {
        margin-bottom: 0;
    }

    .hero-brands {
        bottom: 0px;
        transform: translate(-50%, -10px);
        padding: 0 15px 5px 15px;
    }

    .hero-brands-title {
        font-size: clamp(8px, 1.8vw, 11px);
        margin-top: -8px;
        margin-bottom: 0;
        padding-bottom: 10px;
        opacity: 0;
        animation: fadeInTitle 1s ease-in-out 1s;
        animation-fill-mode: forwards;
    }

    .hero-brands-scroll-wrapper {
        transform: translateY(15px);
        opacity: 0;
        animation: fadeIn 1s ease-in-out 0.5s;
        animation-fill-mode: forwards;
    }

    .hero-brands-scroll {
        gap: 80px;
    }

    .hero-brand-logo {
        width: auto;
        min-width: 0;
        height: 108px;
        margin: 0;
        padding: 0;
    }

    .hero-brand-logo img {
        height: 108px;
        max-height: 108px;
    }

    @keyframes scroll-hero-brands {
        0% {
            transform: translateX(0);
        }
        100% {
            /* Calculate exact width: 9 logos × 420px + 8 gaps × 80px = 4420px */
            /* Using approximate width since logos are now auto-sized */
            transform: translateX(calc(-1 * (420px * 9 + 80px * 8)));
        }
    }

    .submit-button {
        padding: 14px 28px;
        font-size: 16px;
        margin-top: 5px;
    }

    .submit-button svg {
        width: 20px;
        height: 20px;
    }

    .brands-section {
        padding: 60px 20px;
    }

    .brands-title {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 30px;
    }

    .brand-logo {
        width: 150px;
        height: 90px;
        font-size: 12px;
    }

    .brands-scroll {
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-visual {
        aspect-ratio: 16 / 10;
    }


    .projects,
    .contact {
        padding: 60px 20px;
    }

    .social {
        padding: 60px 20px;
    }

    .footer {
        padding: 40px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 10px !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin: 0 auto !important;
        padding: 14px 10px !important;
        border-radius: 15px !important;
        box-sizing: border-box !important;
    }

    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 10px !important;
    }

    .logo {
        flex-shrink: 0 !important;
        max-width: calc(50% - 30px) !important;
    }

    .logo-img {
        max-width: 100% !important;
        max-height: 32px !important;
    }

    .menu-toggle {
        flex-shrink: 0 !important;
        margin-left: auto !important;
        font-size: 32px !important;
        display: block !important;
        color: var(--text-color) !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 5px !important;
        z-index: 1001 !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .menu-toggle .menu-icon {
        display: inline-block !important;
        color: inherit !important;
        font-size: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-links {
        display: none !important;
    }

    .hero {
        padding: 90px 12px 40px;
    }

    .hero-content {
        padding: 0 8px;
    }

    .hero-title {
        font-size: clamp(20px, 6vw, 32px); /* More aggressive scaling for small screens */
        letter-spacing: -1px;
        padding: 0 6px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-title .line {
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .contact-email {
        font-size: clamp(18px, 5vw, 24px);
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: clamp(18px, 5.5vw, 28px);
        letter-spacing: -0.5px;
        padding: 0 4px;
    }

    .hero-title .line {
        margin-bottom: 4px;
    }
}

/* Desktop: Combine CGI and MARKETING on one line */
@media (min-width: 769px) {
    .hero-title .line:nth-child(2) {
        display: inline !important;
    }
    
    .hero-title .line:nth-child(2)::after {
        content: ' ';
    }
    
    .hero-title .line:nth-child(3) {
        display: inline !important;
    }
    
    .hero-title .line:nth-child(1) {
        display: block !important;
    }
    
    .hero-title .line {
        margin-bottom: 0 !important;
    }
}
