/* Modern Eurak Website - Ultra-Attractive Redesign */

:root {
    /* Premium Color Palette */
    --primary-color: #0066cc;
    --secondary-color: #1a237e;
    --accent-color: #ff4757;
    --accent-secondary: #ff6b35;
    --success-color: #00d084;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #1e293b;
    --light-color: #ffffff;
    --muted-color: #6c757d;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    
    /* Beautiful Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #0066cc 0%, #1a237e 50%, #ff4757 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    --gradient-accent: linear-gradient(135deg, #ff4757 0%, #ff6b35 100%);
    --gradient-success: linear-gradient(135deg, #00d084 0%, #48bb78 100%);
    
    /* Enhanced Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 30px 60px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

/* Import Beautiful Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Header Styles */
.page-header {
    background: var(--gradient-hero) !important;
    color: var(--text-light) !important;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding-top: 140px;
    padding-bottom: 80px;
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #ffffff !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.page-header p,
.page-header .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    line-height: 1.6;
}

/* General Section Spacing */
section:not(.hero-section):not(.page-header) {
    margin-top: 2rem;
}

/* Sections that follow page headers need more space */
.page-header + section,
.page-header + .py-5 {
    margin-top: 0;
    padding-top: 6rem !important;
}

/* Sections on pages without page headers (like home) */
body:not(.has-page-header) section:first-of-type {
    margin-top: 100px;
}

/* Contact and other pages with content sections */
.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Special spacing for sections right after navigation */
section.mt-5 {
    margin-top: 8rem !important;
}

/* Fix for content that appears right after fixed navbar */
.content-after-navbar {
    padding-top: 120px;
}

/* Background Utility Classes */
.bg-primary {
    background: var(--gradient-primary) !important;
    color: var(--text-light) !important;
}

.bg-secondary {
    background: var(--secondary-color) !important;
    color: var(--text-light) !important;
}

.bg-accent {
    background: var(--gradient-accent) !important;
    color: var(--text-light) !important;
}

.bg-light {
    background: var(--light-color) !important;
    color: var(--text-dark) !important;
}

.bg-dark {
    background: var(--dark-color) !important;
    color: var(--text-light) !important;
}

/* Text Color Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-white {
    color: #ffffff !important;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.display-1 { font-size: 4.5rem; font-weight: 800; }
.display-2 { font-size: 4rem; font-weight: 800; }
.display-3 { font-size: 3.5rem; font-weight: 700; }
.display-4 { font-size: 3rem; font-weight: 700; }
.display-5 { font-size: 2.5rem; font-weight: 600; }
.display-6 { font-size: 2rem; font-weight: 600; }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--muted-color);
}

/* Ultra-Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    min-height: 80px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 1rem 0;
    min-height: 70px;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    line-height: 1.2;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    margin-right: 1rem;
}

.navbar-brand span {
    display: inline-block;
    max-width: 350px;
    white-space: nowrap;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 1rem 1.5rem !important;
    border-radius: var(--radius-md);
    margin: 0 0.2rem;
    font-size: 1rem;
    line-height: 1.4;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.05);
}

/* Enhanced Navbar Toggle Button */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 102, 204, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 102, 204, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
    .navbar {
        padding: 1rem 0;
        min-height: 75px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .navbar-brand span {
        max-width: 280px;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 102, 204, 0.1);
    }
    
    .nav-link {
        padding: 1rem !important;
        margin: 0.25rem 0;
        text-align: center;
        background: rgba(0, 102, 204, 0.02);
        border-radius: var(--radius-md);
        font-size: 1.1rem;
    }
    
    .nav-link:hover {
        background: rgba(0, 102, 204, 0.1);
    }
    
    .btn-modern {
        margin-top: 1rem;
        text-align: center;
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.8rem 0;
        min-height: 70px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .navbar-brand span {
        max-width: 220px;
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.875rem !important;
    }
}

/* Premium Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-xl);
    padding: 0.875rem 2rem;
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: var(--light-color);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.3);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Spectacular Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Add padding to prevent content from being cut off */
    padding-bottom: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 71, 87, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 102, 204, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 60px 60px;
    animation: backgroundMove 60s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-2xl);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem; /* Add top margin to prevent clipping */
    font-weight: 700;
    color: var(--primary-color);
    animation: pulse 3s infinite;
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
    text-shadow: none;
    transform: translateY(0); /* Ensure no transform issues */
    position: relative;
    z-index: 3;
}

.hero-badge {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge i {
        font-size: 0.9rem;
    }

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 30%, #d97706 60%, #92400e 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

.hero-description {
    font-size: 1.375rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Trust Indicators */
.trust-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 4rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.trust-item {
    text-align: center;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.trust-item:hover {
    transform: translateY(-10px);
}

.trust-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    display: block;
}

.trust-label {
    font-size: 1rem;
    color: rgba(248, 250, 252, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Services Section - Premium Design */
.services-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-accent);
    color: var(--light-color);
    border-radius: var(--radius-2xl);
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.service-card {
    background: var(--gradient-card);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-2xl);
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-2xl);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    color: var(--light-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--muted-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.service-features i {
    margin-right: 1rem;
    color: var(--success-color);
    font-size: 1.125rem;
}

/* CTA Section - Enhanced Readability */
.cta-section {
    background: linear-gradient(135deg, #1a237e 0%, #0066cc 50%, #1e293b 100%) !important;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2,
.cta-section p,
.cta-section .lead {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
    font-weight: 600;
}

/* CTA Section Text Styling */
.bg-primary .lead,
.bg-primary p {
    color: white !important;
}

.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
    color: white !important;
}

/* Ensure all text elements in primary background sections are white */
.bg-primary * {
    color: white !important;
}

.bg-primary .text-white {
    color: white !important;
}

.bg-primary .text-white * {
    color: white !important;
}

/* Specific styling for services CTA section */
section.bg-primary.text-white p.lead {
    color: white !important;
    opacity: 0.95;
}

section.bg-primary.text-white h2 {
    color: white !important;
    font-weight: 700;
}

/* Page Headers and CTA Sections - Comprehensive White Text Styling */
.page-header.bg-primary.text-white h1,
.page-header.bg-primary.text-white p,
.page-header.bg-primary.text-white .lead {
    color: white !important;
}

.page-header.bg-primary.text-white * {
    color: white !important;
}

/* All sections with bg_primary should have white text */
section.bg-primary h1,
section.bg-primary h2,
section.bg-primary h3,
section.bg-primary h4,
section.bg-primary h5,
section.bg-primary h6,
section.bg-primary p,
section.bg-primary span,
section.bg-primary div,
section.bg-primary .lead {
    color: white !important;
}

/* Ensure icons in primary sections are visible */
.bg-primary .contact-icon i,
.bg-primary .benefit-icon i,
.bg-primary .step-number,
.bg-primary .service-icon i {
    color: white !important;
}

/* Modal headers with primary background */
.modal-header.bg-primary h5,
.modal-header.bg-primary * {
    color: white !important;
}

/* Override any conflicting Bootstrap or custom styles */
.text-white,
.text-white *,
.bg-primary.text-white,
.bg-primary.text-white * {
    color: white !important;
}

/* Testimonials Section */
.testimonial-card {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
    z-index: 1;
}

.testimonial-card > * {
    position: relative;
    z-index: 2;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.testimonial-card .fas.fa-quote-left {
    color: var(--primary-color);
    opacity: 0.8;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-color);
    font-weight: 500;
    font-style: italic;
}

.testimonial-author strong {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author .text-muted {
    color: #6c757d !important;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Testimonials Section Header */
.testimonials-section h2 {
    color: var(--dark-color);
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonials-section .lead {
    color: #6c757d !important;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Work Gallery Styles */
.work-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-card);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.work-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(50%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.work-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* Enhanced Gallery Container for Why Choose Us section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 500px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Service Showcase Cards */
.quote-service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.quote-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.quote-service-card img {
    transition: transform 0.3s ease;
}

.quote-service-card:hover img {
    transform: scale(1.05);
}

/* Feature Cards for Contact Page */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.feature-card img {
    transition: transform 0.3s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

/* Project Card Overlay */
.project-image {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* About Images Grid */
.about-images img {
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: scale(1.05);
}

/* Service Detail Cards with Images */
.service-detail-card {
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl) !important;
}

.service-image img {
    transition: transform 0.3s ease;
}

.service-detail-card:hover .service-image img {
    transform: scale(1.1);
}

/* Responsive adjustments for all image cards */
@media (max-width: 768px) {
    .quote-service-card img,
    .feature-card img {
        height: 150px;
    }
    
    .about-images .row {
        gap: 0.5rem;
    }
    
    .about-images .col-6 {
        padding: 0.25rem;
    }
}

@media (max-width: 576px) {
    .quote-service-card,
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .about-images {
        margin-top: 2rem;
    }
}

/* Background section styling */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Enhanced section headers */
.display-5 {
    font-weight: 900;
    color: var(--dark-color);
}

.lead.text-muted {
    color: #6c757d !important;
    font-weight: 500;
}

/* Animations */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); 
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px; /* Increase padding on mobile */
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-badge {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .trust-section {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .trust-number {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .cta-description {
        font-size: 1.1rem;
        text-shadow: 0 1px 5px rgba(0,0,0,0.2);
        margin-bottom: 2rem;
    }
    
    .cta-section .btn {
        margin-bottom: 0.5rem;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Project page mobile fixes */
    .project-filters {
        text-align: center;
    }
    
    .project-filter {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-card h5 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--dark-color) !important;
    }
    
    .project-card .text-muted {
        font-size: 0.9rem;
        color: #6c757d !important;
        line-height: 1.4;
    }
    
    .project-card .badge {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .project-details p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .project-details strong {
        font-weight: 700;
        color: var(--dark-color) !important;
    }
    
    .case-study-content h2 {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--dark-color) !important;
    }
    
    .case-study-content .lead {
        font-size: 1rem;
        color: #6c757d !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
        font-weight: 900;
        color: white !important;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
        color: rgba(255,255,255,0.95) !important;
    }
}

/* Enhanced Footer Styling */
.footer-modern {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.footer-modern .container {
    position: relative;
    z-index: 2;
}

.footer-brand {
    color: #ffffff !important;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-description {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-heading {
    color: #60a5fa !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem !important;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 2.2;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: #60a5fa !important;
    transform: translateX(5px);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-icon {
    color: #10b981 !important;
    width: 18px;
    text-align: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 12px;
    margin-right: 12px;
    margin-bottom: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin: 2.5rem 0 !important;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

/* Footer Logo Styling */
.footer-logo {
    height: 40px;
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-logo:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== PROJECTS PAGE REDESIGN ==================== */

/* Projects Hero Section */
.projects-hero {
    position: relative;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/industrial-machinery.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.9) 0%, 
        rgba(26, 35, 126, 0.8) 50%, 
        rgba(255, 71, 87, 0.9) 100%);
    z-index: 2;
}

.projects-hero .container {
    position: relative;
    z-index: 3;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-stats {
    margin-top: 3rem;
}

.hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Modern Filter Buttons */
.project-filters {
    padding: 1rem 0;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Projects Masonry Layout */
.projects-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Modern Project Cards */
.project-card-wrapper {
    transition: all 0.3s ease;
}

.modern-project-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

/* Project Image Container */
.project-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.modern-project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-category-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.modern-project-card:hover .project-category-badge {
    transform: translateY(0);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modern-project-card:hover .project-actions {
    transform: translateY(0);
}

.action-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: scale(1.1);
}

/* Project Content */
.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 1rem;
}

.project-year {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-description {
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-meta {
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.project-status .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-indicator.completed {
    color: var(--success-color);
}

.project-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-modern-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-modern {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Capability Cards */
.capability-card {
    padding: 2rem;
    transition: all 0.3s ease;
    color: white;
}

.capability-card:hover {
    transform: translateY(-5px);
}

.capability-card h4 {
    color: white !important;
    font-weight: 700;
}

.capability-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.capability-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.capability-icon i {
    color: white;
}

/* Project Modals */
.modal-content {
    border-radius: var(--radius-xl);
}

.project-details-list {
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.modal-actions {
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image-container {
        height: 220px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .project-title {
        margin-right: 0;
    }
    
    .project-footer {
        flex-direction: column;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .hero-stats .stat-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .projects-hero {
        padding: 3rem 0;
    }
    
    .project-image-container {
        height: 200px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
}

/* Animation Classes */
.project-card-wrapper[data-category] {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-wrapper.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Filter Animation */
.projects-masonry.filtering .project-card-wrapper {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Capabilities Section Specific Styling */
.bg-dark .capability-card * {
    color: white !important;
}

.bg-dark .capability-card h4,
.bg-dark .capability-card h2,
.bg-dark .capability-card h3 {
    color: white !important;
    font-weight: 700;
}

.bg-dark .capability-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-dark .capability-icon i {
    color: var(--accent-color) !important;
}

/* Ensure text visibility in dark sections */
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: white !important;
}

.bg-dark p,
.bg-dark span,
.bg-dark div {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-dark .lead {
    color: rgba(255, 255, 255, 0.8) !important;
}