:root {
    --primary: #0f172a;
    /* Dark Navy Blue (Strong Contrast) */
    --secondary: #D4AF37;
    /* Luxury Gold (Accents) */
    --accent: #F4E4BC;
    /* Cream/Pale Gold */
    --dark-bg: #f8fafc;
    /* Light Slate / White Background */
    --card-bg: rgba(255, 255, 255, 0.85);
    /* White Cards with slight transparency */
    --text-main: #0f172a;
    /* Dark Navy Text */
    --text-muted: #64748b;
    /* Slate Gray Text */
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(212, 175, 55, 0.3);
    /* Gold Border */
    --nav-height: 80px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Soft Gold & Blue Gradient (Sunrise Effect) */
    background-image: linear-gradient(135deg, #e0f2fe 0%, #fffbeb 50%, #fef3c7 100%);
    background-attachment: fixed;
    /* Keeps gradient distinct during scroll */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Very subtle warmth in the center */
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.03), transparent 70%);
    z-index: -1;
    animation: none;
    /* Removed floating animation for cleaner look */
}

@keyframes floatBackground {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1) translate(0px, 10px);
    }

    100% {
        transform: scale(1);
    }
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #E5C565);
    color: #0f172a;
    /* Dark text for contrast on gold */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #E5C565, var(--secondary));
}

/* Header */
header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
    /* Very subtle Navy tint */
    opacity: 0.6;
    filter: blur(80px);
    z-index: -1;
}

/* Add a second glow for Gold */
.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    /* Very subtle Gold tint */
    opacity: 0.6;
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Services */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

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

.service-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
    /* Golden shadow on hover */
}

.icon-box {
    width: 60px;
    height: 60px;
    /* Icon Box Background -> Gold Tint */
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Why Us / Moroccan Touch */
.why-us {
    padding: 100px 0;
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.check-icon {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Contact */
.contact {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(106, 17, 203, 0.1));
}

.contact-box {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* Process / Workflow */
.process {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(106, 17, 203, 0.05), transparent);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Arrow connector between steps (Desktop only) */
@media (min-width: 992px) {
    .step-card::after {
        content: '';
        position: absolute;
        top: 45px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--secondary), transparent);
        opacity: 0.3;
        z-index: 0;
    }

    .step-card:last-child::after {
        display: none;
    }
}

/* Templates Gallery */
.gallery {
    padding: 100px 0;
}

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

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: var(--secondary);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    color: white;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pricing Calculator */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.2));
}

.pricing-calculator {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 30px;
}

.form-group h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
}

.card-content {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.option-card input:checked+.card-content {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--secondary);
}

.option-card input:checked+.card-content i {
    color: var(--secondary);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.checkbox-item:hover {
    border-color: var(--secondary);
}

.checkbox-item input:checked+span {
    color: var(--secondary);
    font-weight: 600;
}

.total-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.total-display span:last-child {
    color: var(--accent);
}

/* Partners Section */
.partners {
    padding: 60px 0;
    opacity: 0.8;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-item {
    font-size: 1.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.partner-item:hover {
    opacity: 1;
    color: var(--text-main);
}