/* ============================================
   M3 CONSULTING - DESIGN SYSTEM
   ============================================ */

/* Brand Colors */
:root {
    --color-navy: #0a1628;
    --color-navy-light: #0f1d32;
    --color-navy-medium: #152238;
    --color-blue: #1e88e5;
    --color-blue-light: #42a5f5;
    --color-blue-dark: #1565c0;
    --color-teal: #26a69a;
    --color-teal-light: #4db6ac;
    --color-teal-dark: #00897b;
    --color-green: #7cb342;
    --color-green-light: #9ccc65;
    --color-gold: #d4a43c;
    --color-gold-light: #e4b84c;
    
    /* Neutrals */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    
    /* Typography */
    --font-display: 'Exo 2', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Animations */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 20px 50px rgba(10, 22, 40, 0.18);
    --shadow-glow: 0 0 40px rgba(38, 166, 154, 0.4);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-gray-700);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ============================================
   NAVIGATION - PROMINENT LOGO
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out-quad);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.7) 50%, transparent 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.nav.scrolled::before {
    opacity: 0;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.1);
    padding: 0.75rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* PROMINENT LOGO STYLING - MAXIMUM IMPACT */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Outer glow ring */
.logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(ellipse at center, rgba(38, 166, 154, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(30, 136, 229, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at center, rgba(124, 179, 66, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 1;
    transition: all 0.5s ease;
    pointer-events: none;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

/* Inner highlight ring */
.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    filter: blur(8px);
    opacity: 1;
    transition: all 0.5s ease;
    pointer-events: none;
}

@keyframes logoGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.nav.scrolled .logo-wrapper::before {
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(ellipse at center, rgba(38, 166, 154, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(30, 136, 229, 0.1) 0%, transparent 60%);
    filter: blur(15px);
    animation: none;
}

.nav.scrolled .logo-wrapper::after {
    opacity: 0.5;
}

.logo img {
    height: 85px;
    width: auto;
    transition: all 0.5s var(--ease-out-expo);
    filter: 
        drop-shadow(0 0 20px rgba(38, 166, 154, 0.5))
        drop-shadow(0 0 40px rgba(30, 136, 229, 0.3))
        drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.nav.scrolled .logo img {
    height: 58px;
    filter: 
        drop-shadow(0 0 10px rgba(38, 166, 154, 0.2))
        drop-shadow(0 4px 15px rgba(10, 22, 40, 0.15));
}

.logo:hover img {
    transform: scale(1.08);
    filter: 
        drop-shadow(0 0 30px rgba(38, 166, 154, 0.7))
        drop-shadow(0 0 60px rgba(30, 136, 229, 0.5))
        drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.nav.scrolled .logo:hover img {
    transform: scale(1.05);
    filter: 
        drop-shadow(0 0 20px rgba(38, 166, 154, 0.4))
        drop-shadow(0 6px 20px rgba(30, 136, 229, 0.25));
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-links a {
    color: var(--color-gray-600);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-blue));
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--color-white);
}

.nav.scrolled .nav-links a:hover {
    color: var(--color-navy);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-teal-light);
}

.nav.scrolled .nav-links a.active {
    color: var(--color-teal);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-blue) 100%) !important;
    color: var(--color-white) !important;
    padding: 0.85rem 1.75rem !important;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(38, 166, 154, 0.4);
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(38, 166, 154, 0.5) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.nav.scrolled .mobile-menu-btn span {
    background: var(--color-navy);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-quad);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 136, 229, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
}

.btn-outline:hover {
    background: var(--color-teal);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    color: var(--color-teal);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* Dark Section Variants */
.section-dark {
    background: var(--color-navy);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(38, 166, 154, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 136, 229, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-dark .section-label {
    color: var(--color-gold);
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-dark .section-description {
    color: var(--color-gray-400);
}

/* Gray Section */
.section-gray {
    background: var(--color-gray-50);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    padding: 2.5rem;
    background: var(--color-white);
    border-radius: 20px;
    border: 1px solid var(--color-gray-200);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-teal-light);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--color-gray-600);
    line-height: 1.7;
}

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

.footer {
    background: var(--color-navy);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    padding-right: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-wrapper::before {
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(ellipse at center, rgba(38, 166, 154, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(30, 136, 229, 0.15) 0%, transparent 60%);
    filter: blur(15px);
    animation: logoGlow 4s ease-in-out infinite alternate;
}

.footer-brand .logo-wrapper::after {
    opacity: 0.3;
}

.footer-brand .logo img {
    height: 70px;
    filter: 
        drop-shadow(0 0 15px rgba(38, 166, 154, 0.3))
        drop-shadow(0 0 30px rgba(30, 136, 229, 0.2))
        drop-shadow(0 4px 15px rgba(255, 255, 255, 0.1));
}

.footer-brand .logo:hover img {
    filter: 
        drop-shadow(0 0 25px rgba(38, 166, 154, 0.5))
        drop-shadow(0 0 45px rgba(30, 136, 229, 0.35))
        drop-shadow(0 6px 20px rgba(255, 255, 255, 0.15));
}

.footer-brand p {
    color: var(--color-gray-400);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-column h4 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--color-gray-400);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-teal-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--color-gray-500);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
    background: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

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

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(38, 166, 154, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 20px 40px rgba(10, 22, 40, 0.15);
        border-radius: 0 0 20px 20px;
    }

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

    .nav-links a {
        color: var(--color-gray-700) !important;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        color: var(--color-teal) !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo img {
        height: 65px;
    }

    .nav.scrolled .logo img {
        height: 50px;
    }
    
    .logo-wrapper::before {
        width: 140%;
        height: 140%;
    }

    .section {
        padding: 5rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 55px;
    }

    .nav.scrolled .logo img {
        height: 45px;
    }
    
    .logo-wrapper::before {
        width: 130%;
        height: 130%;
        filter: blur(15px);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
