/* ==========================================================
   WIN-TEC ELECTRICAL - MAIN STYLESHEET
   Accurately recreating the exact visual design specification
   ========================================================== */

:root {
    --primary-red: #d90429;
    --primary-red-hover: #b3001e;
    --dark-red-gradient: linear-gradient(135deg, #b80018 0%, #870010 100%);
    --dark-charcoal: #12161b;
    --dark-slate: #1a1f26;
    --dark-subtle: #242b35;
    --text-main: #1e242c;
    --text-muted: #5c6574;
    --border-color: #eaedf1;
    --border-subtle: #e2e8f0;
    --card-bg: #ffffff;
    --bg-light: #f8fafc;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.2px;
}

a {
    color: inherit;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background-color: var(--dark-slate);
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-motto {
    color: #cbd5e1;
    font-weight: 500;
}

.top-icon {
    color: var(--primary-red);
    font-size: 12px;
}

.top-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.top-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.top-social-link {
    color: #94a3b8;
    font-size: 12px;
    text-decoration: none;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.top-social-link:hover {
    color: #ffffff;
    background-color: var(--primary-red);
}

/* ==================== MAIN NAVBAR ==================== */
#mainNav {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu-list .nav-link {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1e293b;
    padding: 8px 16px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu-list .nav-link:hover {
    color: var(--primary-red);
}

.nav-menu-list .nav-link.active {
    color: var(--primary-red);
}

.nav-menu-list .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

/* Red CTA Button */
.btn-quote {
    background-color: var(--primary-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 22px;
    border-radius: 4px;
    border: none;
    transition: all 0.25s ease;
}

.btn-quote:hover {
    background-color: var(--primary-red-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
    transform: translateY(-1px);
}

/* ==================== HERO SECTION (FULL-WIDTH BANNER) ==================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-fullwidth {
    background-color: #0f141a;
    min-height: 600px;
}

.hero-fullwidth-bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero_fullwidth_banner.jpg') center right / cover no-repeat;
    z-index: 1;
}

.hero-content-container {
    z-index: 2;
}

.min-vh-hero {
    min-height: 560px;
}

.hero-badge-tag {
    font-size: 12px;
    letter-spacing: 1.5px;
}

.hero-title {
    font-size: 2.95rem;
    font-weight: 900;
    line-height: 1.15;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 540px;
}

/* Primary Action Button */
.btn-primary-custom {
    background-color: var(--primary-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 26px;
    border-radius: 4px;
    border: 1px solid var(--primary-red);
    transition: all 0.25s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 4, 41, 0.3);
    transform: translateY(-1px);
}

/* Outline White Action Button for Full-width Hero */
.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 26px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: #12161b;
    border-color: #ffffff;
    transform: translateY(-1px);
}

.border-white-15 {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Outline Action Button */
.btn-outline-custom {
    background-color: #ffffff;
    color: #1e293b;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 26px;
    border-radius: 4px;
    border: 1.5px solid #1e293b;
    transition: all 0.25s ease;
}

.btn-outline-custom:hover {
    background-color: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Hero Feature Circles */
.feat-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-red);
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.feat-text {
    font-size: 11px;
    letter-spacing: 0.5px;
}

.hero-img {
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ==================== ABOUT US SECTION ==================== */
.about-section {
    background-color: #ffffff;
}

.section-tag {
    font-size: 12px;
    letter-spacing: 1.5px;
}

.section-heading {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.25;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-stat-item {
    flex: 1;
}

.stat-icon-wrapper i {
    font-size: 24px;
}

.stat-number {
    font-size: 1.45rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background-color: #e2e8f0;
    margin: 0 10px;
}

.about-img {
    object-fit: cover;
}

/* ==================== VISION & MISSION SECTION ==================== */
.vision-mission-section {
    background-color: #8c0012;
    position: relative;
    overflow: hidden;
}

.vision-mission-container {
    background: linear-gradient(90deg, #9b0014 0%, #850011 48%, #1a1f26 52%, #12161c 100%);
}

.vision-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

.vm-title {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.vm-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #f1f5f9 !important;
}

/* ==================== WHY CHOOSE / CORE VALUES ==================== */
.core-values-section {
    border-bottom: 1px solid var(--border-color);
}

.core-value-card {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.core-value-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.value-icon i {
    font-size: 28px;
}

.value-title {
    font-size: 11px;
    letter-spacing: 0.4px;
    color: #1e293b;
    line-height: 1.4;
}

.statement-line {
    height: 1px;
    background-color: #cbd5e1;
    max-width: 140px;
}

.statement-text {
    font-size: 0.85rem;
    max-width: 760px;
}

/* ==================== ENGINEERING SERVICES ==================== */
.services-section {
    background-color: #f8fafc;
}

.section-subheading {
    font-size: 13px;
    letter-spacing: 1.5px;
}

.service-card {
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #ffffff;
}

.service-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
    transform: translateY(-4px);
}

.service-img-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
    background-color: #0f172a;
}

.service-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-number-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    z-index: 2;
}

.service-icon i {
    font-size: 22px;
}

.service-title {
    font-size: 13px;
    line-height: 1.4;
    min-height: 36px;
}

.service-desc {
    font-size: 12px;
    line-height: 1.6;
    min-height: 48px;
}

.service-link {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.service-link:hover {
    color: var(--primary-red-hover) !important;
    text-decoration: underline !important;
}

/* ==================== CAPABILITIES SECTION ==================== */
.capabilities-section {
    background-color: #14181f;
    overflow: hidden;
}

.capabilities-img {
    object-fit: cover;
    min-height: 380px;
}

.capabilities-content-col {
    background-color: #14181f;
    background-image: url('../images/capabilities_clean_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    position: relative;
}

.capabilities-title {
    font-size: 1.45rem;
    letter-spacing: 0.5px;
}

.cap-check-box {
    width: 18px;
    height: 18px;
    background-color: var(--primary-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 11px;
    flex-shrink: 0;
}

.cap-text {
    font-size: 0.9rem;
    color: #f1f5f9;
}

/* ==================== SELECTED PROJECTS ==================== */
.projects-section {
    background-color: #ffffff;
}

.view-all-link {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.view-all-link:hover {
    color: var(--primary-red-hover) !important;
    text-decoration: underline !important;
}

.project-card {
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.project-img-wrapper {
    height: 140px;
    overflow: hidden;
}

.project-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-title {
    font-size: 12px;
    line-height: 1.4;
}

.project-category {
    font-size: 11px;
}

/* Achievements Ribbon */
.achieve-num {
    font-size: 11px;
}

.achieve-value {
    font-size: 1.5rem;
    line-height: 1.1;
}

.achieve-label {
    font-size: 10px;
    letter-spacing: 0.5px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-section {
    background-color: #12161b;
}

.testimonial-left-col {
    background-color: #161a20;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e2e8f0;
    font-style: italic;
    border-left: 3px solid var(--primary-red);
    padding-left: 18px;
}

.testimonial-author {
    font-size: 0.9rem;
}

.carousel-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dots .dot.active {
    background-color: var(--primary-red);
    width: 22px;
    border-radius: 4px;
}

.testimonial-img-col {
    min-height: 260px;
}

.testimonial-bg-img {
    object-fit: cover;
}

.testimonial-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 22, 27, 0.85) 0%, rgba(18, 22, 27, 0.4) 100%);
}

.overlay-quote-text {
    font-size: 1.35rem;
    line-height: 1.45;
}

/* ==================== LATEST NEWS ==================== */
.news-section {
    background-color: #ffffff;
}

.news-card {
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.news-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.news-thumb {
    object-fit: cover;
    min-height: 100%;
}

.news-title {
    font-size: 13px;
    line-height: 1.35;
}

.news-date {
    font-size: 11px;
}

.news-excerpt {
    font-size: 11.5px;
    line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.footer-top {
    background: var(--dark-red-gradient);
}

.footer-heading {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.footer-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.social-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.social-circle:hover {
    background-color: #ffffff;
    color: var(--primary-red);
    border-color: #ffffff;
}

.footer-bottom {
    background-color: #0d1014;
    font-size: 12px;
}

.hover-white:hover {
    color: #ffffff !important;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-heading {
        font-size: 1.8rem;
    }
    .capabilities-img {
        min-height: 280px;
    }
    .stat-divider {
        display: none;
    }
    .about-stats-grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    .about-stat-item {
        flex: 1 1 40%;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn-primary-custom, .btn-outline-custom {
        width: 100%;
        text-align: center;
    }
}

/* ==================== INNER PAGES & COMPONENTS ==================== */
.page-hero {
    background: linear-gradient(135deg, #0e1217 0%, #171d26 50%, #221016 100%);
    padding: 70px 0 60px 0;
    position: relative;
    border-bottom: 3px solid var(--primary-red);
}

.page-hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 0.5px;
}

.page-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
}

.page-breadcrumb {
    font-size: 13px;
    letter-spacing: 0.5px;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
    color: #ffffff;
}

.page-breadcrumb .breadcrumb-separator {
    color: var(--primary-red);
    margin: 0 8px;
}

.page-breadcrumb .current-page {
    color: #ffffff;
    font-weight: 600;
}

/* Service Detail & Inner Sidebar */
.service-sidebar-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
}

.sidebar-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.sidebar-service-link:hover, .sidebar-service-link.active {
    background-color: #fef2f2;
    color: var(--primary-red);
    padding-left: 20px;
    font-weight: 700;
}

.sidebar-help-box {
    background: linear-gradient(135deg, #14181f 0%, #1e2633 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

/* Projects Filter & Badges */
.project-filter-btn {
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-filter-btn:hover, .project-filter-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

.project-card-full {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.project-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
    border-color: var(--primary-red);
}

.project-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #0f172a;
}

.project-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card-full:hover .project-img-wrapper img {
    transform: scale(1.06);
}

/* Team Card */
.team-card {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: #ffffff;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    border-color: var(--primary-red);
}

.team-img-wrapper {
    height: 260px;
    overflow: hidden;
    background-color: #0f172a;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

/* Contact Info Card */
.contact-info-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.contact-info-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fee2e2;
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ==================== ELEMENT-BASED SCROLL ANIMATION SYSTEM ==================== */
[data-scroll] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-scroll="fade-up"] {
    transform: translateY(35px);
}

[data-scroll="fade-down"] {
    transform: translateY(-35px);
}

[data-scroll="fade-left"] {
    transform: translateX(40px);
}

[data-scroll="fade-right"] {
    transform: translateX(-40px);
}

[data-scroll="zoom-in"] {
    transform: scale(0.92);
}

[data-scroll="zoom-out"] {
    transform: scale(1.06);
}

/* State when scrolled into viewport */
[data-scroll].is-revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered delay helpers */
[data-scroll-delay="50"]  { transition-delay: 50ms; }
[data-scroll-delay="100"] { transition-delay: 100ms; }
[data-scroll-delay="150"] { transition-delay: 150ms; }
[data-scroll-delay="200"] { transition-delay: 200ms; }
[data-scroll-delay="250"] { transition-delay: 250ms; }
[data-scroll-delay="300"] { transition-delay: 300ms; }
[data-scroll-delay="350"] { transition-delay: 350ms; }
[data-scroll-delay="400"] { transition-delay: 400ms; }
[data-scroll-delay="450"] { transition-delay: 450ms; }
[data-scroll-delay="500"] { transition-delay: 500ms; }
[data-scroll-delay="600"] { transition-delay: 600ms; }
[data-scroll-delay="700"] { transition-delay: 700ms; }

/* Subtle animated underline for section tags */
.section-tag {
    position: relative;
    display: inline-block;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    [data-scroll] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
