/* style.css - Premium Construction Company Website */
/* Last Updated: 2026-01-06 */

/* ===== CSS RESET & GLOBAL STYLES ===== */
:root {
    /* Premium Color Palette */
    --primary: #2563eb;      /* Blue */
    --primary-dark: #1e40af; /* Darker blue */
    --secondary: #1a365d; /* Dark blue - represents trust */
    --secondary-light: #2d4a7c;
    --accent: #c53030; /* Red accent - for CTAs */
    --light: #f7fafc;
    --dark: #2d3748;
    --gray: #718096;
    --gray-light: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 5px 15px rgba(212, 160, 23, 0.2);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: var(--space-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

.text-center {
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    white-space: nowrap;
}

.btn i {
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Primary Button */
.btn {
    background: var(--primary);
    color: white;
}

.btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

/* CTA Button */
.btn-cta {
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-cta:hover {
    background: #9b2c2c;
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border-color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-cta-outline:hover {
    background: white;
    color: var(--accent);
}

/* Special Buttons */
.btn-about, .btn-services, .btn-projects {
    background: var(--secondary);
    color: white;
}

.btn-about:hover, .btn-services:hover, .btn-projects:hover {
    background: var(--secondary-light);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--space-sm);
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    gap: 0.5rem;
}

/* Logo with image */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Remove font-family, font-size, font-weight, color, gap if no longer needed */
}

.logo img {
    display: block;          /* Removes extra space below the image */
    max-height: 60px;        /* Adjust to fit your header height */
    width: auto;             /* Maintain aspect ratio */
    height: auto;
    object-fit: contain;     /* Ensures the image scales nicely */
}

/* Optional: If you want to keep the gap between logo and nav items, 
   you can add margin-right to the logo instead of using gap */
.logo {
    margin-right: 1rem;       /* Creates space after the logo */
}

/* Main Navigation */
#mainNav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link i {
    font-size: 1.1rem;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: var(--shadow-xl);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown a:hover {
    background: var(--gray-light);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown a i {
    width: 20px;
    text-align: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ===== INDEX PAGE SPECIFIC STYLES ===== */
/* Hero Section Improvements */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px var(--space-sm) var(--space-xl);
    overflow: hidden;
}

/* Premium Background with Parallax Effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 54, 93, 0.45), rgba(26, 54, 93, 0.45)),
                url('assets/adjehome.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    z-index: -1;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    padding: var(--space-xl);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.typewriter-container {
    margin-bottom: var(--space-lg);
    min-height: 3.5rem;
    display: flex;
    justify-content: center;
}

.typewriter-text {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--primary);
    display: inline-block;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 8px;
    min-width: 200px;
}

/* About Home Section Improvements */
.about-home-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(to bottom, white 0%, var(--light) 100%);
}

.about-home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-home-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 500px; /* Fixed height for consistency */
}

.about-home-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 160, 23, 0.1) 0%, rgba(26, 54, 93, 0.1) 100%);
    z-index: 1;
}

.about-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.about-home-image:hover img {
    transform: scale(1.05);
}

.about-home-text h2 {
    color: var(--secondary);
    position: relative;
    padding-bottom: var(--space-sm);
}

.about-home-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.about-home-text p {
    margin-bottom: var(--space-md);
    color: var(--dark);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    padding: var(--space-md);
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--gray-light);
}

.about-stat-item {
    text-align: center;
    padding: var(--space-md);
    background: white;
    border-radius: 8px;
    transition: all var(--transition-normal);
    border-top: 4px solid var(--primary);
}

.about-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-about {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Services Preview Section Improvements */
.services-preview-section {
    padding: var(--space-xl) 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.services-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%231a365d"/></svg>');
    background-size: 1000px 100px;
    opacity: 0.1;
}

.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-preview-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 160, 23, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-preview-card:hover::before {
    opacity: 1;
}

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

.service-preview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-md);
    transition: all var(--transition-normal);
    box-shadow: 0 10px 20px rgba(212, 160, 23, 0.2);
}

.service-preview-card:hover .service-preview-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-preview-card h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.service-preview-card > p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.service-preview-list {
    list-style: none;
    margin-top: var(--space-md);
}

.service-preview-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 500;
}

.service-preview-list i {
    color: var(--primary);
    font-size: 0.875rem;
}

.btn-services {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Service Preview Image */
.service-preview-image {
    width: calc(100% + 4rem); /* expands to full card width (since card has 2rem padding on sides) */
    margin: -2rem -2rem 1.5rem -2rem; /* negative margin to counteract card padding */
    height: 180px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.service-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.service-preview-card:hover .service-preview-image img {
    transform: scale(1.05);
}

/* Adjust icon position and spacing */
.service-preview-icon {
    margin-top: 0.5rem; /* slight separation from image */
}

/* Ensure card content remains readable */
.service-preview-card {
    padding: 0 2rem 2rem 2rem; /* keep bottom/side padding, but remove top padding */
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .service-preview-image {
        height: 160px;
        margin: -2rem -1.5rem 1.5rem -1.5rem; /* if card padding changes, adjust */
    }
}

@media (max-width: 768px) {
    .service-preview-image {
        height: 140px;
        margin: -2rem -1.5rem 1.5rem -1.5rem;
    }
}

/* Projects Preview Section Improvements */
.projects-preview-section {
    padding: var(--space-xl) 0;
    background: white;
    position: relative;
}

.projects-preview-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light) 0%, transparent 100%);
    pointer-events: none;
}

.projects-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.project-preview-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.project-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* FIXED: Proper Image Sizing */
.project-preview-image {
    position: relative;
    height: 250px; /* Fixed height */
    width: 100%;
    overflow: hidden;
}

.project-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures images cover the area without distortion */
    display: block;
    transition: transform var(--transition-slow);
}

.project-preview-card:hover .project-preview-image img {
    transform: scale(1.1);
}

.project-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(212, 160, 23, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-preview-card:hover .project-preview-overlay {
    opacity: 1;
}

.project-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--secondary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-preview-card:hover .project-preview-link {
    transform: translateY(0);
}

.project-preview-link:hover {
    background: var(--secondary);
    color: white;
}

.project-preview-info {
    padding: var(--space-lg);
}

.project-preview-info h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.project-preview-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

.project-preview-info > p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.project-preview-tags {
    display: flex;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.375rem 0.875rem;
    background: var(--light);
    color: var(--gray);
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-tag:first-child {
    background: var(--primary);
    color: white;
}

.btn-projects {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Features Section Improvements */
.features-section {
    padding: var(--space-xl) 0;
    background: var(--light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid var(--gray-light);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-gold);
    border-color: var(--primary);
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* CTA Section Improvements */
.cta-section {
    position: relative;
    padding: var(--space-xl) 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(212, 160, 23, 0.9), rgba(212, 160, 23, 0.85)),
                url('assets/adjeo.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
    animation: ctaZoom 20s ease-in-out infinite alternate;
}

@keyframes ctaZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    min-width: 200px;
}

/* ===== RESPONSIVE IMPROVEMENTS FOR INDEX PAGE ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-home-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-home-image {
        height: 400px;
        order: -1;
    }
    
    .services-preview-grid,
    .projects-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .typewriter-text {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-home-image {
        height: 300px;
    }
    
    .services-preview-grid,
    .projects-preview-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-home-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .service-preview-card,
    .feature-card {
        padding: var(--space-lg);
    }
    
    .project-preview-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .typewriter-text {
        font-size: 1.25rem;
    }
    
    .about-home-stats {
        grid-template-columns: 1fr;
    }
    
    .about-home-image {
        height: 250px;
    }
    
    .service-preview-icon,
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-preview-card:hover .service-preview-icon,
.feature-card:hover .feature-icon {
    animation: float 1.5s ease-in-out infinite;
}

/* ===== LOADING OPTIMIZATION FOR IMAGES ===== */
.about-home-image img,
.project-preview-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== IMPROVED SECTION TRANSITIONS ===== */
section {
    scroll-margin-top: 80px; /* Accounts for fixed header */
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .cta-section::before,
    .service-preview-card,
    .feature-card,
    .project-preview-card {
        animation: none;
    }
    
    .hero-buttons .btn:hover,
    .service-preview-card:hover,
    .feature-card:hover,
    .project-preview-card:hover {
        transform: none;
    }
}
/* ===== ABOUT PAGE SPECIFIC STYLES ===== */
.about-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.8)),
                url('assets/adje.jpg') no-repeat center center;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px var(--space-sm) var(--space-md);
}

.about-hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

/* Story Section */
.about-story-section {
    padding: var(--space-xl) 0;
    background: white;
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.story-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 500px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-content h2 {
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.story-content p {
    margin-bottom: var(--space-md);
    color: var(--dark);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Mission & Vision */
.mission-vision-section {
    padding: var(--space-xl) 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.mission-card, .vision-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border-top: 4px solid transparent;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.mission-card:hover {
    border-top-color: var(--primary);
}

.vision-card:hover {
    border-top-color: var(--secondary);
}

.mission-card i, .vision-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.mission-card h3, .vision-card h3 {
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.mission-card p, .vision-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Values Section */
.values-section {
    padding: var(--space-xl) 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-light);
}

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

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-md);
    transition: all var(--transition-normal);
}

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

.value-card h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.value-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== TEAM SECTION (Single Profile) ===== */
.team-section {
    padding: var(--space-xl) 0;
}

.team-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
}

.team-card {
    max-width: 800px;
    background: white;
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.team-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.team-bio {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.8;
    text-align: left;
    margin-top: var(--space-md);
}

.team-bio p {
    margin-bottom: var(--space-sm);
}

.team-bio p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card {
        padding: var(--space-md);
    }
    
    .team-image {
        width: 150px;
        height: 150px;
    }
    
    .team-card h3 {
        font-size: 1.75rem;
    }
    
    .team-title {
        font-size: 1.1rem;
    }
    
    .team-bio {
        font-size: 1rem;
    }
}
/* ===== SERVICES SECTION ===== */
.services-preview-section {
    padding: var(--space-xl) 0;
    background: var(--light);
}

.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-preview-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-top: 4px solid transparent;
}

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

.service-preview-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.service-preview-list {
    list-style: none;
    margin-top: var(--space-md);
}

.service-preview-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-preview-list i {
    color: var(--primary);
}

/* Service Detail Card with Image */
.service-detail-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;           /* keeps image corners rounded */
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    padding: 0 0 var(--space-lg) 0;  /* remove top padding, keep bottom */
    border-top: 4px solid transparent;
    position: relative;
}

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

/* Full-width image at the top */
.service-detail-image {
    width: 100%;
    height: 200px;              /* fixed height – adjust as needed */
    overflow: hidden;
    margin-bottom: var(--space-md);  /* space between image and header */
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* ensures image covers area without distortion */
    display: block;
    transition: transform var(--transition-normal);
}

.service-detail-card:hover .service-detail-image img {
    transform: scale(1.05);     /* subtle zoom on hover */
}

/* Adjust header and content spacing */
.service-detail-header {
    padding: 0 var(--space-lg);  /* restore side padding */
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-detail-content {
    padding: 0 var(--space-lg);
}

/* Farming subsections styling (already present, but kept for completeness) */
.service-section {
    margin-top: var(--space-md);
}

.service-section h4 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-detail-image {
        height: 160px;
    }
    
    .service-detail-header {
        padding: 0 var(--space-md);
    }
    
    .service-detail-content {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .service-detail-image {
        height: 140px;
    }
}

/* ===== PROJECTS PAGE SPECIFIC STYLES ===== */
.projects-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.8)),
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px var(--space-sm) var(--space-md);
}

.projects-hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

/* Projects Section */
.projects-section {
    padding: var(--space-xl) 0;
    background: white;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* FIXED: Responsive Project Images */
.project-image {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content {
    padding: var(--space-md);
}

.project-content h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.completed {
    background: #c6f6d5;
    color: #22543d;
}

.project-status.ongoing {
    background: #fed7d7;
    color: #742a2a;
}

.project-content p {
    color: var(--gray);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: var(--light);
    color: var(--gray);
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Stats Section in Projects */
.about-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
}

.about-stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-top: 4px solid var(--primary);
}

.about-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE FIXES FOR ABOUT AND PROJECTS PAGES ===== */
@media (max-width: 1024px) {
    .about-story,
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .story-image {
        height: 400px;
        order: -1;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-hero h1,
    .projects-hero h1 {
        font-size: 2.5rem;
    }
    
    .story-image {
        height: 300px;
    }
    
    .mission-card,
    .vision-card,
    .value-card,
    .project-card {
        padding: var(--space-md);
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .about-home-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .about-stat-item {
        padding: var(--space-md);
    }
    
    .about-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero h1,
    .projects-hero h1 {
        font-size: 2rem;
    }
    
    .story-image {
        height: 250px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .about-home-stats {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATION DELAYS FOR CARDS ===== */
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }
.fade-in:nth-child(8) { animation-delay: 0.8s; }
.fade-in:nth-child(9) { animation-delay: 0.9s; }
.fade-in:nth-child(10) { animation-delay: 1s; }

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--space-xl) 0;
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    padding: var(--space-xl) 0;
    color: white;
    text-align: center;
}

/* Consistent CTA background for all pages[citation:6] */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(212, 160, 23, 0.9), rgba(212, 160, 23, 0.8)),
                url('https://images.unsplash.com/photo-1503387769-00a112127ca0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

/* ===== PAGE-SPECIFIC BACKGROUNDS ===== */
/* About page background */
.about-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.8)),
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px var(--space-sm) var(--space-md);
}

.about-hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Services page background */
.services-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.8)),
                url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px var(--space-sm) var(--space-md);
}

.services-hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Projects page background */
.projects-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.8)),
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px var(--space-sm) var(--space-md);
}

.projects-hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us page background */
.why-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.8)),
                url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px var(--space-sm) var(--space-md);
}

.why-hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Page-specific sections */
.about-story-section,
.services-details-section,
.projects-section,
.advantages-section {
    padding: var(--space-xl) 0;
}

.mission-vision-grid,
.values-grid,
.advantages-grid,
.testimonials-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.service-detail-card {
    background: white;
    border-radius: 8px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.service-detail-header i {
    font-size: 2rem;
    color: var(--primary);
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-features i {
    color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links i {
    font-size: 0.75rem;
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-contact i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    .about-home-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .services-preview-grid,
    .projects-preview-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    .nav-container {
        padding: 0.75rem var(--space-sm);
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
    }
    
    #mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        z-index: 1000;
        padding: var(--space-xl) var(--space-md);
        overflow-y: auto;
    }
    
    #mainNav.active {
        right: 0;
    }
    
    #mainNav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    #mainNav li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 1rem 0;
        font-size: 1.125rem;
        width: 100%;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light);
        border-radius: 4px;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .has-dropdown:hover .dropdown {
        max-height: 500px;
    }
    
    .dropdown a {
        padding: 0.75rem 1.5rem 0.75rem 3rem;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-preview-grid,
    .projects-preview-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-home-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .about-home-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .typewriter-text {
        font-size: 1.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.section-bg-light {
    background: var(--light);
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* ===== CONTACT PAGE SPECIFIC STYLES ===== */
.contact-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.8)),
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px var(--space-sm) var(--space-md);
}

.contact-hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

/* Contact Section */
.contact-section {
    padding: var(--space-xl) 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-info h2 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.contact-info > p {
    color: var(--gray);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--light);
    border-radius: 8px;
    transition: all var(--transition-normal);
    border-left: 4px solid transparent;
}

.contact-info-item:hover {
    transform: translateX(5px);
    border-left-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-details h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-details a:hover {
    color: var(--primary-dark);
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: var(--space-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
}

.contact-form-container h2 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.contact-form-container > p {
    color: var(--gray);
    margin-bottom: var(--space-lg);
}

.contact-form {
    margin-top: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    transition: all var(--transition-normal);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Map Section */
.map-section {
    padding: var(--space-xl) 0;
    background: var(--light);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    margin-top: var(--space-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-xl) 0;
}

.faq-section .value-card {
    text-align: left;
    padding: var(--space-lg);
}

.faq-section .value-card h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.faq-section .value-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Success Message */
.form-success {
    display: none;
    background: #c6f6d5;
    color: #22543d;
    padding: var(--space-md);
    border-radius: 4px;
    margin-top: var(--space-md);
    text-align: center;
    border: 1px solid #9ae6b4;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Error Message */
.form-error {
    display: none;
    background: #fed7d7;
    color: #742a2a;
    padding: var(--space-md);
    border-radius: 4px;
    margin-top: var(--space-md);
    text-align: center;
    border: 1px solid #fc8181;
}

.form-error.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Validation Styles */
.form-control.error {
    border-color: var(--accent);
}

.error-message {
    color: var(--accent);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* ===== RESPONSIVE DESIGN FOR CONTACT PAGE ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .contact-info-item {
        padding: var(--space-sm);
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-container,
    .contact-info-item {
        padding: var(--space-md);
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.25rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .faq-section .value-card {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .contact-details h3 {
        font-size: 1.125rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .form-group label {
        font-size: 0.875rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===== ANIMATION FOR FORM MESSAGES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORM FOCUS EFFECTS ===== */
.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(212, 160, 23, 0.1);
}

/* ===== SUBMIT BUTTON ANIMATION ===== */
.contact-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.contact-form button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form button[type="submit"]:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== SOCIAL ICONS IN CONTACT PAGE ===== */
.contact-info .social-icons {
    margin-top: 1rem;
}

.contact-info .social-icons a {
    background: var(--light);
    color: var(--dark);
}

.contact-info .social-icons a:hover {
    background: var(--primary);
    color: white;
}

/* ===== FORM VALIDATION STYLES ===== */
.contact-form.was-validated .form-control:invalid {
    border-color: var(--accent);
}

.contact-form.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

/* ===== LOADING STATE ===== */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: form-spinner 0.6s linear infinite;
}

@keyframes form-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ACCESSIBILITY ===== */
.form-control:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .contact-info-item,
    .form-control,
    .contact-form button[type="submit"] {
        transition: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .contact-form-container,
    .contact-info .social-icons,
    .map-container {
        display: none;
    }
    
    .contact-info {
        grid-column: 1 / -1;
    }
}

/* ===== SOCIAL RESPONSIBILITY PAGE SPECIFIC STYLES ===== */

/* Hero - uses same .about-hero styling from main CSS, but you can override if needed */
.social-hero {
    /* Already styled via .about-hero */
}

/* Focus Area Section (uses .about-story inside .mission-vision-section) */
.mission-vision-section .about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-lg);
}

/* Ensure images in story sections are fully responsive */
.mission-vision-section .story-image {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mission-vision-section .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.mission-vision-section .story-image:hover img {
    transform: scale(1.05);
}

.mission-vision-section .story-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark);
}

/* Commitment Card (single mission-card) */
.mission-vision-grid.single-card {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-vision-grid .mission-card.social-commitment {
    border-top-color: var(--primary);
    padding: var(--space-xl);
    text-align: center;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.mission-vision-grid .mission-card.social-commitment:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.mission-vision-grid .mission-card.social-commitment i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.mission-vision-grid .mission-card.social-commitment h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.mission-vision-grid .mission-card.social-commitment p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.125rem;
}

/* Impact Section (values grid) - already styled by .values-grid, but we can add a subtle variation */
.values-section .value-card {
    /* Inherits from main CSS */
}

.values-section .value-card .value-icon i {
    font-size: 2rem;
}

/* CTA Section - already styled, but ensure spacing */
.cta-section {
    margin-top: 0; /* Already defined */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .mission-vision-section .about-story {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .mission-vision-section .story-image {
        height: 350px;
        order: 1; /* Adjust order if needed */
    }
    
    .mission-vision-section .story-content {
        order: 2;
    }
    
    .mission-vision-grid.single-card {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 768px) {
    .mission-vision-section .story-image {
        height: 280px;
    }
    
    .mission-vision-grid .mission-card.social-commitment {
        padding: var(--space-lg);
    }
    
    .mission-vision-grid .mission-card.social-commitment p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mission-vision-section .story-image {
        height: 220px;
    }
    
    .mission-vision-grid .mission-card.social-commitment {
        padding: var(--space-md);
    }
}
