@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #8D1B3D;
    --primary-dark: #701630;
    --primary-light: #B0234B;
    --secondary: #0F172A;
    --accent: #94A3B8;
    --white: #FFFFFF;
    --light: #F8FAFC;
    --dark-gray: #1E293B;
    --maroon-glow: rgba(141, 27, 61, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-gray);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--secondary);
}

/* Layout */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* Header Enhancement */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

/* Homepage Hero Transparent Header */
.home-page header:not(.scrolled) {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.home-page header:not(.scrolled) .nav-links a,
.home-page header:not(.scrolled) .logo {
    color: white;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--secondary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Button Refinement */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(141, 27, 61, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(141, 27, 61, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Hero Section Enhancement */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%), url('../assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding-top: 100px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    color: white;
    font-weight: 900;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    color: var(--accent);
    max-width: 650px;
    font-weight: 400;
}

/* Card Enhancement */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--light);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

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

/* Image Fallback & Placeholder Styling */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    background-color: #f1f5f9;
    position: relative;
}

img::before {
    content: "Building Qatar's Future...";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    font-size: 0.8rem;
}

/* Floating WhatsApp Refined */
.whatsapp-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 15px 30px -10px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Footer Enhancement */
footer {
    background: #020617;
    color: var(--white);
    padding: 8rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.footer-col ul li a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 3rem;
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

/* Mobile Responsive Refinement */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .container { padding: 0 1.5rem; }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.home-page header:not(.scrolled) .mobile-toggle {
    color: white;
}

/* Project Slider */
.project-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 2rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-xl);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
    color: white;
}

.slide-content h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.8s 0.2s;
}

.slide.active .slide-content h3 {
    transform: translateY(0);
    opacity: 1;
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 4rem 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links.active a {
        color: var(--secondary) !important;
    }

    .mobile-toggle {
        display: block;
    }

    .hero { height: auto; padding: 150px 0 100px; }
    .hero h1 { font-size: 3.25rem; }
    .footer-grid { gap: 2.5rem; }
    .project-slider { height: 400px; }
    .slide-content h3 { font-size: 1.5rem; }
}




