:root {
    /* Immersive Dark Palette */
    --primary: #008000; /* Deep Green */
    --primary-glow: #00ff41; /* Cyber Green */
    --primary-dark: #004d00;
    
    --accent: #0074D9; /* Electric Blue */
    --accent-glow: #00c6ff;
    
    --bg-deep: #050a10; /* Void Blue-Black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(10, 20, 30, 0.7);
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-highlight: #ffffff;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 70px; /* Reduced from 80px */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    
    /* Effects */
    --glass-blur: blur(20px);
    --shadow-glow: 0 0 20px rgba(0, 128, 0, 0.3);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 128, 0, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 78, 146, 0.15), transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-highlight);
    line-height: 1.1;
    margin-top: 0;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; text-shadow: 0 0 30px rgba(0,255,65,0.2); }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--primary-glow); }

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
}

/* Animations */
@keyframes crystalFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; filter: blur(40px); }
    50% { opacity: 0.8; filter: blur(60px); }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Urgency Banner */
.top-urgency-banner {
    display: block;
    background: linear-gradient(90deg, #b22222, #8b0000); /* Deep Red Urgency */
    color: #fff;
    padding: 8px 0; /* Reduced from 12px */
    text-align: center;
    font-size: 0.9rem; /* Reduced from 0.95rem */
    font-weight: 600;
    position: relative;
    z-index: 999; /* Below site-header to avoid blocking dropdowns */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-urgency-banner:hover {
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
    filter: brightness(1.1);
}

.top-urgency-banner span {
    display: inline-block;
    animation: pulse-subtle 2s infinite ease-in-out;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(0.99); }
}

/* Header & Nav */
.site-header {
    background: rgba(5, 10, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
}

.logo {
    height: 48px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.3));
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-glow);
    text-shadow: 0 0 10px rgba(0,255,65,0.4);
}

.main-nav a.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0, 128, 0, 0.3);
}

.main-nav a.cta:hover {
    box-shadow: 0 0 25px rgba(0, 128, 0, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero.small-hero {
    padding-bottom: 3rem;
}

/* Crystal Background Effects */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 35%, transparent 70%);
    filter: blur(70px);
    opacity: 0.45;
    animation: pulseGlow 8s infinite ease-in-out;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at bottom left, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.35) 30%, transparent 70%);
    filter: blur(70px);
    opacity: 0.4;
    animation: pulseGlow 10s infinite ease-in-out reverse;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2.5rem; /* Reduced from 4rem */
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem; /* Reduced from 4rem */
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.hero .lead {
    font-size: 1.15rem; /* Slightly reduced */
    color: var(--text-muted);
    margin-bottom: 2rem; /* Reduced from 3rem */
    border-left: 2px solid var(--primary);
    padding-left: 1.25rem;
}

.cta-row {
    display: flex;
    gap: 1.25rem;
}

/* Hero Image as Crystal Prism */
.hero-image {
    height: 400px; /* Reduced from 450px */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(255, 255, 255, 0.05),
        0 0 50px rgba(0, 128, 0, 0.2);
    animation: crystalFloat 10s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    mix-blend-mode: luminosity;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Brands Marquee */
.brands-marquee-section {
    padding: 6rem 0; /* Increased padding */
    background: transparent; /* Cleaner look */
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}

.marquee-title {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 600;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 4rem;
    min-width: 100%;
    animation: scroll-marquee 60s linear infinite;
}

.brand-item {
    flex-shrink: 0;
    height: 100px; /* Taller container for bigger images */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.brand-item img {
    height: 70px; /* Bigger logo height */
    width: auto;
    opacity: 1; /* Full clarity */
    filter: none; /* Removed the whitish filter */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.brand-item:hover img {
    transform: scale(1.1); /* Zoom effect for clarity */
    opacity: 1;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 4rem)); }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,128,0,0.3), transparent 60%);
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.hero-image::after, .service-header::after {
    content: attr(data-label);
    color: var(--primary-glow);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary-glow);
    z-index: 2;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.hero-image::after {
    bottom: 20%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary), #006600);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(0, 128, 0, 0.4);
}

.btn.primary:hover {
    box-shadow: 0 0 40px rgba(0, 128, 0, 0.6);
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn.ghost:hover {
    border-color: var(--primary-glow);
    color: var(--primary-glow);
    background: rgba(0, 255, 65, 0.05);
}


/* Internal Pages (Service & Contact) */
.service-page, .contact-page {
    padding-top: 7rem;
    padding-bottom: 6rem;
}

.service-header, .page-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    
    /* Faint Glass Background */
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 4rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.service-header::before, .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0.5;
}

.service-header h1, .page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0,255,65,0.1);
    position: relative;
    z-index: 1;
}

.service-header p, .page-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Service Header Background Images */
.service-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.1; /* Very faint */
    mix-blend-mode: luminosity; /* Blend with background color */
    filter: grayscale(100%) contrast(1.2);
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.product-design-bg::after {
    background-image: url('../images/sketch.jpg');
    background-position: top right;
}

.web-dev-bg::after {
    background-image: url('../images/code.jpg');
    background-position: center;
}

.mobile-bg::after {
    background-image: url('../images/mobile-hand.jpg');
    background-position: center;
}

.marketing-bg::after {
    background-image: url('../images/funnel.jpg');
    background-position: center;
}

.speaking-bg::after {
    background-image: url('../images/book-yemi-pidan.jpeg');
    background-position: center right;
    opacity: 0.18;
    clip-path: circle(65% at 80% 25%);
}

/* Services / Cards */
.services-overview { padding: 8rem 0; }

.speaking-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    text-align: left;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.speaking-hero-text h1 {
    text-align: left;
}

.speaking-hero-text p {
    text-align: left;
    margin-bottom: 1rem;
}

.speaking-hero-photo {
    justify-self: flex-end;
}

.speaker-photo-frame {
    width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 55% 45% 60% 40%;
    background: radial-gradient(circle at 20% 0%, rgba(0,255,65,0.35), transparent 55%), rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.75);
    overflow: hidden;
    transform: translateY(10px);
}

.speaker-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.speaker-name-tag {
    position: absolute;
    bottom: 14px;
    left: 18px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56,189,248,0.85), rgba(22,163,74,0.9));
    color: #020617;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 30px rgba(15,23,42,0.75);
}

.speaking-copy {
    max-width: 820px;
    margin: 0 auto 4rem;
    text-align: left;
}

.speaking-copy h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.speaking-copy p + p {
    margin-top: 1rem;
}

.speaking-page {
    padding-top: 5.5rem;
}

.speaking-page .quote-box {
    background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%), radial-gradient(circle at bottom right, rgba(34,197,94,0.12), transparent 55%), linear-gradient(145deg, rgba(15,23,42,0.98), rgba(8,16,28,0.98));
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,0.4);
    padding: 3rem 2.5rem;
}

.speaking-page .btn.primary {
    background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(34,197,94,0.95));
}

.speaking-page .quote-header {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.speaking-page .quote-header h2 {
    font-size: 2.2rem;
}

.speaking-page .detailed-form {
    max-width: 640px;
}

.speaking-page .form-row-2 {
    gap: 1.5rem;
}

.speaking-page .form-group label {
    color: #e5e7eb;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
}

.speaking-page .form-group input,
.speaking-page .form-group textarea,
.speaking-page .form-group select {
    background: rgba(15,23,42,0.9);
    border-radius: 0.75rem;
    border: 1px solid rgba(51,65,85,0.9);
}

.speaking-page .form-group input:focus,
.speaking-page .form-group textarea:focus,
.speaking-page .form-group select:focus {
    border-color: rgba(56,189,248,0.9);
    box-shadow: 0 0 0 1px rgba(56,189,248,0.65);
}

.budget-toggle {
    display: inline-flex;
    gap: 0.75rem;
}

.budget-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(51,65,85,0.9);
    cursor: pointer;
    font-size: 0.85rem;
}

.budget-option input {
    accent-color: rgba(56,189,248,0.9);
}

.budget-details-row {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.budget-details-row .form-group {
    flex: 1 1 0;
    min-width: 0;
}

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

.section-header h2 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--text-highlight), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card-grid .service-card {
    flex: 0 0 calc(33.333% - 1.4rem);
    min-width: 300px;
}

/* Ensure 3-up layout for service pages using .card items */
.card-grid .card {
    flex: 0 0 calc(33.333% - 1.4rem);
    min-width: 280px;
}

/* Products page: make product cards wider (two columns) */
.products-section .card-grid .service-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: 360px;
}
/* Product page density tweaks */
.products-section .product-image { padding: 0.75rem !important; }
.products-section .service-card { padding: 2rem; }

.card, .service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 128, 0, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before { opacity: 1; }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 128, 0, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 128, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    background: rgba(0, 128, 0, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--primary-glow);
    margin-bottom: 1rem;
}

.link-btn {
    color: var(--primary-glow);
    font-weight: 600;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-btn:hover {
    gap: 1rem;
    text-shadow: 0 0 10px rgba(0,255,65,0.5);
}

/* SEO Content */
.seo-content {
    max-width: 900px;
    margin: 6rem auto;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.seo-content h2 { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
.seo-block { margin-bottom: 3rem; }
.seo-block h3 { color: var(--accent-glow); }

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.1), rgba(0, 50, 100, 0.1));
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.cta-box h2 { font-size: 3rem; margin-bottom: 1.5rem; }

/* Forms */
.contact-wrapper { max-width: 700px; margin: 0 auto; }

.styled-form {
    background: rgba(20, 30, 40, 0.6);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.form-group input, .form-group textarea, .form-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary) 50%),
        linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 15px) 50%;
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 128, 0, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
.site-footer {
    background: #020406;
    border-top: 1px solid var(--border-glass);
    padding: 6rem 0 3rem;
    margin-top: 8rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.5));
    opacity: 0.8;
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-col h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--primary-glow); padding-left: 5px; }

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #555;
    text-align: center;
}

/* Use Cases / Case Studies */
.use-cases-bg::after {
    background-image: linear-gradient(45deg, #050a10 0%, rgba(5, 10, 16, 0.8) 100%), url('../images/code.jpg'); 
    background-position: center;
    opacity: 0.2;
}

/* Added extra top padding to separate from header */
.use-cases-section {
    padding: 8rem 0 6rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.case-study-card {
    /* Removed default background to allow image + gradient overlay */
    background: #050a10; 
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

/* Background Image & Overlay */
.case-study-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Low opacity for background image */
    transition: opacity 0.4s ease, transform 0.6s ease;
    z-index: -1;
    filter: grayscale(100%);
}

.case-study-card:hover::after {
    opacity: 0.25;
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Gradient Overlay to ensure legibility - Darker Green/Black mix */
.case-study-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient from dark black to a deep green-black */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 20, 0, 0.95) 100%);
    z-index: -1;
}

/* Specific Card Backgrounds */
.case-study-card.national-db::after {
    background-image: url('../images/a-centralized-database-system-for-a-national-association.png');
}

.case-study-card.study-abroad::after {
    background-image: url('../images/a-complete-student-management-solution-for-a-world-class-study-abroad-brand-in-Nigeria..png');
}

.case-study-card.msme-websites::after {
    background-image: url('../images/high-impact-small-scale-websites.png');
}

.case-study-card.marketing::after {
    background-image: url('../images/strategic-digital-marketing-campaigns.png');
}

.case-study-card.sales-funnel::after {
    background-image: url('../images/starnation-landing-page-sales-funnel.png');
}

.case-study-card.membership-system::after {
    background-image: url('../images/membership-management-system-developed-for-a-client.png');
}

/* Top accent line - now using a pseudo-element on a child container or box-shadow since ::before is used for overlay */
.case-study-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Re-implement top border animation using a different method or just border-top */
.case-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Add top accent line via border-top on hover or a new pseudo element if structure allows. 
   Simplifying to border-top color change for now to avoid conflict with overlay ::before */
.case-study-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.case-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.case-study-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.3;
}

.case-study-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}
/* WhatsApp Floating Button with Rotating Text */
.whatsapp-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.whatsapp-float {
    position: relative;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-text-badge {
    position: absolute;
    width: 140px; /* Slightly larger to prevent text clipping */
    height: 140px;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: var(--primary-glow);
    animation: rotate-continuous 15s linear infinite;
    opacity: 0.8;
}

.whatsapp-text-badge svg {
    width: 100%;
    height: 100%;
}

.bounce-animation {
    animation: bounce-slow 3s ease-in-out infinite;
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate-continuous {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 25px;
        right: 25px;
    }
    .whatsapp-float {
        width: 55px;
        height: 55px;
    }
    .whatsapp-text-badge {
        width: 110px;
        height: 110px;
    }
}

.case-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.case-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.case-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-muted);
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn::after {
    content: '▾';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn, .dropbtn:hover, .dropbtn.active {
    color: var(--primary-glow);
    text-shadow: 0 0 10px rgba(0,255,65,0.4);
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(5, 10, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 260px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Invisible bridge to prevent menu from closing when moving mouse */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    width: 100%;
    height: 1.5rem;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    white-space: normal;
    transition: all 0.2s;
}

.dropdown-content a:hover, .dropdown-content a.active {
    background-color: rgba(0, 128, 0, 0.1);
    color: var(--primary-glow);
    padding-left: 25px;
}

/* Mobile */
@media (max-width: 768px) {
    .service-page { padding-top: 7.5rem; }
    .service-header, .page-header { padding: 3rem 1rem; }
    .service-header h1, .page-header h1 { font-size: 2.4rem; line-height: 1.15; }
    .service-header p, .page-header p { font-size: 1.05rem; }
    .hero h1 { font-size: 2.2rem; text-align: center; } /* Reduced from 2.6rem */

    .speaking-page {
        padding-top: 6rem;
    }
    .hero .container { grid-template-columns: 1fr; gap: 1.5rem; } /* Reduced gap */
    .hero .lead { text-align: left; border-left: 2px solid var(--primary); padding-left: 1rem; font-size: 1.05rem; }
    /* Removed order: -1 to let it flow naturally below the content */
    .hero-image { margin-top: 2rem; margin-bottom: 2rem; height: 260px; } /* Reduced from 3rem and 300px */
    .cta-row { justify-content: center; }
    
    .speaking-hero {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 2rem;
    }

    .speaking-hero-photo {
        justify-self: center;
    }

    .speaker-photo-frame {
        width: 220px;
    }

    .speaking-page #quote-form .container {
        padding: 0 5px;
    }

    .card-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .card-grid .service-card {
        flex: 0 0 100%;
        min-width: 0;
    }
    .card-grid .card {
        flex: 0 0 100%;
        min-width: 0;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .use-cases-section {
        padding: 6rem 0 4rem;
    }

    .site-footer .container { grid-template-columns: 1fr 1fr; gap: 2rem; text-align: left; }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001; /* Ensure it's above the nav overlay */
        position: relative;
    }
    
    .mobile-menu-toggle span { 
        display: block;
        width: 100%; 
        height: 3px; 
        background-color: #ffffff; 
        border-radius: 2px;
        transition: all 0.3s linear;
        transform-origin: 1px;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        visibility: hidden;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .main-nav {
        position: fixed;
        top: 0; 
        right: 0; 
        bottom: 0;
        height: 100vh;
        width: 85%;
        max-width: 400px;
        background-color: #000000 !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem 2rem; /* Reduced bottom padding */
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-left: 1px solid var(--border-glass);
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .main-nav.open { transform: translateX(0); }
    .main-nav a { font-size: 1.2rem; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 0; }

    /* Mobile Dropdown */
    .dropdown {
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dropbtn {
        width: 100%;
        text-align: left;
        padding: 1rem 0;
        font-size: 1.2rem;
        justify-content: space-between;
    }
    
    .dropdown-content {
        position: static;
        display: none; 
        opacity: 1;
        transform: none;
        background: rgba(255,255,255,0.02);
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        width: 100%;
        min-width: unset;
        margin-top: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown.active .dropbtn {
        color: var(--primary-glow);
    }

    .dropdown.active .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown-content a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.02);
    }
    
    /* Hover disabled on mobile for dropdown to rely on click */
    .dropdown:hover .dropdown-content {
        display: none;
    }
    .dropdown.active:hover .dropdown-content {
        display: block;
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: linear-gradient(145deg, rgba(20, 30, 40, 0.95), rgba(10, 20, 30, 0.98));
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(0, 128, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .success-modal {
    transform: translateY(0) scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 128, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2.5rem;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 128, 0, 0.2);
}

.success-modal h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.success-modal p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.success-modal .btn {
    min-width: 150px;
}
