:root {
    --primary: #1E293B;
    --accent: #0EA5E9;
    --text-dark: #334155;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fixed Fade-In Animation (Opacity only to protect position: fixed) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Fixed White Header at 95px on Desktop */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Removes container padding so the logo uses maximum vertical space */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

/* Scales the logo image up to the maximum limit of the header */
.logo-container img {
    height: 82px;        
    max-height: 82px;    
    width: auto;         
    object-fit: contain;
    display: block;
}

.logo-container span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Glitch-Free Click-to-Toggle Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: var(--white);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 250px;
    display: none;
    border-radius: 6px;
    z-index: 1100;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-weight: normal;
    color: var(--text-dark);
    white-space: nowrap;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

/* Uniform Hero / Page Header Section with Smaller Headings */
.hero, .page-header, .hero-full {
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    height: 45vh;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 95px;
}

.hero h1, .page-header h1, .hero-full h1 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero p, .page-header p, .hero-full p {
    font-size: 1.05rem;
    max-width: 650px;
    margin-bottom: 1.5rem;
    color: #CBD5E1;
}

.btn {
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #0284C7;
}

/* Services Overview & Content Sections with Smaller Headings */
.services-section, .about-content, .contact-container, .service-detail-container {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h2, .about-text h2, .contact-info h2, .service-main h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.card, .spec-card, .info-box, .contact-form-wrapper, .service-sidebar, .values-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.card {
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* About & Contact Specific Layouts */
.about-grid, .contact-container, .service-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-container {
    grid-template-columns: 2fr 1fr;
    margin: 4rem auto;
}

.about-image, .image-placeholder {
    background: #E2E8F0;
    height: 350px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card, .spec-card, .info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
}

.value-card h4, .spec-card h4, .info-box h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

/* Sidebar Navigation for Subpages */
.service-sidebar {
    height: fit-content;
}

.service-sidebar h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.service-sidebar ul {
    list-style: none;
}

.service-sidebar li {
    margin-bottom: 0.75rem;
}

.service-sidebar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.service-sidebar a:hover, .service-sidebar a.active {
    background: var(--bg-light);
    color: var(--accent);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* ================================================================= */
/* MOBILE RESPONSIVE MEDIA QUERIES                                   */
/* ================================================================= */

@media (max-width: 992px) {
    header {
        padding: 0 4%;
        height: 80px;
    }

    .hero, .page-header, .hero-full {
        margin-top: 80px;
        height: 45vh;
    }

    nav ul {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    /* MOBILE HEADER: Logo centered at the top, Navigations below, White Background */
    header {
        position: fixed;
        flex-direction: column;
        height: auto;
        padding: 0.75rem 1rem;
        justify-content: center;
        align-items: center;
        background: var(--white);
    }

    .logo-container {
        margin-bottom: 0.4rem;
        justify-content: center;
    }

    .logo-container img {
        height: 52px;
        max-height: 52px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem 0.9rem;
        padding-bottom: 0.25rem;
    }

    /* Smaller, clean font sizes for mobile navigation */
    nav a {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-dark);
    }

    .dropdown-menu a {
        font-size: 0.8rem;
    }

    /* Adjust Hero spacing & smaller heading typography for mobile screens */
    .hero, .page-header, .hero-full {
        margin-top: 125px; 
        height: 32vh;
        min-height: 250px;
        padding: 0 1rem;
    }

    .hero h1, .page-header h1, .hero-full h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    .hero p, .page-header p, .hero-full p {
        font-size: 0.85rem !important;
        margin-bottom: 0.8rem;
    }

    .services-section h2, .about-text h2, .contact-info h2, .service-main h2 {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem;
    }

    .about-grid, 
    .services-grid, 
    .features-grid, 
    .contact-container, 
    .image-group-grid,
    .footer-grid,
    .service-detail-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-card {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1, .page-header h1, .hero-full h1 {
        font-size: 1.3rem !important;
    }

    nav ul {
        font-size: 0.75rem;
        gap: 0.3rem 0.6rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    .client-logo-card {
        height: 120px !important;
    }
}

/* ================================================================= */
/* FLOATING CONTACT WIDGET (Bottom Right)                            */
/* ================================================================= */
.floating-contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.floating-phone {
    background-color: #0EA5E9;
}

.floating-email {
    background-color: #1E293B;
}

.floating-whatsapp {
    background-color: #25D366;
}

@media (max-width: 768px) {
    .floating-contact-container {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
    }

    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}