:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b59226;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #f8fafc;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --bg-off-white: #f8fafc;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    --primary-color: #f8fafc;
    /* In dark mode, primary text is white */
    --primary-light: #cbd5e1;
    --text-dark: #f8fafc;
    --text-gray: #94a3b8;
    --text-light: #f8fafc;
    --bg-light: #020617;
    /* Very dark blue for main background */
    --bg-card: #0f172a;
    /* Slightly lighter for cards */
    --bg-off-white: #0f172a;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

/* Toggle Button Style */
/* Toggle Button Style */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.lang-btn {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}



/* RTL Support */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .nav-links li {
    margin-left: 0;
    margin-right: 0;
    /* Adjust spacing as needed */
}

/* RTL specific adjustments for margins/padding */
[dir="rtl"] .value-card,
[dir="rtl"] .service-card {
    text-align: right;
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

[dir="rtl"] .hero-text-col {
    text-align: right;
}

[dir="rtl"] .stat-item .number,
[dir="rtl"] .stat-item .label {
    text-align: right;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Prevent automatic text resizing on mobile */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    position: relative;


    /* Arabic Font Support */
    [lang="ar"] body,
    [lang="ar"] h1,
    [lang="ar"] h2,
    [lang="ar"] h3,
    [lang="ar"] h4,
    [lang="ar"] h5,
    [lang="ar"] h6,
    [lang="ar"] .lang-btn,
    [lang="ar"] button,
    [lang="ar"] input,
    [lang="ar"] textarea,
    [lang="ar"] select {
        font-family: 'Cairo', sans-serif;
    }

    /* Ensure overflow hidden works reliably */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Typography Helpers */
.highlight {
    color: var(--accent-color);
}

.subtitle {
    display: block;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.line.mx-auto {
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    border-radius: 2px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: white;
    font-weight: 600;
    border-radius: 2px;
    transition: var(--transition);
    border: 2px solid white;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    /* Removed text styles as we are using image */
}

.logo-img {
    height: 75px;
    /* Enlarged */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Adjust logo size on scroll */
/* We need to use a class added by JS or target via parent context if available. 
   Check JS content: it changes padding of navbar. */

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Fix Mobile Menu Colors for Theme Compatibility */
/* Nav Links */
.nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--accent-color);
}

/* Ensure mobile toggle visibility */
@media (max-width: 768px) {
    .theme-toggle {
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }

    .theme-toggle:hover {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: white;
    }
}

.nav-links li a.btn-primary {
    padding: 10px 24px;
    color: white;
    border: 1px solid var(--accent-color);
}

.nav-links li a.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    /* Changed to min-height for safety on mobile */
    display: flex;
    align-items: center;
    color: white;
    margin-top: 0;
    padding-top: 80px;
    /* Account for fixed navbar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.7) 100%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text-col {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    border-radius: 4px;
    /* Slightly rounded for modern professional look */
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--accent-color), 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    transition: var(--transition);
    max-width: 380px;
    /* Continuous floating animation */
    animation: floatImage 6s ease-in-out infinite;
}

/* Only pause animation on hover for desktop devices with mouse */
@media (hover: hover) and (pointer: fine) {
    .image-frame:hover {
        transform: rotate(0deg) scale(1.02);
        box-shadow: 15px 15px 0 var(--accent-color), 0 15px 40px rgba(0, 0, 0, 0.6);
        animation-play-state: paused;
    }
}

/* For touch devices, keep animation running but still show hover effect */
@media (hover: none) or (pointer: coarse) {
    .image-frame:active {
        transform: rotate(0deg) scale(1.02);
        box-shadow: 15px 15px 0 var(--accent-color), 0 15px 40px rgba(0, 0, 0, 0.6);
        /* Animation continues on mobile */
    }
}

.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--accent-color);
    /* Changed to accent for better contrast in dark mode */
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.values-grid {
    display: grid;
    gap: 2rem;
}

.value-card {
    background: var(--bg-card);
    /* Use bg-card */
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.value-card .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    /* Updated to accent */
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Services */
.services {
    background-color: var(--bg-off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    /* Use bg-card */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    height: 240px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.service-list li i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Projects */
.projects {
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Adjusted to 280px for better mobile fit */
    gap: 2rem;
}

.project-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-placeholder-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.project-item:hover .project-img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.project-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Calculator Section */
.calculator {
    background-color: var(--bg-light);
}

.calc-intro {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Service Type Selector */
.service-type-selector {
    margin-bottom: 3rem;
}

.service-type-selector h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.toggle-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.service-type-btn {
    background: var(--bg-card);
    border: 2px solid rgba(212, 175, 55, 0.2);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.service-type-btn i {
    font-size: 2.5rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.service-type-btn span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.service-type-btn small {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.service-type-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-type-btn.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    box-shadow: var(--shadow-md);
}

.service-type-btn.active i {
    color: var(--accent-color);
}

/* Room Selection */
.room-selection {
    margin-bottom: 3rem;
}

.room-selection h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.room-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--accent-color);
    transition: var(--transition);
}

.room-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.room-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.room-header i {
    font-size: 1.75rem;
    color: var(--accent-color);
}

.room-header h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.room-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 4px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.room-controls {
    margin-bottom: 1rem;
}

.room-controls label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: white;
}

.qty-input {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid rgba(203, 213, 225, 0.4);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-off-white);
}

/* Material Selection */
.material-select-wrapper {
    margin-bottom: 1rem;
}

.material-select-wrapper label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.material-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(203, 213, 225, 0.4);
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-off-white);
    cursor: pointer;
    transition: var(--transition);
}

.material-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Special Services */
.special-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: rgba(212, 175, 55, 0.05);
}

.service-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Door Services */
.door-services {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.door-services h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.door-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.door-option {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.door-option label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Total Display */
.total-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    color: white;
    margin-bottom: 3rem;
}

[data-theme="dark"] .total-display {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.total-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.breakdown-item span:first-child {
    font-size: 0.95rem;
    opacity: 0.9;
}

.breakdown-item span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.total-final span:first-child {
    font-size: 1.5rem;
    font-weight: 600;
}

.total-final span:last-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.whatsapp-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #25D366;
    border-color: #25D366;
    margin-bottom: 1rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: white;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}



/* Experience */
.experience {
    background-color: #0f172a;
    /* Fixed dark blue for contrast in both modes */
    color: white;
    position: relative;
    overflow: hidden;
}

.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 4px solid #0f172a;
    /* Fixed dark blue to match background */
}

.timeline-content .year {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
}

.career-objective {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.career-objective h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.career-objective p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* RTL Timeline Adjustments */
[dir="rtl"] .timeline {
    border-left: none;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-right: 3rem;
}

[dir="rtl"] .timeline-item::before {
    left: auto;
    right: -3.6rem;
}

/* Contact */
.contact {
    background-color: var(--bg-light);
    /* was --bg-light already but verify */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-gray);
}

.contact-form {
    background: var(--bg-card);
    /* was white */
    padding: 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, 0.4);
    /* was #cbd5e1 */
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-off-white);
    /* Add background for inputs */
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background-color: #020617;
    /* Even darker than primary */
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    margin: 0 auto 1rem;
    display: block;
}

/* 
.footer-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
} 
Removed text h2 style
*/

.footer-logo p {
    color: var(--accent-color);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin-bottom: 3rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-right {
    animation: fadeInRight 1s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
    /* Reduced from 50px to prevent horizontal scroll issues on mobile */
}

@media (max-width: 768px) {
    .fade-in-right {
        transform: translateX(10px);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Image Animation */
@keyframes floatImage {

    0%,
    100% {
        transform: rotate(2deg) translateY(0px);
    }

    25% {
        transform: rotate(1deg) translateY(-15px);
    }

    50% {
        transform: rotate(2deg) translateY(-20px);
    }

    75% {
        transform: rotate(3deg) translateY(-10px);
    }
}


/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text-col {
        margin: 0 auto;
        padding: 0 1rem;
        /* Ensure text doesn't touch edges */
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-col {
        display: flex;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .image-frame {
        max-width: 350px;
        transform: rotate(0deg);
        box-shadow: 10px 10px 0 var(--accent-color), 0 5px 20px rgba(0, 0, 0, 0.5);
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        /* Limit max width for cleaner look */
        background-color: #0f172a;
        /* Force dark blue for consistency */
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    /* RTL Mobile Nav */
    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    [dir="rtl"] .nav-links.active {
        right: auto;
        left: 0;
    }

    .nav-links li {
        margin: 0.8rem 0;
        /* Compact spacing for mobile */
    }

    .theme-toggle {
        width: 50px;
        /* Larger touch target for mobile */
        height: 50px;
        font-size: 1.25rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: white;
        transition: 0.3s;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -28px;
    }

    /* Calculator Mobile Styles */
    .toggle-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-type-btn {
        padding: 1.5rem 1rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .total-breakdown {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .total-final {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .total-final span:last-child {
        font-size: 2rem;
    }

    .door-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Total Display Padding on Mobile */
    .total-display {
        padding: 1.5rem;
    }

    .room-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stat-item .number {
        font-size: 2rem;
    }

    .projects-grid,
    .services-grid,
    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .image-frame {
        max-width: 280px;
        /* Constrain image width on very small screens to avoid overwhelming layout */
        box-shadow: 5px 5px 0 var(--accent-color);
        margin: 0 auto;
        /* Ensure centering */
    }
}

/* Why Choose Us */
.why-choose-us {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.why-choose-us h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.benefit-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}