:root {
    --primary-blue: #32659b;
    --dark-blue: #1b3a5e;
    --accent-blue: #4a90e2;
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { color: var(--text-dark); line-height: 1.6; background-color: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); transition-delay: var(--delay, 0s); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Typography */
h1, h2, h3 { color: var(--dark-blue); margin-bottom: 15px; }
h1 { font-size: 3.8rem; line-height: 1.1; font-weight: 700; color: var(--white); }
h2 { font-size: 2.8rem; font-weight: 600; }
p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 20px; }

/* Buttons */
.btn-primary { display: inline-block; background-color: var(--primary-blue); color: var(--white); padding: 15px 35px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(50, 101, 155, 0.3); }
.btn-primary:hover { background-color: var(--accent-blue); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4); }
.btn-primary-small { background-color: var(--primary-blue); color: var(--white) !important; padding: 10px 20px; border-radius: 5px; transition: all 0.3s ease; }
.btn-primary-small:hover { background-color: var(--accent-blue); }

/* Header & Nav */
header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
header.scrolled { padding: 12px 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo img { height: 45px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }
.mobile-menu-toggle { display: none; font-size: 1.5rem; color: var(--dark-blue); cursor: pointer; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 35px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-blue); }

/* Hero Section with Background Image */
.hero { 
    position: relative;
    min-height: 760px;
    padding: 160px 0 120px;
    background-image: linear-gradient(to right, rgba(27, 58, 94, 0.82), rgba(50, 101, 155, 0.70)), url('back.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 35%;
    background-attachment: scroll;
    text-align: center; 
    overflow: hidden; 
}
.hero-content { position: relative; z-index: 10; }
.hero p { color: rgba(255, 255, 255, 0.9); max-width: 700px; margin: 0 auto 40px; font-size: 1.25rem; }

/* Floating Shapes */
@keyframes float {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
    33% { transform: translate(80px, -100px) rotate(15deg) scale(1.1); }
    66% { transform: translate(-50px, -60px) rotate(-10deg) scale(0.95); }
    100% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
}

@keyframes floatMobile {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(50px, -90px) rotate(20deg) scale(1.1); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

.shape { 
    position: absolute; 
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; 
    animation: float 14s ease-in-out infinite; 
    z-index: 2; 
}
.shape-1 { width: 350px; height: 350px; top: -80px; left: -80px; }
.shape-2 { width: 250px; height: 250px; bottom: 30px; right: -60px; animation-delay: -7s; } 

/* Features Section */
.features { padding: 120px 0; background-color: var(--white); }
.section-title { text-align: center; margin-bottom: 70px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }

.feature-card { background: var(--white); padding: 45px 30px; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 5px 15px rgba(0,0,0,0.02); position: relative; z-index: 1; }
.feature-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 20px 40px rgba(50, 101, 155, 0.12); border-color: rgba(50, 101, 155, 0.3); z-index: 2; }
.feature-card i { font-size: 2.8rem; color: var(--primary-blue); margin-bottom: 25px; transition: transform 0.3s ease; }
.feature-card:hover i { transform: scale(1.1) rotate(5deg); color: var(--accent-blue); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card p { font-size: 1rem; margin-bottom: 0; }

/* Value Proposition Section (Initial fallback before JS runs) */
.value-prop { 
    position: relative;
    min-height: 520px;
    padding: 90px 0;
    display: flex;
    align-items: center;
    text-align: center; 
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    transition: background-image 0.5s ease;
}

/* default fallback */
.value-prop.bg-back2 {
    background-image: linear-gradient(to right, rgba(27, 58, 94, 0.6), rgba(50, 101, 155, 0.5)), url('back2.jpg');
    background-position: center 52%;
}

.value-prop.bg-back3 {
    background-image: linear-gradient(to right, rgba(27, 58, 94, 0.6), rgba(50, 101, 155, 0.5)), url('back3.jpg');
    background-position: center 18%;
}

.value-prop.bg-back4 {
    background-image: linear-gradient(to right, rgba(27, 58, 94, 0.6), rgba(50, 101, 155, 0.5)), url('back4.jpg');
    background-position: center 50%;
}

.value-prop-content h2 { color: var(--white); font-size: 3rem; }
.value-prop-content p { color: rgba(255, 255, 255, 0.8); max-width: 800px; margin: 0 auto; font-size: 1.3rem; }

/* Contact Section */
.contact { padding: 120px 0; background-color: var(--bg-light); }
.contact-wrapper { display: flex; gap: 60px; align-items: center; }
.contact-info, .contact-form { flex: 1; }
.info-list { list-style: none; margin-top: 30px; }
.info-list li { margin-bottom: 20px; font-size: 1.15rem; display: flex; align-items: center; gap: 15px; }
.info-list i { color: var(--primary-blue); font-size: 1.3rem; }
.contact-form form { display: flex; flex-direction: column; gap: 20px; background: var(--white); padding: 45px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; background-color: var(--bg-light); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-blue); background-color: var(--white); box-shadow: 0 0 0 3px rgba(50, 101, 155, 0.1); }

/* Footer */
footer { background-color: var(--text-dark); color: var(--white); padding: 50px 0; text-align: center; }
.footer-logo-container { background-color: var(--white); padding: 15px 25px; border-radius: 8px; display: inline-block; margin-bottom: 25px; line-height: 0; }
.footer-logo { height: 40px; margin-bottom: 0; }
footer p { margin: 0; font-size: 0.95rem; color: #aaa; }

/* Responsive Design Overrides */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        gap: 20px;
    }

    .nav-links.active { display: flex; }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    
    .hero, .value-prop { 
        background-attachment: scroll; 
    }
    .hero { padding: 160px 0 100px; }
    
    .contact-wrapper { flex-direction: column; gap: 40px; }

    .shape { animation: floatMobile 10s ease-in-out infinite; }
    .shape-1 { width: 180px; height: 180px; top: -30px; left: -40px; }
    .shape-2 { width: 120px; height: 120px; bottom: 20px; right: -30px; }
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
    .hero,
    .value-prop {
        background-attachment: fixed;
    }
}