/* --- VARIABLES --- */
:root {
    --navy: #1B263B;
    --blue: #415A77;
    --grey: #E0E1DD;
    --light-blue: #778DA9;
    --white: #FFFFFF;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */

@keyframes navbarSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleReveal {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0);    }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes drawDivider {
    from { width: 0;    opacity: 0; }
    to   { width: 60px; opacity: 1; }
}

@keyframes bracketPop {
    0%, 100% { letter-spacing: 0; }
    50%       { letter-spacing: 2px; }
}

/* =============================================
   RESET & GLOBAL
   ============================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    line-height: 1.7;
    scroll-behavior: smooth;
}
.container { width: 90%; max-width: 1100px; margin: auto; }
.text-center { text-align: center; }
.accent { color: var(--light-blue); }

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
    background: var(--navy);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: navbarSlideDown 0.55s var(--ease-out) both;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(27, 38, 59, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.28);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2rem; }

.nav-links a {
    color: var(--grey);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Animated underline for nav links */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-blue);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
    background: var(--blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease !important;
}
.nav-btn::after { display: none !important; }
.nav-btn:hover {
    background: var(--light-blue) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(119, 141, 169, 0.4) !important;
}

/* =============================================
   LOGO
   ============================================= */

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    cursor: pointer;
}
.logo-box {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

/* Bracket hover animation */
.bracket {
    color: var(--light-blue);
    display: inline-block;
    transition: transform 0.35s var(--ease-spring), color 0.3s ease;
}
.logo-wrapper:hover .bracket:first-of-type { transform: translateX(-4px); }
.logo-wrapper:hover .bracket:last-of-type  { transform: translateX(4px); }

.tech { color: var(--light-blue); }
.tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey);
    margin-top: 4px;
    opacity: 0.8;
}

/* =============================================
   HERO
   ============================================= */

.hero {
    height: 85vh;
    background: linear-gradient(rgba(27, 38, 59, 0.8), rgba(27, 38, 59, 0.8)),
                url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1500');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

/* Staggered hero entrance */
.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s var(--ease-out) 0.1s both;
}
.hero-text p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: var(--grey);
    animation: fadeInUp 0.9s var(--ease-out) 0.3s both;
}
.hero-btns {
    animation: fadeInUp 0.9s var(--ease-out) 0.5s both;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease,
                background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
    background: var(--blue);
    color: white;
    border: 1px solid var(--blue);
}
.btn-primary:hover {
    background: var(--light-blue);
    border-color: var(--light-blue);
    box-shadow: 0 8px 24px rgba(65, 90, 119, 0.45);
}
.btn-outline {
    border: 1px solid var(--grey);
    color: var(--grey);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* =============================================
   FOUNDERS SECTION
   ============================================= */

.welcome-section { padding: 100px 0 60px; background-color: var(--white); }

.founders-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.founder-card h3 { font-size: 1.8rem; color: var(--navy); margin-bottom: 5px; }
.founder-role {
    color: var(--blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* =============================================
   WELCOME SECTION
   ============================================= */

.welcome-tag {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.welcome-section h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 25px;
}
.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Divider animates width when .visible is added */
.welcome-divider {
    width: 0;
    height: 4px;
    background: var(--light-blue);
    margin: 40px auto 0;
    border-radius: 2px;
    opacity: 0;
    transition: width 0.8s var(--ease-out), opacity 0.6s ease;
}
.welcome-divider.visible {
    width: 60px;
    opacity: 1;
}

/* =============================================
   CORE VALUES
   ============================================= */

.values-section { padding: 100px 0; background-color: var(--white); }
.section-title { font-size: 2.2rem; margin-bottom: 3rem; }
.section-subtitle { color: #666; margin-bottom: 1rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    padding: 20px;
    border-left: 3px solid var(--grey);
    transition: border-left-color 0.4s ease, background 0.4s ease,
                transform 0.4s var(--ease-out);
}
.value-item:hover {
    border-left-color: var(--light-blue);
    background: rgba(224, 225, 221, 0.2);
    transform: translateX(7px);
}
.value-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--grey);
    opacity: 0.5;
    font-family: 'Courier New', monospace;
}

/* =============================================
   SERVICES
   ============================================= */

.services { padding: 5rem 0; background: var(--grey); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 26px 60px rgba(65, 90, 119, 0.18);
}

/* Icon spins slightly on card hover */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s var(--ease-spring);
}
.card:hover .card-icon { transform: scale(1.18) rotate(-8deg); }

.card ul { list-style: none; margin-top: 1rem; text-align: left; }
.card li::before { content: "• "; color: var(--blue); font-weight: bold; }

/* =============================================
   PRICING
   ============================================= */

.pricing-section { padding: 80px 0; background: var(--grey); }

.pricing-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(65, 90, 119, 0.16);
}
.pricing-card.featured { border: 2px solid var(--blue); }

.pricing-note {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background: #f8fafc;
    border-left: 5px solid var(--blue);
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
    clear: both;
}

.category-title {
    text-align: left;
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--light-blue);
    padding-bottom: 5px;
}

/* =============================================
   NETWORKING ROW
   ============================================= */

.networking-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 50px;
}

.net-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--blue);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.net-item:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 25px rgba(65, 90, 119, 0.14);
}

.net-label { font-weight: 600; color: var(--navy); }
.net-price { font-weight: 700; color: var(--blue); font-size: 1.1rem; }

/* =============================================
   CONTACT
   ============================================= */

.contact {
    padding: 80px 0;
    background: var(--navy);
    color: var(--white);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
}
.contact-info, .contact-form {
    flex: 1;
    min-width: 320px;
}

.info-item { margin-bottom: 1.2rem; }
.phone-list { margin-top: 4px; }

.form-group { margin-bottom: 15px; text-align: left; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--grey);
    margin-bottom: 5px;
    opacity: 0.85;
}

.contact-form input,
.contact-form textarea {
    width: 100% !important;
    padding: 12px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: var(--white) !important;
    font-family: inherit;
    font-size: 1rem;
    display: block;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    background-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(119, 141, 169, 0.2);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    /* Slide in from right on load, then pulse ring every few seconds */
    animation: slideInRight 0.8s var(--ease-out) 1.4s both,
               pulseRing 2.5s 4s infinite;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.07) !important;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45) !important;
}

.whatsapp-icon { width: 30px; height: 30px; margin-right: 10px; }
.whatsapp-text { font-weight: 600; font-size: 0.9rem; }

/* =============================================
   FOOTER
   ============================================= */

footer {
    text-align: center;
    padding: 2rem;
    background: #0b111a;
    color: #777;
    font-size: 0.8rem;
}

/* =============================================
   SCROLL REVEAL SYSTEM
   ============================================= */

/* Base hidden state */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.scale-up   { transform: scale(0.93) translateY(10px); }

/* Visible state — JS adds this class */
.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
    .pricing-row, .networking-row {
        flex-direction: column;
    }
    .pricing-card.featured { transform: scale(1); }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}

/* =============================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .welcome-divider {
        width: 60px !important;
        opacity: 1 !important;
    }
}
