/* =============== DESIGN SYSTEM & VARIABLES =============== */
:root {
    /* Colors */
    --color-primary: #ea580c; /* Warm terracotta/orange */
    --color-primary-hover: #c2410c;
    --color-primary-light: #fff7ed;
    
    --color-slate-900: #0f172a; /* Dark background elements */
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    
    --color-bg-body: #ffffff;
    --color-bg-light: #f8fafc;
    --color-text-main: #334155;
    --color-text-muted: #64748b;
    
    --color-white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacings */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Header Height */
    --header-height: 120px;
}

/* =============== RESET & BASE =============== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* =============== UTILITIES =============== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.w-full { width: 100%; }

.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-slate-900); color: var(--color-white); }

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.05rem;
    border: none;
    transition: var(--transition-normal);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-slate-900);
    line-height: 1.2;
    font-weight: 700;
}

.bg-dark h2, .bg-dark h3, .bg-dark p {
    color: var(--color-white);
}

/* =============== NAVBAR =============== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-slate-900);
}

.logo-icon {
    color: var(--color-primary);
}

.logo-img {
    height: 110px; /* Further increased based on user feedback */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--color-slate-600);
    position: relative;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-slate-900);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    background: var(--color-bg-light);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-nav-links a {
    color: var(--color-slate-900);
}

.mobile-nav-links a.btn-primary {
    color: var(--color-white);
    margin-top: var(--space-4);
}

/* =============== HERO SECTION =============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-slate-900);
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231e293b" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

/* We will generate a background image later via javascript or CSS if needed. Using dark pattern for now */

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content {
    color: var(--color-white);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: var(--space-4);
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-slate-400);
    margin-bottom: var(--space-6);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-white);
    position: absolute;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.stat-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.stat-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.glass-card i {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--color-slate-400);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =============== SECTIONS & LAYOUT =============== */
.section {
    padding: var(--space-12) 0;
}

.section-header {
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-inline: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    color: var(--color-slate-500);
    font-size: 1.125rem;
}

/* =============== SERVICES =============== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background: var(--color-white);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    background: var(--color-primary);
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: var(--space-3);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--color-text-muted);
}

/* =============== MATERIALS =============== */
.materials-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.features-list {
    margin: var(--space-5) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-slate-700);
    font-weight: 500;
}

.features-list i {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.material-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.05);
}

.material-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.material-img-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.material-icon.accent { color: var(--color-primary); }
.material-icon.dark { color: var(--color-slate-800); }
.material-icon.blue { color: #0ea5e9; }
.material-icon.green { color: #10b981; }

.material-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.material-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* =============== CTA & CONTACT =============== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(10px);
}

.cta-info h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.cta-info p {
    color: var(--color-slate-400);
    margin-bottom: var(--space-6);
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-slate-400);
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 600;
    color: var(--color-white);
    font-size: 1.125rem;
}

.contact-name {
    font-size: 0.9rem;
    color: var(--color-slate-400);
    margin-top: 2px;
}

.contact-form {
    background: var(--color-white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    margin-bottom: var(--space-2);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-slate-400);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-slate-900);
    transition: var(--transition-fast);
    background: var(--color-bg-light);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
    background: var(--color-white);
}

/* =============== FOOTER =============== */
.footer {
    background-color: #020617; /* Very dark slate */
    color: var(--color-slate-400);
    padding: var(--space-8) 0 var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.6;
}

.footer-links-group h4 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links-group a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* =============== GALLERY =============== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* =============== WHATSAPP FLOAT =============== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    width: 32px;
    height: 32px;
}

/* =============== ANIMATIONS & RESPONSIVE =============== */
/* Animations mapped to intersection observer in JS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.appear {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .materials-layout {
        grid-template-columns: 1fr;
    }
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
    }
    .cta-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: var(--space-6);
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero p {
        margin-inline: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        display: none; /* Hide floating stats on mobile for cleaner look */
    }
    
    .footer-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .materials-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: var(--space-8) 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
