/**
 * Front Page Styles - Engineering Solutions Layout
 * Professional and modern engineering-themed design
 * @package CransysCore
 * @version 1.0.0
 */

/* ===================================
   1. HERO SECTION - FULLSCREEN
   =================================== */

.hero-section.fullscreen-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 90, 160, 0.7);
    background: linear-gradient(
        45deg, 
        rgba(44, 90, 160, 0.85) 0%,
        rgba(30, 64, 175, 0.75) 100%
    );
    z-index: 2;
}

.hero-content-center {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.hero-main-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-cta-buttons .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta-buttons .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.hero-cta-buttons .btn:hover:before {
    left: 100%;
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(8px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* ===================================
   2. SOLUTIONS INTRO SECTION
   =================================== */

.solutions-intro-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
    color: white;
}

.solutions-intro-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.section-left {
    position: sticky;
    top: 2rem;
}

.section-label {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 2rem;
}

.solutions-grid {
    display: grid;
    gap: 2rem;
}

.solution-intro-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.solution-intro-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: left 0.8s ease;
}

.solution-intro-card:hover:before {
    left: 100%;
}

.solution-intro-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solution-intro-image {
    margin-bottom: 1.5rem;
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.solution-intro-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.solution-intro-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.solution-link:hover {
    color: white;
    transform: translateX(5px);
}

.solution-link i {
    transition: transform 0.3s ease;
}

.solution-link:hover i {
    transform: translateX(5px);
}

/* ===================================
   3. ABOUT SECTION WITH IMAGE
   =================================== */

.about-section.section-with-image {
    padding: 6rem 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image:hover .about-image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.about-image:hover .play-button {
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.about-content {
    padding-left: 2rem;
    color: var(--text-primary);
}

.about-content .section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 24px;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* ===================================
   4. STATISTICS SECTION
   =================================== */

.statistics-section {
    padding: 4rem 0;
    background: var(--bg-dark);
    position: relative;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
    color: white;
    position: relative;
}

.stat-item:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color) 0%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   5. LOCATION/VIDEO SECTION
   =================================== */

.location-section.section-with-video {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 2;
}

.location-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pexels-darrel-und-217939-1087182.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.location-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.location-badge {
    display: inline-block;
    margin-bottom: 2rem;
}

.location-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.location-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff; /* ensure readability over dark overlay */
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.location-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   6. SERVICES PRICING SECTION
   =================================== */

.services-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-light .section-header {
    color: var(--text-primary);
}

.section-dark .section-header {
    color: white;
}

.section-header .section-title {
    color: var(--primary-color);
}

.services-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-package-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.service-package-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.package-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.package-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.package-duration {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.package-description {
    margin-bottom: 2rem;
}

.package-description p {
    color: var(--text-primary);
    line-height: 1.6;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 20px;
}

.package-cta .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
}

.section-footer {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section-footer .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ===================================
   7. TEAM SECTION
   =================================== */

.team-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-section .section-title {
    color: var(--primary-color);
}

.team-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 800px;
    margin: 1rem auto 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.team-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.05), transparent);
    transition: left 0.8s ease;
}

.team-card:hover:before {
    left: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.3);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-position {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-meta {
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.team-experience {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.team-experience i {
    color: var(--accent-color);
}

.team-certifications,
.team-specialties {
    text-align: left;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.team-certifications strong,
.team-specialties strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.team-certifications span,
.team-specialties span {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===================================
   8. NEWS SECTION
   =================================== */

.news-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.news-section .section-header {
    color: white;
}

.news-section .section-title {
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: white;
    transform: translateX(5px);
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* ===================================
   9. FINAL CTA SECTION
   =================================== */

.final-cta-section.section-with-video {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 1;
}

.cta-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 2;
}

.final-cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffff;
}

.cta-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cta-buttons .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

.cta-contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
}

.contact-items {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ===================================
   10. CONSULTATION MODAL STYLES
   =================================== */

/* Ensure modal overlays the whole page and dims background */
.modal {
    display: none;               /* hide by default when Bootstrap is not present */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: var(--z-modal, 1050);
    overflow-y: auto;
}
.modal.show { display: block; }
.modal-dialog { margin: 1.75rem auto; max-width: 980px; position: relative; }
.modal-dialog-centered { display: flex; align-items: center; justify-content: center; min-height: calc(100% - 3.5rem); }
.modal.fade .modal-content { transform: translateY(-10px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.modal.show .modal-content { transform: none; opacity: 1; }
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 24, 39, 0.65); /* slate/blue tint */
    backdrop-filter: blur(2px);
    z-index: var(--z-modal-backdrop, 1040);
}
.modal-backdrop.show { opacity: 1; }
body.modal-open { overflow: hidden; }
body.modal-open #back-to-top { display: none !important; }

/* Wider modal for better layout */
.modal-dialog.modal-lg {
    max-width: 980px;
}

.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Decorative accent under the header */
.modal-header:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    color: var(--accent-color);
}

.modal-header .close {
    margin-left: auto;
    color: white;
    opacity: 0.9;
    font-size: 1.5rem;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

/* Two-column layout: benefits + form */
.consultation-info {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr;
    gap: 2rem;
    align-items: start;
}

.consultation-benefits {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem 1.5rem 1rem;
    margin-bottom: 0; /* handled by grid */
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

.consultation-benefits h6 {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    color: var(--text-primary);
}

.benefit-list i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 18px;
}

.engineering-form {
    margin-top: 0;
}

.engineering-form .form-group {
    margin-bottom: 1.25rem;
}

.engineering-form label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.required {
    color: var(--accent-color);
}

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    color: var(--text-primary);
    font-weight: normal;
    cursor: pointer;
}

/* Stronger button presence inside modal */
.engineering-form .btn {
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

/* ===================================
   5. WHY CHOOSE US SECTION
   =================================== */

/* Generic accent section background used by why-choose-us */
.section-accent {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
}

.why-choose-us {
    padding: 6rem 0;
    position: relative;
}

/* subtle top divider line */
.why-choose-us:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reason-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-all);
    color: var(--text-primary);
}

/* sweep highlight like other cards on the front page */
.reason-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.06), transparent);
    transition: left 0.8s ease;
}

.reason-card:hover:before {
    left: 100%;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-color);
}

.reason-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
    margin-bottom: 1rem;
}

.reason-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reason-desc {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ===================================
   11. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .section-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
    
    .services-pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Stack modal columns on tablets/phones */
    .consultation-info {
        grid-template-columns: 1fr;
    }
    
    .section-left {
        position: static;
        text-align: center;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-item:not(:last-child):after {
        display: none;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .services-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 3rem;
    }
    
    .service-package-card.popular {
        transform: none;
    }
    
    .contact-items {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-footer {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-section.fullscreen-hero {
        padding: 2rem 0;
    }
    
    .hero-content-center {
        padding: 1rem;
    }
    
    .solutions-intro-section,
    .about-section.section-with-image,
    .services-section,
    .team-section,
    .news-section {
        padding: 4rem 0;
    }
    
    .location-section.section-with-video,
    .final-cta-section.section-with-video {
        padding: 6rem 0;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .statistics-section {
        padding: 3rem 0;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .location-image {
        background-attachment: scroll;
    }
    
    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        margin: 0;
    }
    
    .form-row > div {
        padding: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .solution-intro-card {
        padding: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .reason-card {
        padding: 1.5rem;
    }
    
    .news-card .news-content {
        padding: 1.25rem;
    }
    
    .service-package-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-buttons .btn,
    .section-footer .btn {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ===================================
   12. ANIMATION CLASSES
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   12. TEXT VISIBILITY FIXES
   =================================== */

/* Ensure text is visible in light sections */
.section-light {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.section-light *:not(.btn):not(.section-label):not(.popular-badge):not(.news-category):not(.team-position):not(.package-price) {
    color: var(--text-primary) !important;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--primary-color) !important;
}

.section-light .section-title {
    color: var(--primary-color) !important;
}

.section-light .section-description,
.section-light p {
    color: var(--text-primary) !important;
}

/* Keep accent colors for specific elements */
.section-light .team-position {
    color: var(--accent-color) !important;
}

.section-light .package-price {
    color: var(--accent-color) !important;
}

/* About section specific */
.about-section.section-light .about-content {
    color: var(--text-primary);
}

.about-section.section-light .section-title {
    color: var(--primary-color) !important;
}

.about-section.section-light .section-description {
    color: var(--text-primary) !important;
}

/* Keep proper colors for icons and accents */
.section-light .feature-item i,
.section-light .team-experience i,
.section-light .package-features i {
    color: var(--accent-color) !important;
}

.section-light .team-name {
    color: var(--primary-color) !important;
}

/* Ensure text is visible in dark sections */
.section-dark,
.section-dark * {
    color: white;
}

.section-dark .section-title,
.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: white !important;
}

/* ===================================
   13. UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.section-light {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.align-items-center {
    align-items: center;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 992px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}