@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

:root {
    --color-white: #ffffff;
    --color-dark: #1b1c20;
    --color-grey-light: #e4e3de;
    --color-text-dark: #111111;
    --color-text-grey: #8c8c8c;
    --color-text-light: #f5f5f5;
    
    --font-primary: 'Sora', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* offset for fixed navbar */
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: 75px; /* offset for compact mobile navbar */
    }
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.text-huge {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.text-huge-light {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--color-white);
}

.text-huge-dark {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: #26282d; /* slightly lighter than the background #1b1c20 */
}

.text-medium {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.text-small {
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 300;
}

/* Header */
.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: var(--color-white);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    color: var(--color-text-dark);
}

.nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
    margin-left: 2rem;
}

.nav-link.bracket-link {
    font-weight: 500;
}

.lang-switcher {
    margin-left: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-text-dark);
}

.nav-link-lang {
    color: var(--color-text-grey);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link-lang:hover {
    color: var(--color-text-dark);
}

.nav-link-lang.active {
    color: var(--color-text-dark);
    font-weight: 700;
}

.lang-separator {
    color: var(--color-text-grey);
    margin: 0 0.2rem;
}

/* Update for dark themes and observers */
.bg-dark .lang-switcher,
.bg-dark .nav-link-lang:hover,
.bg-dark .nav-link-lang.active {
    color: var(--color-white) !important;
}

.bg-dark .nav-link-lang,
.bg-dark .lang-separator {
    color: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 991px) {
    .lang-switcher {
        margin-left: 0;
        padding: 0.8rem 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }
    .bg-dark .lang-switcher {
        border-top: 1px solid rgba(255,255,255,0.05);
    }
}

/* Sections */
.section-padding {
    padding: 10rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 7rem 0 5rem 0; /* extra top padding to clear fixed navbar on mobile */
    }
}

@media (max-width: 991px) {
    .navbar {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
    .navbar-collapse {
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    .bg-dark .navbar-collapse {
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .bg-grey .navbar-collapse {
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    .nav-link {
        margin-left: 0;
        padding: 0.8rem 0;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--color-white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-description {
    margin-top: 2rem;
}

.link-bracket {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
}

/* Services Section */
.services-section {
    background-color: var(--color-grey-light);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    background-color: var(--color-dark);
    color: var(--color-text-light);
}

.about-text-column p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--color-white);
}

.contact-info {
    font-size: 0.85rem;
    font-weight: 300;
}

.contact-info i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.contact-info a {
    color: var(--color-text-dark);
    text-decoration: none;
}

/* Utility to override colors depending on background */
.navbar.bg-dark {
    background-color: var(--color-dark) !important;
}

.bg-dark .navbar-brand,
.bg-dark .nav-link {
    color: var(--color-white) !important;
}

.bg-dark .navbar-toggler-icon {
    filter: invert(1);
}

.navbar.bg-grey {
    background-color: var(--color-grey-light) !important;
}

.bg-grey .navbar-brand,
.bg-grey .nav-link {
    color: var(--color-text-dark) !important;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Hide elements before scroll animation */
.animate-on-scroll {
    opacity: 0;
}
