:root {
    --primary: #f5a623; /* Safety Yellow/Orange */
    --primary-dark: #d48a1a;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #f8f9fa;
    --text-muted: #a1a1aa;
    --white: #ffffff;
    --transition-fast: 0.3s ease;
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i { color: var(--primary); }
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}
.nav-links a:hover { color: var(--primary); }
.nav-call-btn {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 5px;
}
.nav-call-btn:hover { background: var(--primary-dark); color: var(--bg-dark); }
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh; /* Fallback for older browsers */
    height: 100svh; /* Solves mobile address bar height issues */
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('../static/wa5.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Solves background image not showing on iOS Safari */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

@media (min-width: 993px) {
    .hero {
        background-attachment: fixed; /* Enable fixed background only on desktop */
    }
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.hero h1 span { color: var(--primary); }
.hero p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.9);
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.hero-socials-mobile {
    display: none; /* hidden on desktop */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.05);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.1);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--white);
}
.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* About Us */
.about-section { background: var(--bg-card); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
}
.feature-text h4 {
    color: var(--white);
    margin-bottom: 5px;
}
.feature-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 18, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}
.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.3s ease;
}
.lightbox-close:hover { color: var(--primary); }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2010;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--primary); }

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 12px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select option {
    background-color: var(--bg-card);
    color: var(--white);
}

.contact-info-block {
    margin-bottom: 30px;
}
.contact-info-block h4 { color: var(--primary); margin-bottom: 10px; }
.contact-info-block p, .contact-info-block a { color: var(--text-main); text-decoration: none; font-size: 1.1rem; }
.contact-socials { display: flex; gap: 15px; margin-top: 20px; }
.contact-socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}
.contact-socials a:hover { background: var(--primary); color: var(--bg-dark); }

/* Footer */
footer {
    background: #000;
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #FFF; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-container { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 2.8rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: -1;
    }
    .nav-links.active { transform: translateY(0); }
    .menu-toggle { display: block; }
    .hero {
        background-position: center 55%;
        height: auto;
        min-height: 100svh;
        padding-top: 100px;
        padding-bottom: 50px;
        align-items: flex-start;
        background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.55)), url('../static/wa5.jpeg');
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    
    .hero-socials-mobile {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
    }
    .hero-social-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--white);
        text-decoration: none;
        gap: 8px;
    }
    .hero-social-link i {
        font-size: 32px;
        background: rgba(255, 255, 255, 0.15);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }
    .hero-social-link span {
        font-size: 0.85rem;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    .section-title { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 250px; }
    .lightbox-prev, .lightbox-next { display: none; /* Hide arrows on mobile, rely on swipe (if implemented) or just close and open another */ }
    /* On mobile we disable hover zoom in gallery and just show image */
    .gallery-item:hover img { transform: none; }
    .gallery-item:hover .gallery-overlay { opacity: 0; }
}
