/* =========================================
   Design System & Variables
   ========================================= */
   :root {
    /* Colors */
    --clr-bg: #0f172a; /* Slate 900 */
    --clr-surface: #1e293b; /* Slate 800 */
    --clr-surface-light: #334155; /* Slate 700 */
    
    --clr-primary: #f97316; /* Orange 500 */
    --clr-primary-hover: #ea580c; /* Orange 600 */
    
    --clr-text: #f8fafc; /* Slate 50 */
    --clr-text-muted: #cbd5e1; /* Slate 300 */
    
    --clr-whatsapp: #25D366;
    --clr-whatsapp-hover: #128C7E;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --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-glow: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-family: var(--font-sans);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text);
    border: 2px solid var(--clr-text);
}

.btn-outline:hover {
    background-color: var(--clr-text);
    color: var(--clr-bg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--clr-surface-light);
    color: var(--clr-text);
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: #fff;
}

/* =========================================
   Navigation
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--clr-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text);
}

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

.btn-whatsapp-nav {
    background-color: var(--clr-whatsapp);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
}

.btn-whatsapp-nav:hover {
    background-color: var(--clr-whatsapp-hover);
    transform: translateY(-1px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 5rem;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--clr-primary);
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   Services Section
   ========================================= */
.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-title p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
}

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

.service-card {
    background-color: var(--clr-surface);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--clr-surface-light);
}

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



.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* =========================================
   Contact Section
   ========================================= */
.contact {
    background-color: var(--clr-surface);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--clr-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(249, 115, 22, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-link {
    color: var(--clr-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.info-item p {
    color: var(--clr-text-muted);
}

.contact-map {
    position: relative;
    min-height: 400px;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.contact-map:hover .map-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #020617; /* Slate 950 */
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.footer-container p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

/* =========================================
   Animations & Media Queries
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Language & RTL Support
   ========================================= */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 0.7rem top 50%;
    background-size: 0.65rem auto;
    color: var(--clr-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 2rem 0.4rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.lang-switcher option {
    background-color: var(--clr-surface);
    color: var(--clr-text);
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .service-card::before {
    transform-origin: right;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile approach */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}
