/*
=====================================
AQUIBON WEBSITE - ENGINEERING CONSULTING PAGE CSS
=====================================
Project: Aquibon Water & Solar Solutions
Developer: Blaxium Hub
Author: Brian Guvava
Version: 1.0.0
=====================================
*/

/* ===== ENGINEERING HERO SECTION ===== */
.engineering-hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.engineering-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.engineering-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(33, 33, 33, 0.85) 0%,
        rgba(46, 125, 50, 0.75) 50%,
        rgba(255, 111, 0, 0.65) 100%
    );
    z-index: 2;
}

.engineering-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.engineering-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.engineering-hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.engineering-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.scroll-indicator {
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(-5px);
    color: var(--accent-orange);
}

.scroll-indicator i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* ===== SERVICE OVERVIEW SECTION ===== */
.service-overview-section {
    padding: 4rem 0;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 2px solid rgba(46, 125, 50, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
    border-color: var(--primary-green);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
    text-align: center;
}

.service-card p {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--text-gray);
    font-family: var(--font-secondary);
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* ===== METHODOLOGY SECTION ===== */
.methodology-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.methodology-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem 3rem 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 2rem;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: auto;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--white);
}

.timeline-content h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content ul li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
    color: var(--text-gray);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
}

.timeline-content ul li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: var(--accent-orange);
    font-size: 0.7rem;
}

/* ===== TEAM QUALIFICATIONS SECTION ===== */
.team-qualifications-section {
    padding: 4rem 0;
}

.qualification-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    border: 2px solid rgba(46, 125, 50, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.qualification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(255, 111, 0, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.qualification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.2);
    border-color: var(--primary-green);
}

.qualification-card:hover::before {
    opacity: 1;
}

.qualification-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.qualification-card:hover .qualification-icon {
    transform: scale(1.1) rotate(5deg);
}

.qualification-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.qualification-card h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.qualification-card p {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.qualification-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.qualification-badges .badge {
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-green));
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: none;
}

/* ===== ENGINEERING PORTFOLIO SECTION ===== */
.engineering-portfolio-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.portfolio-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.7), rgba(46, 125, 50, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    display: flex;
    gap: 1rem;
}

.project-type,
.project-location {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-black);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.8rem;
}

.portfolio-content p {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-metrics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.metric {
    text-align: center;
    flex: 1;
    padding: 0.8rem;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.metric:hover {
    background: rgba(46, 125, 50, 0.1);
    transform: translateY(-2px);
}

.metric strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.2rem;
}

.metric small {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
    padding: 4rem 0;
}

.advantage-list {
    margin-top: 2rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.advantage-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.advantage-item h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.advantage-item p {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.engineering-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid rgba(46, 125, 50, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(255, 111, 0, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.15);
    border-color: var(--primary-green);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card p {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    margin: 0;
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.engineering-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
    position: relative;
    overflow: hidden;
}

.engineering-cta-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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.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 ease;
}

.cta-buttons .btn:hover::before {
    left: 100%;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .engineering-hero-title {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        text-align: center;
        padding: 2rem;
        margin-left: 0;
        margin-right: 0;
        margin-top: 1rem;
    }
    
    .timeline-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
    
    .engineering-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .engineering-hero-section {
        height: 60vh;
        min-height: 450px;
    }
    
    .engineering-hero-title {
        font-size: 2rem;
    }
    
    .engineering-hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card,
    .qualification-card {
        padding: 2rem 1.5rem;
    }
    
    .project-metrics {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .engineering-hero-title {
        font-size: 1.8rem;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .portfolio-image {
        height: 160px;
    }
}
