/* ============================================
   ICD General Contracting - Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #1a365d;
    --color-primary-dark: #0f2744;
    --color-secondary: #c53030;
    --color-secondary-dark: #9b2c2c;
    --color-accent: #d69e2e;
    --color-background: #f7fafc;
    --color-surface: #ffffff;
    --color-text-primary: #1a202c;
    --color-text-secondary: #4a5568;
    --color-text-light: #ffffff;
    --color-border: #e2e8f0;
    
    --container-max: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 48px;
    
    --transition-fast: 200ms;
    --transition-normal: 300ms;
    --transition-slow: 600ms;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    transform: scale(1.02);
}

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

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all var(--transition-normal) ease;
    padding: 16px 0;
}

.navbar.scrolled {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 4px 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-fast) ease;
}

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

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    transition: all var(--transition-fast) ease;
    border-radius: 2px;
}

.navbar.scrolled .mobile-toggle span {
    background-color: var(--color-text-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(15, 39, 68, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-text {
    max-width: 800px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-arabic {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.1;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* ============================================
   Services Overview
   ============================================ */
.services-overview {
    padding: var(--section-padding) 0;
    background-color: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal) ease;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform var(--transition-normal) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background-color: var(--color-secondary-dark);
}

.service-icon i {
    font-size: 28px;
    color: var(--color-text-light);
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background-color: var(--color-background);
}

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

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vm-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-secondary);
}

.vm-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vm-icon i {
    font-size: 20px;
    color: var(--color-text-light);
}

.vm-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.vm-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   Detailed Services
   ============================================ */
.detailed-services {
    padding: var(--section-padding) 0;
    background-color: var(--color-surface);
}

.service-detail {
    padding: 64px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-detail-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon i {
    font-size: 24px;
    color: var(--color-text-light);
}

.service-detail-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.service-detail-content p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.service-list i {
    color: var(--color-secondary);
    font-size: 14px;
}

.manpower-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.category-tag {
    padding: 8px 16px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-us {
    padding: var(--section-padding) 0;
    background-color: var(--color-primary);
}

.why-us .section-title,
.why-us .section-subtitle {
    color: var(--color-text-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-us-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-normal) ease;
}

.why-us-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    transform: translateY(-4px);
}

.why-us-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-us-icon i {
    font-size: 28px;
    color: var(--color-text-light);
}

.why-us-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.why-us-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 400px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--color-secondary);
    margin-top: 3px;
    width: 16px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast) ease;
}

.contact-item a:hover {
    color: var(--color-secondary);
}

.footer-links h4,
.footer-services h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-services a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast) ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow) ease, transform var(--transition-slow) ease;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-grid {
        gap: 32px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .equipment-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-surface);
        padding: 80px 24px 24px;
        transition: right var(--transition-normal) ease;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-link {
        color: var(--color-text-primary);
        font-size: 18px;
        padding: 8px 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-arabic {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Service Detail */
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-detail-image img {
        height: 250px;
    }
    
    .service-detail-content h3 {
        font-size: 24px;
    }
    
    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .vm-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .equipment-categories-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
