/* ===========================
   CHINENYE EKERUCHE CONSULTING
   Professional Scientific Consulting Website
   =========================== */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors - Deep Blues (Trust & Expertise) */
    --midnight: #1A2332;
    --navy: #2C3E50;
    --steel: #34495E;
    
    /* Secondary Colors - Warm Neutrals */
    --slate: #5D6D7E;
    --silver: #95A5A6;
    --pearl: #ECF0F1;
    
    /* Accent Colors */
    --copper: #C17432;
    --bronze: #A0522D;
    --gold: #D4A574;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-dark: #1A2332;
    
    /* Text Colors */
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --text-light: #95A5A6;
    --text-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===========================
   BASE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--midnight);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--copper);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--bronze);
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--midnight);
    transition: opacity var(--transition-fast);
    display: block;
    line-height: 0;
}

.logo:hover {
    opacity: 0.8;
}

.logo svg {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--copper);
    transition: width var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--midnight);
}

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

.nav-menu a.active::after {
    width: 100% !important;
}

.nav-menu a.active {
    color: var(--midnight) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--midnight);
    transition: all var(--transition-normal);
}

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

.hero {
    padding: 10rem 2rem 6rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--pearl) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(193, 116, 50, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--midnight);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--copper);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

.cta-button,
.cta-button-large,
.cta-button-secondary,
.secondary-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.cta-button,
.cta-button-large {
    background: var(--copper);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(193, 116, 50, 0.2);
}

.cta-button:hover,
.cta-button-large:hover {
    background: var(--bronze);
    box-shadow: 0 6px 20px rgba(193, 116, 50, 0.3);
    transform: translateY(-2px);
    color: var(--text-white);
}

.cta-button-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.cta-button-secondary {
    background: transparent;
    color: var(--copper);
    border: 2px solid var(--copper);
}

.cta-button-secondary:hover {
    background: var(--copper);
    color: var(--text-white);
}

.secondary-button {
    background: var(--bg-secondary);
    color: var(--navy);
    border: 1px solid var(--silver);
}

.secondary-button:hover {
    background: var(--pearl);
    border-color: var(--copper);
    color: var(--copper);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
    padding: var(--spacing-xl) 2rem;
    background: var(--bg-primary);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-image-wrapper {
    position: sticky;
    top: 120px;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--pearl) 0%, var(--silver) 100%);
    background-image: url('images/headshot.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--copper);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-emphasis {
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 600;
    font-style: italic;
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--copper);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ===========================
   EXPERTISE PREVIEW
   =========================== */

.expertise-preview {
    padding: var(--spacing-xl) 2rem;
    background: var(--bg-secondary);
}

.expertise-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expertise-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.expertise-card:hover {
    border-color: var(--copper);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.expertise-card p {
    font-size: 1rem;
    line-height: 1.7;
}

.expertise-cta {
    text-align: center;
    margin-top: 3rem;
}

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

.services-preview {
    padding: var(--spacing-xl) 2rem;
    background: var(--bg-primary);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-container h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 8px;
    position: relative;
    transition: all var(--transition-normal);
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(193, 116, 50, 0.15);
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 0;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--copper);
    font-weight: bold;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--copper);
}

.service-link:hover {
    color: var(--bronze);
    transform: translateX(3px);
}

/* ===========================
   CLIENTS SECTION
   =========================== */

.clients {
    padding: var(--spacing-xl) 2rem;
    background: var(--bg-dark);
    color: var(--text-white);
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
}

.clients h2 {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 3rem;
}

.client-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.client-category {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.client-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--copper);
    transform: translateY(-5px);
}

.client-category h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.client-category p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    padding: var(--spacing-xl) 2rem;
    background: linear-gradient(135deg, var(--pearl) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer {
    background: var(--midnight);
    color: var(--text-white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--gold) !important;
    margin-top: 1rem;
}

.footer-column h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-contact {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--copper);
}


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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.fade-in-delay-4 {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .logo svg {
        max-width: 240px;
        height: auto;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        position: relative;
        top: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button,
    .cta-button-large,
    .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }
}
