:root {
    --heitech-blue: #003366;
    --heitech-gold: #D4AF37;
    --bg-light: #ffffff;
    --bg-gray: #f4f7f9;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 100px; /* Adjusted for better visibility */
    width: auto;
    display: block;
}

.footer-logo {
    height: 80px; /* Slightly larger in footer */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--heitech-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover,
.dropdown:hover .dropbtn {
    color: var(--heitech-gold);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--heitech-blue);
    font-size: 1.4rem;
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--heitech-gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.nav-cta-mobile {
    display: none;
}

.nav-links a.active {
    color: var(--heitech-gold);
    border-bottom: 2px solid var(--heitech-gold);
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline {
    border: 2px solid var(--heitech-gold);
    color: var(--heitech-blue);
}

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

.btn-primary {
    background-color: var(--heitech-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--heitech-blue);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 300;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h4 {
    color: var(--heitech-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-header h2 {
    color: var(--heitech-blue);
    font-size: 2.5rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--heitech-gold);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--heitech-blue);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--heitech-blue);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Intelligence Section */
.intelligence-section {
    background-color: var(--heitech-blue);
    color: var(--white);
    padding: 100px 0;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.intel-card {
    padding: 20px;
    border-left: 3px solid var(--heitech-gold);
}

.intel-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.intel-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Content Sections */
.content-section {
    padding: 100px 0;
}

.content-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.content-flex.reverse {
    flex-direction: row-reverse;
}

.content-image {
    flex: 1;
}

.content-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.content-text {
    flex: 1;
}

.content-text h2 {
    font-size: 2.5rem;
    color: var(--heitech-blue);
    margin-bottom: 25px;
    line-height: 1.2;
}

.content-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-note {
    margin-top: 20px;
    font-weight: bold;
    color: var(--heitech-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.footer-info i {
    color: var(--heitech-gold);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .content-flex, .content-flex.reverse {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .transparency-flex {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        display: none;
        z-index: 1500;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        padding: 12px 20px;
        display: block;
    }

    .nav-cta-mobile {
        display: block;
        padding: 6px 20px 12px;
    }

    .nav-cta-mobile .btn {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        min-width: initial;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.is-open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        border-bottom: none;
        padding-left: 35px;
    }

    .dropdown-all {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.infra-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.about-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('images/about.png') center/cover no-repeat;
}

/* Expertise Page Specific Styles */
.expertise-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.bordered-image img {
    border: 8px solid var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-list {
    list-style: none;
    margin: 20px 0;
}

.content-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.content-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--heitech-gold);
}

.dark-card {
    background-color: var(--heitech-blue) !important;
    color: var(--white) !important;
}

.dark-card h3 {
    color: var(--white) !important;
}

.dark-card p {
    color: rgba(255,255,255,0.8) !important;
}

.dark-card .card-icon {
    color: var(--white) !important;
}

.nav-links a.active {
    color: var(--heitech-gold);
    border-bottom: 2px solid var(--heitech-gold);
}

/* Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn i {
    transition: transform 0.2s ease;
}

.dropdown.is-open .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 2000; /* Ensure it stays above hero content */
    border-top: 3px solid var(--heitech-gold); /* Gold accent */
    border-radius: 0 0 5px 5px;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content a:hover {
    background-color: var(--bg-gray);
    color: var(--heitech-gold); /* Gold text on hover */
}

.dropdown-all {
    display: none;
}

/* Toggle visibility on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Solutions Page Enhancements */
.py-80 {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--bg-gray);
}

.solution-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--heitech-gold); /* Your Gold Color */
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 10px;
}

.gold-text {
    color: var(--heitech-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-list li i {
    color: var(--heitech-gold); /* Gold icons */
    margin-right: 10px;
}

/* Ensure the Dropdown stays visible and usable */
.dropdown-content {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.dropdown-content a {
    transition: all 0.3s ease;
}

/* Style for images on the Solutions Page */
.bordered-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bordered-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: cover;
    border: 6px solid var(--white); /* White inner frame */
    outline: 2px solid var(--heitech-gold); /* Gold outer frame */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.bordered-image img:hover {
    transform: scale(1.03); /* Subtle zoom effect */
}

/* Infrastructure Specific Styles */
.py-80 {
    padding: 80px 0;
}

.bg-blue-dark {
    background-image: url('images/circuit-overlay.png'); /* Optional subtle pattern */
    background-size: cover;
}

.circle-frame img {
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 4px solid var(--heitech-gold); /* Your Gold color */
    padding: 5px;
}

.hero.infra-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: left;
}

#backToTop {
    display: none; /* Hidden by default */
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: var(--heitech-blue); 
    color: white; 
    cursor: pointer; 
    padding: 15px; 
    border-radius: 50%; /* Makes it a circle */
    font-size: 18px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: var(--heitech-gold); /* Changes to Gold on hover */
    transform: translateY(-5px); /* Subtle lift effect */
}

/* Proportional Grid Styling */
.infra-grid {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Forces equal height for both cards */
}

.infra-card {
    flex: 1; /* Makes columns equal width */
    padding: 40px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.hardware-light {
    background-color: var(--bg-gray);
    border: 1px solid #e1e8ed;
}

.software-dark {
    background-color: var(--heitech-blue);
    color: white;
}

.infra-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infra-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.infra-list li i {
    color: var(--heitech-gold);
    margin-right: 15px;
    margin-top: 5px;
}

.white-text li {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .infra-grid {
        flex-direction: column;
    }
}

.org-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.org-item {
    background: #ffffff;
    border: 2px solid var(--heitech-gold);
    border-radius: 8px;
    padding: 20px 30px;
    color: var(--heitech-blue);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: left;
    transition: all 0.3s ease;
}

.org-item:hover {
    transform: translateX(10px);
    background-color: #fcf9f0;
}

/* Contact Form */
.contact-form-container { flex: 1; background: white; padding: 40px; border-radius: 10px; color: var(--text-dark); }
.contact-form-container input, .contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.digital-efficiency-section {
    padding: 120px 0;
    /* We use background-position: 80% center to pull the fern leaf into the frame */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.2) 100%), 
                url('images/efficiency-bg-fern.png') no-repeat 80% center/cover;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.efficiency-text-wrapper {
    max-width: 800px; /* Limits text width so it stays on the left, clear of the leaf */
}

.efficiency-text-wrapper h2 {
    font-size: 3.2rem;
    color: var(--heitech-blue);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.efficiency-text-wrapper p {
    font-size: 1.25rem;
    color: var(--heitech-blue);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Sustainability Tags Styling */
.efficiency-footer-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--heitech-gold);
    text-transform: none;
}

.efficiency-footer-tags .separator {
    color: var(--heitech-gold);
    font-weight: 400;
    margin: 0 5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .digital-efficiency-section {
        background: white; /* Remove image on small screens for readability */
        padding: 60px 0;
    }
    .efficiency-text-wrapper h2 {
        font-size: 2.2rem;
    }
}

/* Styled Green Tags */
.efficiency-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.efficiency-tags span {
    color: var(--heitech-gold); /* Deep green for sustainability */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 2px solid #2e7d32;
    padding-right: 15px;
}

.efficiency-tags span:last-child {
    border-right: none;
}

.efficiency-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.efficiency-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 50%; /* Circular frame as per About Page design */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .efficiency-card {
        flex-direction: column;
        text-align: center;
    }
    .efficiency-tags {
        justify-content: center;
    }
}

.transparency-section {
    padding: 100px 0;
    background: radial-gradient(circle at top left, #f4f7f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.transparency-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.transparency-content {
    flex: 1.5;
}

.transparency-content h2 {
    color: var(--heitech-blue);
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.integrity-badge {
    margin-top: 35px;
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.gold-highlight {
    color: var(--heitech-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    margin: 0 20px;
    color: #ddd;
}

/* Visual Pulse Animation */
.transparency-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pulse-circle {
    width: 200px;
    height: 200px;
    background: var(--heitech-blue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.4);
    animation: pulse 2s infinite;
}

.pulse-circle i {
    font-size: 3rem;
    color: var(--heitech-gold);
    margin-bottom: 10px;
}

.pulse-circle p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(0, 51, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 51, 102, 0); }
}
