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

:root {
    /* Colors - HSL format matching React app */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 26%, 14%);
    --primary: hsl(220, 65%, 12%);
    --primary-foreground: hsl(0, 0%, 100%);
    --accent: hsl(220, 10%, 35%);
    --accent-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 14%, 96%);
    --secondary-foreground: hsl(220, 26%, 14%);
    --muted: hsl(220, 14%, 96%);
    --muted-foreground: hsl(220, 9%, 46%);
    --border: hsl(220, 13%, 91%);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 1rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--primary);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-smooth);
    padding: 1.25rem 0;
}

#header.scrolled {
    background-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

#header .logo img {
    height: 3.5rem;
    width: auto;
    transition: var(--transition-smooth);
}

#header .desktop-nav {
    display: none;
    gap: 2rem;
}

#header .desktop-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    transition: var(--transition-smooth);
    position: relative;
}

#header .desktop-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

#header .desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#header .desktop-nav a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: var(--transition-smooth);
}

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

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

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

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

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

.mobile-nav a {
    color: white;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.mobile-nav a:hover {
    opacity: 0.8;
}

@media (min-width: 768px) {
    #header .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section.bg-light {
    background-color: var(--background);
}

.section.bg-secondary {
    background-color: var(--secondary);
}

.section.bg-primary {
    background-color: var(--primary);
}

.text-white {
    color: white;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 4rem;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary);
    color: white;
    padding-top: 120px;
    padding-bottom: 80px;

}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    height: clamp(6rem, 15vw, 10rem);
    width: auto;
    margin: 0 auto;
}

.hero-section h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.hero-info {
    font-size: 1.125rem;
}

.hero-info p {
    margin-bottom: 1.5rem;
}

.hero-highlight {
    font-size: 1.25rem;
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-primary:hover {
    background-color: hsl(220, 10%, 30%);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-secondary:hover {
    background-color: hsl(220, 65%, 15%);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

/* Services Grid */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: var(--transition-smooth);
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsla(220, 10%, 35%, 0.1);
    border-radius: 0.5rem;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    color: var(--muted-foreground);
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

.service-card ul li.ml-4 {
    margin-left: 1rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* BIM Highlight */
.bim-highlight {
    background-color: var(--secondary);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.bim-highlight h3 {
    margin-bottom: 1rem;
}

.bim-highlight p {
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Differentials */
.differential-item {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.differential-content h3 {
    margin-bottom: 1.5rem;
}

.differential-content p,
.differential-content ul {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.differential-content ul {
    list-style: none;
    color: var(--muted-foreground);
}

.differential-content ul li {
    margin-bottom: 0.5rem;
}

.differential-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.differential-images img {
    border-radius: 0.5rem;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.image-caption {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .differential-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .differential-item.reverse {
        direction: rtl;
    }
    
    .differential-item.reverse > * {
        direction: ltr;
    }
}

/* Steps Grid */
.steps-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: var(--transition-smooth);
}

.step-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

.step-card {
    display: flex;
    gap: 1rem;
}

.step-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Deliverables */
.deliverables-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.deliverables-content h3 {
    margin-bottom: 1.5rem;
}

.deliverables-content p,
.deliverables-content ul {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.deliverables-content ul {
    list-style: none;
    color: var(--muted-foreground);
}

.deliverables-content ul li {
    margin-bottom: 0.5rem;
}

.deliverables-content ul li.ml-6 {
    margin-left: 1.5rem;
}

.deliverables-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deliverables-images img {
    border-radius: 0.5rem;
    width: 100%;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
    .deliverables-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.additional-services-title {
    margin: 4rem 0;
}

.additional-services-title h2 {
    margin-bottom: 0.5rem;
}

.additional-services-grid {
    display: grid;
    gap: 2rem;
}

.service-feature-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: var(--transition-smooth);
    text-align: center;
}

.service-feature-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

.service-feature-card img {
    border-radius: 0.5rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.service-feature-card h3 {
    margin-bottom: 1rem;
}

.service-feature-card p {
    color: var(--muted-foreground);
    text-align: left;
}

@media (min-width: 768px) {
    .additional-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Projects */
.project-showcase {
    margin-top: 4rem;
}

.project-item {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.project-content h3 {
    margin-bottom: 1.5rem;
}

.project-content img {
    border-radius: 0.5rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-images img {
    border-radius: 0.5rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (min-width: 768px) {
    .project-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .project-item.reverse {
        direction: rtl;
    }
    
    .project-item.reverse > * {
        direction: ltr;
    }
}

.model-3d-intro {
    margin: 3rem 0 2rem;
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

.model-3d-showcase {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.model-description h3 {
    margin-bottom: 1rem;
}

.model-description p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.model-3d-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    position: relative;
    width: 100%;

}

.model-3d-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .model-3d-showcase {
        grid-template-columns: 1fr 1fr;
    }
}

/* Partners */
.partners-grid {
    display: grid;
    gap: 2rem;
}

.partner-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

.partner-card img {
    width: 100%;
    height: 8rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Remote Projects */
.remote-projects-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.remote-content h3 {
    margin-bottom: 1.5rem;
}

.remote-description p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .remote-projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Payment */
.payment-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.payment-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: var(--transition-smooth);
    text-align: center;
}

.payment-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

.payment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-card p {
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.partner-highlight {
    background-color: var(--primary);
    color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.partner-highlight p {
    font-size: 1.25rem;
}

/* Contact */
.contact-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    color: var(--accent);
    margin-bottom: 2rem;
}

.contact-intro {
    margin: 2rem 0;
}

.contact-intro p {
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-details-grid {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
    text-align: left;
}

.contact-details p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.manager-info {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .contact-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 5rem;
    width: auto;
    margin: 0 auto;
}

.footer-content > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--accent);
}

.footer-address {
    margin-bottom: 2rem;
}

.footer-address p {
    font-size: 0.875rem;
}

.footer-website a {
    color: var(--accent);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.footer-website a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #25D366;
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    transition: var(--transition-smooth);
    z-index: 999;
}

.whatsapp-button:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Utility Classes */
.ml-4 {
    margin-left: 1rem;
}

.ml-6 {
    margin-left: 1.5rem;
}
