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

html {
    width: 100%;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #2d2421;
    --text-color: #333333;
    --light-text: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    padding: 1.5rem 5vw;
    transition: var(--transition);
}

#header.scrolled {
    background: transparent;
    box-shadow: none;
    padding: 1.5rem 5vw;
}

#header.scrolled .logo a,
#header.scrolled .desktop-nav a {
    color: var(--light-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#header.scrolled .mobile-menu-btn span {
    background: var(--light-text);
}

.header-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
}

.logo a:hover {
    opacity: 0.7;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0px;
    opacity: 0.95;
}

.desktop-nav a:hover {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--light-text);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu {
    display: none;
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 5vw 15vh;
    margin: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/OurStory_IntroMapImage_Solable.webp') no-repeat center top;
    background-size: 100% auto;
    background-position: center top;
    background-color: #000000;
    z-index: -2;
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--light-text);
    animation: fadeInUp 1s ease;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -1.5px;
    white-space: nowrap;
    overflow: visible;
}

.hero-content p {
    font-size: clamp(0.875rem, 1.3vw, 1.125rem);
    font-weight: 400;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2px;
    opacity: 0.93;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.wave-divider path {
    fill: #000000;
}

.wave-divider.bottom {
    bottom: auto;
    top: -2px;
    transform: rotate(180deg);
}

/* Services Section */
.services-section {
    position: relative;
    background: #000000;
    padding: 6rem 4vw;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.service-item {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.service-item h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.service-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    mix-blend-mode: lighten;
}

.service-image img[src*="earth_2"] {
    object-fit: contain;
    transform: scale(1.5);
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-item:hover .service-image img[src*="earth_2"] {
    transform: scale(1.55);
}

/* Quote Section */
.quote-section {
    max-width: 800px;
    margin: 3rem auto 8rem;
    text-align: center;
    padding: 3rem 2rem;
}

.quote-section blockquote {
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    position: relative;
    letter-spacing: 0.3px;
}

.quote-mark {
    font-size: 2.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}

.quote-section figcaption {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    opacity: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* About CTA Section */
.about-cta-content {
    background: #000000;
    padding: 5rem 4vw 3rem;
    text-align: center;
    margin-top: 4rem;
}

.about-cta-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-cta-content p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

/* Footer */
.footer {
    background: #000000;
    color: var(--light-text);
    padding: 2.5rem 4vw 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.footer-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: #ffffff;
}

.linkedin-link {
    display: inline-block;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.linkedin-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.linkedin-link svg {
    width: 28px;
    height: 28px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 4vw 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-section {
        padding: 0 6vw;
        min-height: 80vh;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: clamp(1.25rem, 5vw, 2rem);
        margin-bottom: 1.25rem;
        letter-spacing: -0.5px;
        white-space: normal;
    }
    
    .hero-content p {
        font-size: clamp(0.75rem, 3.5vw, 0.875rem);
        line-height: 1.5;
        max-width: 100%;
        margin: 0 auto;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .hero-background {
        background-attachment: scroll;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .wave-divider svg {
        height: 50px;
    }

    .quote-section {
        margin: 4rem auto 6rem;
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 4vw;
}

