/* ========================================
   CSS Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-navy: #0a1a3c;
    --primary-gold: #c9a227;
    --gold-light: #d4b23a;
    --gold-dark: #b8921f;
    
    /* Accent Colors */
    --white: #ffffff;
    --light-grey: #f8f9fa;
    --medium-grey: #6c757d;
    --dark-grey: #343a40;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, #1a2a5c 100%);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-light) 100%);
    --gradient-overlay: linear-gradient(rgba(10, 26, 60, 0.8), rgba(10, 26, 60, 0.8));
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    --space-xxxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 4px 16px rgba(201, 162, 39, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--light-grey);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xxxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxxl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--medium-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Loading Screen
======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: var(--space-lg);
}

.loading-content h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xl);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PWA Install Banner
======================================== */
.install-banner {
    position: fixed;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(100px);
    transition: transform var(--transition-normal);
}

.install-banner:not(.hidden) {
    transform: translateY(0);
}

.install-banner.hidden {
    transform: translateY(100px);
}

.install-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.install-content i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.install-content span {
    flex: 1;
    font-weight: var(--font-weight-medium);
}

.install-btn {
    background: var(--gradient-gold);
    color: var(--primary-navy);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.dismiss-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.dismiss-btn:hover {
    opacity: 1;
}

/* ========================================
   Navigation Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 26, 60, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    text-decoration: none;
}

.nav-logo {
    font-size: 1.75rem;
    color: var(--primary-gold);
}

.nav-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--primary-gold);
    border-radius: var(--radius-sm);
}

.nav-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   Home Section
======================================== */
.home-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxxl);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.company-name {
    display: block;
    color: var(--primary-gold);
    font-size: 4rem;
}

.tagline {
    display: block;
    font-size: 2.5rem;
    color: var(--white);
}

.hero-description {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-medium);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-xxl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.hero-card:hover {
    transform: translateY(-10px);
}

.hero-icon {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: var(--space-lg);
}

.hero-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.hero-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-navy);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Categories Section
======================================== */
.categories-section {
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background: var(--gradient-gold);
}

.category-icon i {
    font-size: 2rem;
    color: var(--white);
}

.category-card:hover .category-icon i {
    color: var(--primary-navy);
}

.category-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
}

.category-description {
    color: var(--medium-grey);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.category-count {
    color: var(--primary-gold);
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
    background: var(--light-grey);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxxl);
    margin-bottom: var(--space-xxxl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
}

.contact-card p {
    color: var(--medium-grey);
    font-size: 1.125rem;
}

.contact-card a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.contact-card a:hover {
    color: var(--gold-dark);
}

/* ========================================
   Contact Form
======================================== */
.contact-form-container {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    border: 2px solid #e0e6ed;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Map Container
======================================== */
.map-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    padding: var(--space-xxxl);
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: var(--space-lg);
}

.map-placeholder h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
}

/* ========================================
   Modal
======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid #e0e6ed;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-navy);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--medium-grey);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--light-grey);
    color: var(--primary-navy);
}

.modal-body {
    padding: var(--space-xl);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.subcategory-card {
    background: var(--light-grey);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.subcategory-card:hover {
    background: var(--white);
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.subcategory-card h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
}

.subcategory-card p {
    color: var(--medium-grey);
    margin-bottom: var(--space-md);
}

.subcategory-card .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

/* ========================================
   WhatsApp Float
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: var(--space-xl) 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
}

.footer-brand i {
    color: var(--primary-gold);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Toast Messages
======================================== */
.toast {
    position: fixed;
    top: 100px;
    right: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) var(--space-lg);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toast.success .toast-icon::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
}

.toast.error .toast-icon::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #dc3545;
}

.toast-message {
    color: var(--dark-grey);
    font-weight: var(--font-weight-medium);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    :root {
        --space-xxxl: 2rem;
        --space-xxl: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 26, 60, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-lg);
        border-top: 1px solid rgba(201, 162, 39, 0.2);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .company-name {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .whatsapp-float {
        bottom: var(--space-md);
        right: var(--space-md);
    }
    
    .install-banner {
        left: var(--space-sm);
        right: var(--space-sm);
        bottom: var(--space-sm);
    }
    
    .toast {
        right: var(--space-sm);
        left: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .company-name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .category-card {
        padding: var(--space-lg);
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* ========================================
   Utility Classes
======================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}
