@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0052cc;
    --secondary-color: #00c6ff;
    --dark-bg: #0a192f;
    --light-bg: #f4f6f9;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

body {
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Typography Helpers --- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0040a1);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* --- Header / Navbar --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    min-height: 110px; /* Ensured room for a taller logo layout */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    height: auto; /* Container expands fluidly */
}

/* Container limits removed to let height take precedence */
.logo {
    display: block;
    max-height: 130px; 
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 100px; /* Adjusted height per requirements */
    width: auto;
    object-fit: contain;
    padding: 2px 0;
    transition: transform 0.3s ease;
}

.logo a:hover .brand-logo {
    transform: scale(1.02);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #0040a1;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #0a192f 0%, #002244 100%);
    color: var(--white);
    padding: 8rem 0 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.cta-buttons .btn {
    margin: 0 0.5rem;
}

/* --- Project Domains Section --- */
.domains {
    padding: 5rem 0;
    background-color: var(--white);
}

.grid-domains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.domain-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.domain-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.domain-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: var(--dark-bg);
}

.domain-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Features Section --- */
.features {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.features-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 6px;
    flex: 1;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--secondary-color);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

/* --- Branches Layout --- */
.branches {
    padding: 5rem 0;
    background-color: var(--white);
}

.grid-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.branch-card {
    background-color: var(--light-bg);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.branch-card h3 {
    font-size: 1.6rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
}

.branch-details p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.branch-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- WhatsApp & Call Action Layout Grid --- */
.branch-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.branch-buttons .btn {
    flex: 1;
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.btn-call {
    background-color: var(--dark-bg);
    color: var(--white);
    border: 1px solid transparent;
}

.btn-call:hover {
    background-color: transparent;
    color: var(--dark-bg);
    border-color: var(--dark-bg);
}

.btn-wa {
    background-color: #25d366;
    color: var(--white);
    border: 1px solid transparent;
}

.btn-wa:hover {
    background-color: #128c7e;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Floating Action Button Design */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
}

.wa-icon {
    font-size: 1.3rem;
}

/* --- Contact Form Section --- */
.contact-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    color: var(--white);
}

.contact-container {
    max-width: 650px;
    text-align: center;
}

.contact-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-container p {
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    background-color: #050c16;
    color: #94a3b8;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #0f172a;
}

footer p {
    margin-bottom: 0.5rem;
}

/* --- Responsive Layout Configurations --- */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .features-wrapper {
        flex-direction: column;
    }
    .grid-branches {
        grid-template-columns: 1fr;
    }
    header {
        min-height: 90px;
    }
    .brand-logo {
        height: 70px; /* Scales down elegantly on intermediate tablets */
    }
}

@media (max-width: 480px) {
    .branch-buttons {
        flex-direction: column;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .brand-logo {
        height: 60px; /* Prevents overflow collisions on smaller viewport arrays */
    }
}