/* ==== Main Styles for ECE-CIVIL Website ==== */

/* Base Variables and Reset */
:root {
    --primary-color: #1a4d7c;
    --secondary-color: #e67e22;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #fff;
    --dark-bg: #0a2540;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Common Utility Classes */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #d35400;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

/* Home Page - Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://ece-civil.com/gettyimages-521074487-640x640.jpg') center/cover no-repeat;
    color: var(--white);
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Home Page - Products Preview Section */
.products-preview {
    background-color: #ffffff;
    padding: 80px 0;
}

.products-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.product-preview-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-preview-image {
    height: 200px;
    overflow: hidden;
}

.product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-preview-info {
    padding: 20px;
    text-align: center;
}

.product-preview-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.view-all-container {
    text-align: center;
    margin-top: 20px;
}

/* Home Page - Services Preview Section */
.services-preview {
    background-color: #f4f4f4;
    padding: 80px 0;
}

.services-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.services-preview-text {
    flex: 1;
    min-width: 300px;
}

.services-preview-text h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.services-preview-image {
    flex: 1;
    min-width: 300px;
}

.services-preview-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.services-list {
    list-style: none;
    margin: 20px 0;
}

.services-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.services-list li:before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Values Section */
.values {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.values .section-title {
    color: var(--white);
}

.values-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.value-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-detail {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 20px;
    min-width: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #d35400;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary-color);
}

.contact-info-footer {
    margin-top: 15px;
}

.contact-info-footer p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.contact-info-footer i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Page Banner (for internal pages) */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/api/placeholder/1200/400') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-banner h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
}

.breadcrumb li {
    margin: 0 10px;
    font-size: 16px;
}

.breadcrumb li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.breadcrumb li a:hover {
    opacity: 1;
}

.breadcrumb li.active {
    color: var(--secondary-color);
}

/* Products Page Styles */
.product-categories {
    padding: 80px 0;
    background-color: var(--white);
}

.category {
    margin-bottom: 80px;
}

.category:last-child {
    margin-bottom: 0;
}

.category-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.category-title {
    font-size: 24px;
    margin-bottom: 5px;
}

.category-subtitle {
    font-size: 16px;
    opacity: 0.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.product-specs {
    margin-top: 15px;
}

.spec-item {
    display: flex;
    margin-bottom: 5px;
}

.spec-label {
    font-weight: 600;
    min-width: 120px;
}

/* Request Quote Section */
.request-quote {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.request-quote p {
    margin-bottom: 30px;
    font-size: 18px;
}
.partners-section {
    padding: 60px 0;
}

.partners-categories {
    margin-top: 40px;
}

.partners-category {
    margin-bottom: 50px;
}

.partners-category:last-child {
    margin-bottom: 0;
}

.partners-category-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.partners-category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.partners-grid-supply {
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    max-height: 80px;
    object-fit: contain;
}

.partner-logo p {
    margin-top: 10px;
    font-weight: 500;
    color: var(--primary-color);
}



/* Responsive Styles */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .page-banner h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 10px 20px;
    }
    
    .services-preview-content,
    .contact-flex {
        flex-direction: column;
    }
    
    .services-preview-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .values-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .value-card {
        width: 100%;
        max-width: 100%;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .category-title {
        font-size: 20px;
    }
}
.service-category {
    margin-bottom: 80px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.service-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-image {
    flex: 1;
    min-width: 300px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    flex: 2;
    padding: 30px;
    min-width: 300px;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.service-features {
    margin: 20px 0;
    list-style: none;
}

.service-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-features li:before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-category-header {
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.service-category-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
    }
    
    .service-image {
        min-height: 250px;
    }
}

.about-intro {
    padding: 60px 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mission-vision {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.mission-vision-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.mission-box, .vision-box {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
}

.mission-box h3, .vision-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.stats-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-box {
    background-color: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--primary-color);
}

.team-section {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    height: 250px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .about-content, .mission-vision-flex {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .stat-number {
        font-size: 38px;
    }
}

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info-block {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-info-heading {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.contact-detail {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 24px;
    min-width: 24px;
}

.contact-text h4 {
    margin-bottom: 5px;
    font-size: 18px;
    color: var(--secondary-color);
}

.business-hours {
    margin-top: 40px;
}

.hours-table {
    width: 100%;
    margin-top: 15px;
}

.hours-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 10px 0;
}

.hours-table td:last-child {
    text-align: right;
}

.contact-form-block {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.map-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.map-container {
    height: 450px;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-block {
        order: 2;
    }
    
    .contact-form-block {
        order: 1;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-info-block,
    .contact-form-block {
        padding: 30px 20px;
    }
}

  .thank-you-section {
            padding: 100px 0;
            text-align: center;
            min-height: 60vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .thank-you-content {
            max-width: 700px;
            margin: 0 auto;
        }
        
        .thank-you-icon {
            font-size: 80px;
            color: var(--secondary-color);
            margin-bottom: 30px;
        }
        
        .thank-you-title {
            font-size: 36px;
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        
        .thank-you-message {
            font-size: 18px;
            margin-bottom: 40px;
        }
        
        .back-to-home {
            margin-top: 20px;
        }