/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Brand Colors */
:root {
    --brand-blue: #3b82f6;
    --brand-dark: #1f2937;
    --brand-light: #60a5fa;
    --brand-gray: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

/* Header Styles */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent; /* Header will be transparent */
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--brand-gray);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-blue);
}

.desktop-nav {
    display: flex;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.whatsapp-btn:hover {
    background: #059669;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-dark);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--brand-blue);
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    width: 100%;
    min-height: 100vh;           /* Full viewport height */
    text-align: center;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Make header transparent so image shows behind it */
.header {
    background: transparent;
    position: relative;
    z-index: 2;  /* Stays above image */
}

/* Dark overlay across entire section (header + hero) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Text and buttons stay above overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    color: #fff;
    transform: translateY(-30px);
}

/* Hero intro animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2,
.hero-content p,
.hero-buttons {
    opacity: 0;
    animation: fadeUp 700ms ease-out forwards;
}

.hero-content h2 { animation-delay: 0.05s; }
.hero-content p { animation-delay: 0.20s; }
.hero-buttons { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
    .hero-content h2,
    .hero-content p,
    .hero-buttons {
        animation: none !important;
        opacity: 1 !important;
    }
}


.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--brand-dark);
}

.btn-primary:hover {
    background: #f3f4f6;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--brand-dark);
}

.btn-blue {
    background: var(--brand-blue);
    color: white;
}

.btn-blue:hover {
    background: var(--brand-light);
}

.btn-green {
    background: var(--success);
    color: white;
}

.btn-green:hover {
    background: #059669;
}

.btn-full {
    width: 100%;
}

/* Section Styles */
.products-section {
    padding: 5rem 0;
    background: white;
}

.services-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.about-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--brand-gray);
}

/* Grid Styles */
.products-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--brand-gray);
    margin-bottom: 1rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--brand-gray);
}

.card-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 2rem;
}

.about-content > p {
    font-size: 1.25rem;
    color: var(--brand-gray);
    margin-bottom: 2rem;
}

.about-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-gray);
}

.contact-item i {
    width: 20px;
    color: var(--brand-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link.whatsapp {
    background: var(--success);
}

.social-link.whatsapp:hover {
    background: #059669;
}

.social-link.instagram {
    background: #e1306c;
}

.social-link.instagram:hover {
    background: #c13584;
}

/* Footer */
.footer {
    background: var(--brand-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-contact {
    color: #9ca3af;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    color: #000;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body {
    padding: 2rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--brand-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.order-summary {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    /* Mobile-specific hero background adjustments */
    .hero {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll; /* Better performance on mobile */
        min-height: 100vh;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Extra small mobile devices - optimize background image */
    .hero {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        min-height: 100vh;
        padding: 6rem 0 3rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .card-content {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Mobile landscape orientation optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
    
    .hero-content {
        transform: translateY(-20px);
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Product carousel */
.product-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.carousel-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.7;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.carousel-thumb.active {
    opacity: 1;
    border-color: var(--brand-blue);
}