/* ================== GLOBAL STYLES & VARIABLES ================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-blue: #003366; 
    --accent-cyan: #00AEEF;
    --white: #ffffff;
    --bg-light: #F4F7F6;
    --text-main: #333333;
    --border: #E0E0E0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-main); line-height: 1.7; background-color: var(--white); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--primary-blue); }
a { text-decoration: none; transition: all 0.3s ease; }
.container { width: 90%; max-width: 1200px; margin: auto; }

/* ================== TOP BAR ================== */
.top-bar { background-color: var(--primary-blue); color: var(--white); padding: 10px 0; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar i { color: var(--accent-cyan); margin-right: 5px; }

/* ================== HEADER & DESKTOP MENU ================== */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary-blue); line-height: 1; }
.logo span { color: var(--accent-cyan); }
.logo small { display: block; font-size: 0.65rem; color: #666; letter-spacing: 1px; margin-top: 2px; }

.desktop-menu { display: flex; gap: 30px; list-style: none; }
.desktop-menu a { color: var(--primary-blue); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; }
.desktop-menu a:hover, .desktop-menu a.active { color: var(--accent-cyan); }

/* The Hamburger Button - STRICTLY HIDDEN ON DESKTOP */
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--primary-blue); cursor: pointer; }

/* ================== HERO SLIDER ================== */
.hero-slider { position: relative; height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 100px 0; overflow: hidden; }
.hero-slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }

/* Buttons */
.btn { padding: 12px 25px; font-family: 'Montserrat', sans-serif; font-weight: 700; border-radius: 4px; display: inline-block; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; border: 2px solid var(--accent-cyan); }
.btn-primary { background: var(--accent-cyan); color: var(--white); }
.btn-primary:hover { background: transparent; color: var(--accent-cyan); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-blue); }

/* ================== FOOTER ================== */
footer { background: var(--primary-blue); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-links { list-style: none; }
.footer-links a { color: #cbd5e0; }
.footer-links a:hover { color: var(--accent-cyan); }

/* ================== MOBILE RESPONSIVENESS (PHONES ONLY) ================== */
@media (max-width: 850px) {
    .top-bar { display: none; } /* Hide top bar on mobile */
    .desktop-menu { display: none !important; } /* Kill desktop menu */
    .menu-toggle { display: block; } /* Show Hamburger */
    
    /* Mobile Dropdown Menu */
    .mobile-menu { display: none; flex-direction: column; width: 100%; background: var(--white); position: absolute; top: 100%; left: 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); border-top: 1px solid var(--border); }
    .mobile-menu.open { display: flex; }
    .mobile-menu a { padding: 15px 20px; border-bottom: 1px solid var(--bg-light); color: var(--primary-blue); font-family: 'Montserrat'; font-weight: 700; }
    
    .hero-content h1 { font-size: 2.5rem !important; }
    .btn { display: block; width: 100%; margin-bottom: 15px; }
}
/* Desktop safety for Mobile Menu */
@media (min-width: 851px) { .mobile-menu { display: none !important; } }

/* ================== SMOOTH PAGE LOAD (Fixes the "Popping" on refresh) ================== */
body {
    animation: smoothLoad 0.8s ease-out forwards;
}

@keyframes smoothLoad {
    0% { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ================== DYNAMIC TEXT HOVER EFFECTS ================== */
/* 1. Sets up the smooth transition for the text */
.card h3, .project-info h3, .service-box h3, .v-card h3, .v-card h4 {
    transition: all 0.3s ease-in-out;
}

/* 2. When you hover over the card, the text slides right and changes to cyan */
.card:hover h3, 
.project-card:hover .project-info h3, 
.service-box:hover h3,
.v-card:hover h3,
.v-card:hover h4 {
    color: var(--accent-cyan);
    transform: translateX(8px);
}

/* 3. Adds a subtle pop/scale effect to the little icons inside the cards on hover */
.project-meta span i, .service-list li i, .v-card i {
    transition: all 0.3s ease-in-out;
}

.project-card:hover .project-meta span i, 
.service-box:hover .service-list li i,
.v-card:hover i {
    transform: scale(1.2);
    color: var(--primary-blue);
}