/* =========================================
   COMPLETE MERGED STYLE.CSS - NO CONFLICTS
   All styles from both files integrated
   ========================================= */
/* 1. CSS VARIABLES */
:root {
    --primary-blue: #0077be;
    --secondary-blue: #00a8e8;
    --dark-grey: #333333;
    --light-bg: #f5f9fc;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 2. GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Space for fixed header */
}

a { 
    text-decoration: none;
    transition: color 0.3s;
}

ul { list-style: none; }

h1, h2, h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #003264;
}

/* 3. FIXED HEADER/NAVIGATION */
header {
    background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links > li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #e0f7ff;
}

/* DROPDOWN STYLING */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.chevron-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
    margin-left: 3px;
}

/* DESKTOP DROPDOWN - Default state (hidden) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    color: var(--dark-grey);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f0f8ff;
    color: var(--primary-blue);
}

/* DESKTOP ONLY - Hover behavior */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown:hover .chevron-down {
        transform: rotate(180deg);
    }
    
    /* Invisible bridge to prevent dropdown from closing */
    .dropdown::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 15px;
        z-index: 999;
    }
}

/* MOBILE ONLY - Click/Touch behavior */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    header { padding: 0.5rem 0; }
    
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px; left: -100%; width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
        flex-direction: column; align-items: flex-start;
        padding: 30px 5%; transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-links.active { left: 0; }
    .nav-links > li { margin: 0 0 20px 0; width: 100%; }
    
    /* ✅ FIXED: Completely override desktop styles */
    .dropdown-menu {
        position: static !important; /* Pushes content down */
        float: none !important;
        display: none; /* HIDDEN BY DEFAULT */
        width: 100% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 0 !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
    }
    
    /* ✅ SHOWS WHEN TOGGLED */
    .dropdown.mobile-active .dropdown-menu {
        display: block !important; /* FORCE SHOW */
        animation: slideDown 0.3s ease forwards;
    }
    
    .dropdown.mobile-active .chevron-down { transform: rotate(180deg); }
    
    .dropdown-menu a {
        color: white !important;
        padding: 15px 25px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dropdown-menu a:hover { background: rgba(255, 255, 255, 0.2) !important; }
    .nav-cta { width: 100%; text-align: center; display: block; }
}


/* CTA Button in Nav */
.nav-cta {
    background: white !important;
    color: var(--primary-blue) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: #f0f8ff !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
/* 4. HERO SECTION - MERGED FROM BOTH FILES */
.hero {
    background: linear-gradient(rgba(0, 50, 100, 0.7), rgba(0, 100, 200, 0.7)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230077be" width="1200" height="400"/><circle cx="200" cy="150" r="80" fill="%234fc3f7" opacity="0.3"/><circle cx="900" cy="400" r="120" fill="%2381d4fa" opacity="0.2"/><circle cx="600" cy="300" r="100" fill="%234fc3f7" opacity="0.25"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    height: 60vh;           /* Default shorter */
    max-height: 500px;      /* Never too tall */
    min-height: 300px;
}

.hero-content h1,
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-content p,
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* Mobile: even shorter */
    @media (max-width: 768px) {
        height: 50vh;
        max-height: 400px;
    }
}

/* 5. BUTTONS - MERGED ALL BUTTON STYLES */
.btn,
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #4fc3f7;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: none;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn:hover,
.cta-button:hover {
    background: #0288d1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,119,190,0.3);
}

/* 6. SECTIONS & CONTAINERS */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #0077be;
    margin-bottom: 3rem;
}

/* 7. ABOUT SECTION - FROM FILE 1 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-box {
    background: #e1f5fe;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: #0288d1;
    margin-bottom: 0.5rem;
}

/* 8. SERVICES SECTION - MERGED */
.services {
    background: #f5f5f5;
    max-width: 100%;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid,
.service-grid,
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card,
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover,
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #0288d1;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* 9. FEATURES SECTION - FROM FILE 2 */
.features {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.feature-item .checkmark {
    color: #00a8e8;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 10. GALLERY - FROM FILE 1 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 250px;
    background: linear-gradient(135deg, #0288d1, #4fc3f7);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item::after {
    content: 'View Project';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* 11. PROJECTS SECTION - FROM FILE 1 */
.projects {
    background: #f5f5f5;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
}

.project-image {
    height: 300px;
    background: linear-gradient(135deg, #4fc3f7, #0288d1);
}

.project-details {
    padding: 2rem;
}

.project-details h3 {
    color: #003264;
    margin-bottom: 1rem;
}

/* 12. TESTIMONIALS - FROM FILE 1 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: #4fc3f7;
    opacity: 0.3;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: bold;
    color: #0288d1;
}

/* 13. CONTACT FORM - MERGED FROM BOTH FILES */
.contact-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0077be;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0f2fe;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a8e8;
}

/* 14. FOOTER - MERGED FROM BOTH FILES */
footer {
    background: #0077be;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #4fc3f7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #4fc3f7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 15. RESPONSIVE DESIGN - MERGED FROM BOTH FILES */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    header {
        padding: 0.5rem 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    /* Hero adjustments */
    .hero {
        min-height: calc(100vh - 70px);
        padding: 40px 1rem;
    }

    .hero-content h1,
    .hero h1 {
        font-size: 2rem;
    }

    .hero-content p,
    .hero p {
        font-size: 1.1rem;
    }

    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }

    /* Mobile navigation */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 5%;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links > li {
        margin: 0 0 20px 0;
        width: 100%;
    }

    /* Mobile dropdown - FIXED */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        border-radius: 8px;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding: 0;
    }

    .dropdown.mobile-active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }

    .dropdown-menu a {
        color: white;
        padding: 10px 20px;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Grid adjustments */
    .about-content,
    .project-content {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .feature-list,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    h2 {
        font-size: 2rem;
    }

    .project-image {
        height: 200px;
    }
}