/* --- 1. IMPORT FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Oswald:wght@500;700&display=swap');

/* --- 2. VARIABLES & RESET --- */
:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --accent: #ffc107;
    --text-dark: #1a1a1a;
    --text-grey: #555555;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 25px 50px rgba(0, 50, 100, 0.15);
    /* Smooth Apple-style Easing */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    
    /* BLUEPRINT BACKGROUND */
    background-color: #fdfdfd;
    background-image: 
        linear-gradient(#e8e8e8 1px, transparent 1px), 
        linear-gradient(90deg, #e8e8e8 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    animation: pageFadeIn 0.5s ease-in-out;
}

@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 3. ADVANCED ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out); /* Smoother bounce */
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays (Items pop in sequence) */
.stagger-delay:nth-child(1) { transition-delay: 0.1s; }
.stagger-delay:nth-child(2) { transition-delay: 0.2s; }
.stagger-delay:nth-child(3) { transition-delay: 0.3s; }
.stagger-delay:nth-child(4) { transition-delay: 0.4s; }
.stagger-delay:nth-child(5) { transition-delay: 0.5s; }
.stagger-delay:nth-child(6) { transition-delay: 0.6s; }

/* --- 4. NAVIGATION --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }

.logo { transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a {
    font-weight: 500; font-size: 0.95rem; color: var(--text-dark);
    position: relative; letter-spacing: 0.5px;
}
.nav-links a:not(.cta-btn):not(.btn-quote)::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -6px; left: 0; background-color: var(--primary);
    transition: 0.3s ease;
}
.nav-links a:not(.cta-btn):not(.btn-quote):hover { color: var(--primary); }
.nav-links a:not(.cta-btn):not(.btn-quote):hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.nav-links a.active::after { width: 100%; }

/* Buttons */
.cta-btn {
    background: var(--primary); color: var(--white) !important;
    padding: 12px 28px; border-radius: 4px; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    text-transform: uppercase; letter-spacing: 1px;
}
.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}
.btn-quote {
    display: inline-block; background-color: var(--accent); color: #000 !important;
    padding: 12px 30px; border-radius: 4px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
    border: 2px solid var(--accent); box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}
.btn-quote:hover {
    background-color: transparent; color: #d39e00 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

/* --- 5. HERO SECTION --- */
.hero {
    height: 85vh; min-height: 500px;
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,25,50,0.9), rgba(0,86,179,0.7));
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.hero-content h1 {
    font-family: 'Oswald', sans-serif; font-size: 4rem; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 2px; line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-content p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.95; font-weight: 300; }

/* --- 6. GENERAL SECTIONS --- */
.section { padding: 100px 0; }
.bg-light { background-color: #f2f4f8; }

.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 {
    font-family: 'Oswald', sans-serif; font-size: 2.8rem; color: var(--primary-dark);
    margin-bottom: 15px; text-transform: uppercase;
}
.section-header .divider {
    height: 5px; width: 100px; background: var(--accent); margin: 0 auto; position: relative;
}
.section-header .divider::after {
    content: ''; position: absolute; width: 15px; height: 15px;
    background: var(--primary); border-radius: 50%; top: -5px; left: 50%;
    transform: translateX(-50%);
}

/* --- 7. CARDS --- */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.project-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow-soft); transition: all 0.4s var(--ease-out);
    border-bottom: 4px solid transparent;
}
.project-card:hover {
    transform: translateY(-15px); box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--accent);
}
.project-img-wrapper { height: 260px; overflow: hidden; position: relative; }
.project-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.project-card:hover .project-img-wrapper img { transform: scale(1.1); }

.project-details { padding: 25px; }
.project-details h3 {
    color: var(--primary-dark); margin-bottom: 10px; font-size: 1.4rem; font-weight: 600;
}
.project-details .client-tag {
    display: inline-block; background: #eef4ff; padding: 5px 12px;
    border-radius: 4px; font-size: 0.85rem; color: var(--primary);
    margin-bottom: 15px; font-weight: 600;
}
.project-details p {
    font-size: 0.95rem; color: var(--text-dark); margin-bottom: 15px;
    border-top: 1px solid #eee; padding-top: 15px;
}
.feature-badge {
    background: #fff8e1; color: #d39e00; padding: 4px 10px;
    border-radius: 4px; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; border: 1px solid rgba(255, 193, 7, 0.2);
    margin-right: 5px; margin-bottom: 5px; display: inline-block;
}

/* --- 8. CLIENTS GRID --- */
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.client-item {
    height: 160px; background: var(--white); border: 1px solid #eee;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    padding: 20px; transition: all 0.4s var(--ease-out);
}
.client-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px); border-color: var(--primary);
}
.client-logo {
    max-width: 90%; max-height: 90%; object-fit: contain;
    transition: transform 0.4s ease;
}
.client-item:hover .client-logo { transform: scale(1.15); }

/* --- 9. FOOTER --- */
footer { background-color: #0b1120; color: #b0b8c4; padding: 80px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-col h4 {
    color: var(--white); font-family: 'Oswald', sans-serif;
    font-size: 1.4rem; margin-bottom: 30px; letter-spacing: 1px;
}
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 8px; }
.contact-info li { display: flex; gap: 15px; margin-bottom: 15px; }
.contact-info i { color: var(--accent); margin-top: 5px; }
.copyright { border-top: 1px solid #1f2937; padding-top: 30px; text-align: center; color: #6b7280; }

/* --- 10. MOBILE --- */
.menu-toggle { display: none; }
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: var(--white);
        padding: 30px 0; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 2px solid var(--primary);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; font-size: 1.8rem; color: var(--primary); cursor: pointer; padding-right: 20px;}
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
}

/* --- HERO SPECIFIC ANIMATIONS --- */

/* 1. Slow Zoom Effect for Background */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* 2. Text Slide Up Effect */
@keyframes slideUpHero {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Container Setup for Zoom */
.hero {
    position: relative;
    overflow: hidden; /* Clips the zooming image */
    height: 90vh; /* Made slightly taller for impact */
    min-height: 550px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}

/* The Background Image Layer */
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 1;
    animation: kenBurns 20s ease-out infinite alternate; /* The Zoom Animation */
}

/* The Dark Overlay */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,20,40,0.85), rgba(0,86,179,0.7));
    z-index: 2;
}

/* Staggered Text Animations */
.hero-content { position: relative; z-index: 3; max-width: 950px; padding: 0 20px; }

.hero-anim-1 { animation: slideUpHero 0.8s ease-out forwards; opacity: 0; }
.hero-anim-2 { animation: slideUpHero 0.8s ease-out 0.3s forwards; opacity: 0; } /* 0.3s delay */
.hero-anim-3 { animation: slideUpHero 0.8s ease-out 0.6s forwards; opacity: 0; } /* 0.6s delay */