/* Modern Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Color Palette */
    --primary-navy: #0f172a;
    --secondary-navy: #1e293b;
    --accent-gold: #fbbf24;
    --accent-gold-hover: #d97706;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --text-dark: #334155;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --text-dark: #f1f5f9;
    --text-gray: #cbd5e1;
    --primary-navy: #3b82f6;
    /* Brighter blue for dark mode accents */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 5rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text h1 {
    color: var(--text-light);
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    color: var(--text-light);
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    background: transparent;
    color: var(--text-gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.lang-btn.active {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.lang-btn:hover:not(.active) {
    color: var(--text-light);
}

.contact-header .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.contact-header .phone:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
    /* Override default */
}

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

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.license-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.license-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-fast);
}

.license-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

[data-theme="dark"] .section-header h2 {
    color: var(--text-light);
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

[data-theme="dark"] .about-content p {
    color: var(--text-gray);
}

/* Services Section */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

[data-theme="dark"] .service-item {
    background: var(--secondary-navy);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-gold);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    transition: all var(--transition-normal);
}

.service-item:hover .service-icon-wrapper {
    background: var(--accent-gold);
    color: var(--bg-white);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

[data-theme="dark"] .service-item h3 {
    color: var(--text-light);
}

.service-item p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.free-estimate {
    text-align: center;
    margin-top: 4rem;
}

.highlight {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3);
    transition: all var(--transition-normal);
}

.highlight:hover {
    transform: scale(1.05);
    background: var(--accent-gold-hover);
    color: white;
}

/* Contact Section */
.contact {
    background-color: var(--bg-white);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

[data-theme="dark"] .contact-item {
    background: var(--secondary-navy);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

[data-theme="dark"] .contact-item h3 {
    color: var(--text-light);
}

.contact-item a,
.contact-item p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-gray);
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

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

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .testimonial-card {
    background: var(--secondary-navy);
    border-color: rgba(255, 255, 255, 0.05);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.reviewer {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary-navy);
}

[data-theme="dark"] .reviewer-name {
    color: var(--text-light);
}

.reviewer-location {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Contact Section Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 300px;
}

/* Chat Promo */
.chat-promo {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--accent-gold);
}

[data-theme="dark"] .chat-promo {
    background: var(--secondary-navy);
}

.chat-promo h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

[data-theme="dark"] .chat-promo h3 {
    color: var(--text-light);
}

.chat-promo p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

.chat-arrow {
    color: var(--accent-gold);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Updates */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-controls {
        width: 100%;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}