/* ===================================
   تاج المروة وواحة الخير للمقاولات العامة
   Taj Al-Marwa & Wahet Al-Khair Construction
   CSS Styles - Version 1.0
   Author: GitHub Copilot
   =================================== */

/* CSS Test - If you see this in browser inspector, CSS is loading */
/* اختبار CSS - إذا رأيت هذا في فاحص المتصفح، فإن CSS يتم تحميله */

/* ===================================
   CSS Variables (Custom Properties)
   =================================== */
:root {
    /* Primary Colors */
    --primary-color: #2c5aa0;
    --primary-dark: #1e3f73;
    --primary-light: #4a7bc8;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #2c3e50;
    --bg-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    
    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --text-muted: #8e9aaf;
    
    /* Shadow & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    
    /* Typography */
    --font-family-primary: 'Tajawal', 'Arial', sans-serif;
    --font-family-secondary: 'Amiri', 'Times New Roman', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-weight-light: 200;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    direction: rtl;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.lead {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* ===================================
   Loading Screen
   =================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text-light);
}

.loader-logo {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    animation: pulse 2s infinite;
}

.loader-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xl);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--text-light);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand .logo i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-left: var(--spacing-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.logo-text span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-base);
    transform: translateX(50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--spacing-2xl) var(--spacing-lg);
        transition: right var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--spacing-lg);
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: var(--text-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-4xl) 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-xl);
}

.title-main {
    display: block;
    color: var(--text-light);
}

.title-sub {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--secondary-color);
    margin-top: var(--spacing-sm);
}

.hero-description {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xs);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    margin: 0 auto var(--spacing-sm);
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(50%);
    animation: scrollWheel 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(50%) translateY(0); }
    40% { transform: translateX(50%) translateY(-10px); }
    60% { transform: translateX(50%) translateY(-5px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
}

/* ===================================
   Sections & Layout
   =================================== */
.section {
    padding: var(--spacing-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(44, 90, 160, 0.1);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--bg-gradient);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-secondary);
    padding: var(--spacing-4xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-description {
    margin-bottom: var(--spacing-xl);
}

.about-features {
    display: grid;
    gap: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    min-width: 24px;
}

.about-visual {
    position: relative;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-xl);
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.image-placeholder p {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.about-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
}

.card-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.card-body h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.card-body p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--spacing-4xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xl);
    font-size: var(--font-size-3xl);
    color: var(--text-light);
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-2xl);
}

.service-list {
    list-style: none;
    text-align: right;
}

.service-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    position: relative;
    padding-right: var(--spacing-lg);
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: var(--spacing-sm);
    color: var(--primary-color);
}

/* ===================================
   Team Section
   =================================== */
.team {
    background: var(--bg-secondary);
    padding: var(--spacing-4xl) 0;
}

.team-stats {
    margin-bottom: var(--spacing-3xl);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.team-stat {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.team-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-2xl);
    color: var(--text-light);
}

.stat-content .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.stat-content .stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.team-categories {
    margin-top: var(--spacing-3xl);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.category-card {
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-xl);
}

.category-card ul {
    list-style: none;
}

.category-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card li:last-child {
    border-bottom: none;
}

.count {
    background: var(--bg-gradient);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    min-width: 30px;
    text-align: center;
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    padding: var(--spacing-4xl) 0;
}

.projects-intro {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image .image-placeholder {
    aspect-ratio: 16/9;
    background: var(--bg-gradient);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: var(--transition-base);
    padding: var(--spacing-xl);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.project-info {
    padding: var(--spacing-xl);
}

.project-info h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.project-info ul {
    list-style: none;
}

.project-info li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    position: relative;
    padding-right: var(--spacing-lg);
}

.project-info li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: var(--spacing-sm);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
}

.projects-summary {
    text-align: center;
}

.summary-card {
    background: var(--bg-gradient);
    color: var(--text-light);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.summary-icon {
    font-size: var(--font-size-4xl);
}

.summary-content h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.summary-value {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--bg-secondary);
    padding: var(--spacing-4xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info {
    padding-left: var(--spacing-xl);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.contact-description {
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.contact-items {
    display: grid;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: var(--text-light);
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

/* Contact Links Styles */
.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
    border-radius: var(--radius-md);
    position: relative;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.contact-link i {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.contact-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Specific Link Styles */
.whatsapp-link {
    color: #25D366;
    font-weight: var(--font-weight-semibold);
}

.whatsapp-link:hover {
    color: #128C7E;
    background: rgba(37, 211, 102, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
}

.whatsapp-link .fa-whatsapp {
    color: #25D366;
    animation: pulse 2s infinite;
}

.email-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

.email-link:hover {
    background: rgba(44, 90, 160, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    color: var(--primary-dark);
}

.location-link {
    color: #dc2626;
    font-weight: var(--font-weight-medium);
}

.location-link:hover {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
}

.location-link .fa-external-link-alt {
    font-size: var(--font-size-xs);
}

/* Contact Item Enhanced Styles */
.contact-item {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(44, 90, 160, 0.1);
}

.contact-item small {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: block;
    margin-top: var(--spacing-xs);
    font-weight: var(--font-weight-normal);
}

/* WhatsApp Icon Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Status Indicator */
.contact-item .fa-circle {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* ===================================
   Form Styles
   =================================== */
.contact-form {
    background: var(--bg-primary);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.form-header h3 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-bold);
}

.form-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    position: relative;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container input,
.input-container select,
.input-container textarea {
    width: 100%;
    padding: var(--spacing-lg);
    padding-right: 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-family: var(--font-family-primary);
    transition: all var(--transition-base);
    background: #fafbfc;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-container input:focus,
.input-container select:focus,
.input-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    background: var(--bg-primary);
    transform: translateY(-1px);
}

.input-container input::placeholder,
.input-container textarea::placeholder {
    color: #9ca3af;
    font-size: var(--font-size-sm);
}

.input-icon {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 90, 160, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.input-icon.textarea-icon {
    top: var(--spacing-lg);
    transform: translateY(0);
}

.input-container:focus-within .input-icon {
    color: var(--primary-color);
    background: rgba(44, 90, 160, 0.15);
}

.input-container textarea {
    resize: vertical;
    min-height: 140px;
    line-height: var(--line-height-relaxed);
}

.input-container select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: left var(--spacing-lg) center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-left: 3.5rem;
}

.form-actions {
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.btn-submit {
    min-width: 200px;
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-submit .btn-icon {
    margin-right: var(--spacing-sm);
    transition: transform var(--transition-base);
}

.btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

.form-note {
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    background: rgba(44, 90, 160, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.form-note i {
    color: var(--primary-color);
}

/* Form Validation Styles */
.form-group.error .input-container input,
.form-group.error .input-container select,
.form-group.error .input-container textarea {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group.error .input-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.form-group.success .input-container input,
.form-group.success .input-container select,
.form-group.success .input-container textarea {
    border-color: #22c55e;
    background: #f0fdf4;
}

.form-group.success .input-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.error-message::before {
    content: '⚠️';
    font-size: var(--font-size-xs);
}

/* Loading State */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-2xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo i {
    color: var(--secondary-color);
}

.footer-brand .logo-text strong {
    color: var(--text-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
}

.footer-links h4,
.footer-services h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-services li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-stats {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    left: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-info {
        padding-left: 0;
    }
    
    /* Contact Links Mobile Adjustments */
    .contact-link {
        font-size: var(--font-size-lg);
        padding: var(--spacing-sm) 0;
    }
    
    .contact-item {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: var(--spacing-3xl) 0;
    }
    
    .section {
        padding: var(--spacing-3xl) 0;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Form Responsive Styles */
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-xl);
    }
    
    .form-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .btn-submit {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: var(--spacing-md);
        left: var(--spacing-md);
    }
    
    /* Mobile Form Adjustments */
    .contact-form {
        padding: var(--spacing-lg);
        margin: var(--spacing-md);
        border-radius: var(--radius-xl);
    }
    
    .form-header h3 {
        font-size: var(--font-size-xl);
    }
    
    .input-container input,
    .input-container select,
    .input-container textarea {
        padding: var(--spacing-md);
        padding-right: 3rem;
        border-radius: var(--radius-lg);
    }
    
    .form-actions {
        margin-top: var(--spacing-xl);
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .nav-toggle,
    .back-to-top,
    .loader {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* ===================================
   Accessibility Improvements
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================
   Selection Styles
   =================================== */
::selection {
    background: var(--primary-color);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-light);
}
