:root {
    /* Color Palette */
    --clr-primary-dark: #111111;
    --clr-primary-gold: #F4C430;
    --clr-accent-gold: #FFD84D;
    
    --clr-bg-white: #ffffff;
    --clr-bg-light: #fdfbf7; /* Very subtle light gold/warm white */
    --clr-bg-dark: #1a1a1a;
    
    --clr-text-main: #333333;
    --clr-text-light: #e0e0e0;
    --clr-text-dark: #111111;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* UI Elements */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--clr-bg-white);
}

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

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 196, 48, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(17, 17, 17, 0.05);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(244, 196, 48, 0.15);
    border-color: rgba(244, 196, 48, 0.5);
}

/* Dark mode glass for dark sections */
.bg-dark .glass-card, .hero .glass-card, .footer .glass-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary-gold), var(--clr-accent-gold));
    color: var(--clr-primary-dark);
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(244, 196, 48, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--clr-bg-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--clr-bg-white);
}

.btn-outline {
    background: transparent;
    border-color: var(--clr-primary-gold);
    color: var(--clr-primary-dark);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.2);
}

.w-100 {
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: rgba(17, 17, 17, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.75);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.logo img {
    height: 50px;
    display: block;
    border-radius: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

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

.nav-link {
    color: var(--clr-bg-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.header.scrolled .nav-link, .header:not(.scrolled) .nav-link {
    color: #fff; /* Always keep nav text white since header is dark/hero is dark */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--clr-primary-gold);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-primary-gold) !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-primary-dark);
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(244, 196, 48, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(244, 196, 48, 0.1), transparent 50%);
    z-index: 1;
}

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

.hero-title {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Stats */
.stats {
    background: var(--clr-bg-white);
    padding: 4rem 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(244, 196, 48, 0.2);
}

.stat-item h3 {
    display: inline-block;
    font-size: 3rem;
    color: var(--clr-primary-dark);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--clr-primary-gold);
    font-weight: bold;
}

.stat-item p {
    font-weight: 500;
    color: #666;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* About */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text, .about-image {
    flex: 1;
}

.about-features-new {
    margin: 2rem 0;
}

.about-features-new .feature-item {
    margin-bottom: 1.5rem;
}

.about-features-new h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.about-features-new h4 i {
    color: var(--clr-primary-gold);
    font-size: 1.2rem;
}

.about-features-new p {
    margin-left: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.about-img-actual {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-primary-gold);
    margin-bottom: 1.5rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    padding: 0;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.5rem;
    background: white;
    position: relative;
    z-index: 2;
}

.portfolio-info h4 {
    margin-bottom: 0.2rem;
}

.portfolio-info p {
    color: var(--clr-primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--clr-primary-gold);
    color: var(--clr-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(244,196,48,0.4);
}

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

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

.stars {
    color: var(--clr-primary-gold);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--clr-primary-gold);
    box-shadow: 0 15px 50px rgba(244,196,48,0.15);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary-gold);
    color: var(--clr-primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.price {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--clr-primary-dark);
    font-weight: bold;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-card ul {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid rgba(244,196,48,0.2);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.5);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 300px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info i {
    color: var(--clr-primary-gold);
    width: 25px;
    margin-right: 10px;
}

.contact-info p {
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 2rem;
}

.ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: var(--clr-primary-dark);
    color: var(--clr-primary-gold);
    font-weight: 600;
    font-family: var(--font-heading);
    gap: 10px;
    transition: var(--transition);
    border: 2px solid var(--clr-primary-gold);
}

.ig-btn i {
    font-size: 1.2rem;
}

.ig-btn:hover {
    background: var(--clr-primary-gold);
    color: var(--clr-primary-dark);
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    background: rgba(255,255,255,0.8);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary-gold);
}

.map-placeholder {
    height: 300px;
    background: #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 8px;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--clr-primary-dark);
    color: white;
    padding: 5rem 0 2rem;
}

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

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-contact i {
    color: var(--clr-primary-gold);
    width: 25px;
    margin-right: 10px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-logo {
    color: white;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 0.8rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
    .stats-grid, .pricing-grid, .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-primary-dark);
        padding: 2rem;
        flex-direction: column;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    .cta-btn {
        display: none; /* Hide in mobile nav bar, maybe show inside menu */
    }

    .mobile-toggle {
        display: block;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .stats-grid, .pricing-grid, .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Header Controls & Dark Mode */
.nav-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-primary-gold);
}

.lang-btn {
    font-weight: bold;
    font-size: 1rem;
    font-family: var(--font-heading);
}

/* Dark Mode Overrides */
body.dark-mode {
    --clr-bg-white: #1a1a1a;
    --clr-bg-light: #111111;
    --clr-text-main: #e0e0e0;
    --clr-text-dark: #ffffff;
}

body.dark-mode .glass-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-light);
}

body.dark-mode .stats {
    background: var(--clr-bg-light);
}

body.dark-mode .stats-grid {
    background: var(--clr-bg-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .faq-item {
    background: var(--clr-bg-white);
}

body.dark-mode .faq-question {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .form-group input, 
body.dark-mode .form-group select, 
body.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .form-group input::placeholder, 
body.dark-mode .form-group textarea::placeholder {
    color: #999;
}

body.dark-mode .stat-item h3,
body.dark-mode .price,
body.dark-mode .btn-outline {
    color: var(--clr-primary-gold);
}

/* RTL Styles */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6,
html[dir="rtl"] .btn,
html[dir="rtl"] .lang-btn {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .about-features-new p {
    margin-left: 0;
    margin-right: 2rem;
}

html[dir="rtl"] .footer-contact i,
html[dir="rtl"] .contact-info i {
    margin-right: 0;
    margin-left: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--clr-bg-white);
    margin: auto;
    padding: 2.5rem;
    border: 1px solid rgba(244, 196, 48, 0.2);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow-y: auto;
    color: var(--clr-text-main);
}

body.dark-mode .modal-content {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--clr-primary-gold);
    text-decoration: none;
    cursor: pointer;
}

.modal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--clr-text-dark);
}

body.dark-mode .modal-body h3 {
    color: var(--clr-primary-gold);
}

.modal-body p, .modal-body ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 20px;
    list-style-type: disc;
}
