/* Custom Fonts */
@font-face {
    font-family: 'BankGothic'; /* This is the name you'll use in CSS */
    src: local('BankGothic Bold'), /* Try to use locally installed font first */
         url('./font/BankGothic Bold.ttf') format('truetype'); /* Path to your font file */
    font-weight: 700; /* Use numeric value for bold */
    font-style: normal;
    font-display: swap; /* Ensures text remains visible while font loads */
}


/* General Styling & Reset */
:root {
    /* New Blue-Based Color Scheme */
    --primary-blue: #292B75;   /* The main deep blue/purple */
    --dark-blue: #212361;      /* A darker tone for backgrounds/accents */
    --accent-blue: #383C8E;    /* A slightly lighter, vivid blue accent */
    --light-blue: #DBDDE7;     /* Very light blue for subtle backgrounds */
    --lighter-blue: #F4F4F9;   /* Even lighter for super subtle highlights */

    --text-dark: #424242;   /* Dark gray for primary text */
    --text-medium: #757575; /* Medium gray for secondary text */
    --white: #ffffff;
    --black: #000000;
    --transition-speed: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}

h1, h2 {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--dark-blue); /* Links now use the new dark blue */
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-blue); /* Hover links use the new primary blue */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below images */
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-blue); /* Button uses new primary blue */
    color: var(--white);
    border: 2px solid var(--primary-blue); /* Button border uses new primary blue */
}

.btn-primary:hover {
    background-color: var(--dark-blue); /* Button hover uses new dark blue */
    border-color: var(--dark-blue); /* Button border hover uses new dark blue */
    color: var(--white);
}

/* Sections */
.section {
    padding: 80px 0;
    overflow: hidden; /* Clear floats */
}

.section-header {
    margin-bottom: 50px;
}

.section-header p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    color: var(--text-medium);
}

.bg-cyan-light { /* Renamed this for clarity if you want. Using new light blue. */
    background-color: var(--light-blue); /* Light background uses new light blue */
}

/* Specific styling for the 'Insights & News' section background (now using new dark blue) */
.bg-cyan-dark-accent {
    background-color: var(--dark-blue); /* Dark accent background uses new dark blue */
}
/* Ensure header text is white on this dark background */
.bg-cyan-dark-accent h2, .bg-cyan-dark-accent h1,
.bg-cyan-dark-accent .section-header p {
    color: var(--white);
}


/* Header */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a { /* Target the anchor tag inside .logo */
    display: flex; /* Make it a flex container to align logo and text */
    align-items: center; /* Vertically align items */
    text-decoration: none; /* Remove underline from the entire logo area */
}

.logo img {
    height: 50px; /* Adjust the height of your logo as needed */
    width: auto;
    display: block;
    margin-right: 20px; /* Space between logo image and text */
}

.logo-text {
    font-family: 'BankGothic', sans-serif; /* Changed to your local font */
    font-size: 1.5em; /* **UPDATED FONT SIZE** */
    font-weight: 700; /* Set to 700 for bold, matching @font-face */
    color: var(--dark-blue); /* Logo text uses new dark blue */
    letter-spacing: 1px; /* Add a bit of letter spacing for the Bank Gothic feel */
    text-transform: uppercase; /* Bank Gothic is typically uppercase */
    white-space: nowrap; /* Keep text on one line */
    transition: color var(--transition-speed); /* Smooth transition for hover effect */
    position: relative;
    z-index: 2;
}

.logo a:hover .logo-text { /* Hover effect for the text */
    color: var(--primary-blue); /* Hover logo text uses new primary blue */
}


.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue); /* Nav active line uses new primary blue */
    transition: width var(--transition-speed);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle .hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    position: relative;
    transition: background-color var(--transition-speed);
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: transform var(--transition-speed), top var(--transition-speed), bottom var(--transition-speed);
}

.nav-toggle .hamburger::before {
    top: -10px;
}

.nav-toggle .hamburger::after {
    bottom: -10px;
}

/* Hero Section */
.hero-section {
    height: 70vh; /* Adjust as needed */
    background: url('https://via.placeholder.com/1920x800/292B75/DBDDE7?text=Engineering+Collaboration') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(41, 43, 117, 0.7), rgba(56, 60, 142, 0.7)); /* #292B75 and #383C8E with 70% opacity */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.0em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--white);
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--white);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--white);
}

/* What We Do - Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area */
    border-radius: 4px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5em;
    color: var(--dark-blue); /* Uses new dark blue */
    margin-bottom: 10px;
}

.service-item p {
    color: var(--text-medium);
}

/* Why Choose Us - Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item .icon-large {
    color: var(--primary-blue); /* Icons use new primary blue */
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4em;
    color: var(--dark-blue); /* Uses new dark blue */
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-medium);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-item img {
    width: 100%;
    height: 280px; /* Consistent height for project images */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-in-out;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--primary-blue), rgba(56, 60, 142, 0.7)); /* From #292B75 to #383C8E (70% opacity) */
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.4em;
    margin-bottom: 5px;
}

.project-overlay p {
    color: var(--white);
    font-size: 0.9em;
    margin: 0;
}

/* Insights & News */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.insight-item {
    background-color: var(--white); /* This makes the card background white */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.insight-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.insight-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.insight-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-dark); /* Text color on white card background */
}

.insight-item h3 a {
    color: var(--dark-blue); /* Link color on white card background */
}
.insight-item h3 a:hover {
    color: var(--primary-blue); /* Link hover color on white card background */
}

.insight-item .date {
    font-size: 0.85em;
    color: var(--text-medium); /* Date color on white card background */
    margin-bottom: 10px;
}

.insight-item p {
    font-size: 0.95em;
    color: var(--text-medium); /* Paragraph color on white card background */
}


/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8em;
    color: var(--dark-blue); /* Uses new dark blue */
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.contact-info p i {
    color: var(--primary-blue); /* Icons use new primary blue */
    margin-right: 15px;
    font-size: 1.3em;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    color: var(--dark-blue); /* Social icons use new dark blue */
    font-size: 1.8em;
    margin-right: 20px;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    color: var(--primary-blue); /* Social icons hover use new primary blue */
    transform: translateY(-3px);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-blue); /* Form border uses new light blue */
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue); /* Form focus uses new primary blue */
    box-shadow: 0 0 8px rgba(41, 43, 117, 0.2); /* Form focus shadow uses new primary blue */
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: auto;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
}

/* Footer */
.main-footer {
    background-color: var(--dark-blue); /* Footer background uses new dark blue */
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer a {
    color: var(--lighter-blue); /* Footer links use new lighter blue */
    margin: 0 10px;
}

.main-footer a:hover {
    color: var(--white);
}

/* Mobile Navigation */

@media (max-width: 1080px) {

    /* IMPORTANT: HIDE LOGO TEXT ON TABLETS */
    .logo-text {
        display: none;
    }

}


@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 80px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform var(--transition-speed);
        opacity: 0;
        pointer-events: none;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.1em;
    }

    .nav-toggle {
        display: block;
    }

    /* Hamburger animation */
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    /* IMPORTANT: HIDE LOGO TEXT ON MOBILE */
    .logo-text {
        display: none;
    }

    /* Adjust the logo image size if needed when text disappears */
    .logo img {
        height: 45px; /* Slightly larger when alone, adjust as desired */
        margin-right: 0; /* Remove margin when text is gone */
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }

    .services-grid, .features-grid, .projects-grid, .insights-grid, .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        margin-top: 40px;
    }

    .contact-info h3, .contact-form h3 {
        text-align: center;
    }
    .contact-info p {
        justify-content: center;
    }
    .social-links {
        text-align: center;
    }
}


@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .btn {
        padding: 10px 20px;
    }

    .service-item, .feature-item, .insight-item, .project-item {
        padding: 20px;
    }

    .logo img {
        height: 40px; /* Keep consistent or adjust further for very small screens */
    }
    /* .logo-text is already hidden by the 768px media query */
}