/* --- AXIOMA X STYLE - CASMIFY EDITION --- */

:root {
    /* --- FIXED LOGO GRADIENT (Never Changes) --- */
    --logo-gradient: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #7e22ce 100%);

    /* --- THEME GRADIENT (Changes on Studdy/Word Jollof pages) --- */
    --brand-gradient: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #7e22ce 100%);
    
    /* ... rest of your variables (primary-blue, etc) ... */
    --primary-blue: #3b82f6;
    --bg-body: #ffffff;
    --bg-surface: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-body: #0a0a0a;
    --bg-surface: #111111;
    --bg-card: #171717;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border-light: #262626;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.4s var(--ease-out), color 0.4s;
    overflow-x: hidden;
}

/* --- Typography (Axioma Style: Big & Bold) --- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }

.display-text {
    font-size: clamp(3rem, 8vw, 5rem); /* Massive responsive text */
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--text-main);
    -webkit-background-clip: text;
    background-clip: text;
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.section-header h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }

/* --- Layout Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s var(--ease-out);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-body);
    border: 1px solid transparent;
}
.btn-primary:hover { transform: scale(1.05); }

/* In dark mode, invert the primary button to keep contrast */
body.dark-mode .btn-primary { background: #fff; color: #000; }

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}
.btn-secondary:hover { border-color: var(--text-main); }

/* --- Header --- */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center;
}
body.dark-mode .header { background: rgba(10, 10, 10, 0.8); }

.navbar {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.logo {
    font-size: 1.5rem; font-weight: 700;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links { display: flex; gap: 32px; list-style: none; text-decoration: none;}
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); text-decoration: none; }

/* Mobile Menu & Theme Toggle */
.theme-toggle { background: none; border: none; font-size: 1.2rem; color: var(--text-main); cursor: pointer; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    padding-top: 180px; padding-bottom: 100px;
    text-align: center;
}
.hero p {
    font-size: 1.25rem; color: var(--text-muted);
    max-width: 600px; margin: 0 auto 40px auto;
}

/* --- Marquee (Logos) --- */
.marquee-section {
    padding: 40px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
    overflow: hidden; background: var(--bg-surface);
}
.marquee-track {
    display: flex; gap: 60px;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    font-size: 1.5rem; font-weight: 700; color: var(--border-light);
    text-transform: uppercase;
}
/* Specifically target the text inside marquee to look like "Logos" */
.marquee-item span { color: var(--text-muted); opacity: 0.5; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Bento Grid (Projects) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
    padding: 100px 0;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    display: flex; flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary-blue);
}
body.dark-mode .bento-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

/* Grid Spans */
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }

.card-img {
    height: 300px;          /* Keep the block size consistent */
    width: 100%;
    object-fit: contain;    /* <--- THE MAGIC FIX: Shows the full image */
    background: var(--bg-surface); /* Adds a clean background behind the phone */
    padding: 20px;          /* Adds breathing room so the phone isn't touching edges */
    border-bottom: 1px solid var(--border-light);
}

.card-content { padding: 32px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-tags { margin-bottom: 12px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-blue); font-weight: 600; }
.card-title { font-size: 1.5rem; margin-bottom: 8px; }

/* --- Stats Section (Axioma Style) --- */
.stats-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-light);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; text-align: center;
}
.stat-number { font-size: 4rem; font-weight: 700; display: block; margin-bottom: 10px; }
.stat-label { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- Scroll Animations (Framer Style) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .span-6, .span-4, .span-12 { grid-column: span 12; }
    .display-text { font-size: 2.8rem; }
    .hero { padding-top: 120px; }
    .nav-links { display: none; } /* Add JS for hamburger later */
    .hamburger { display: block; }
}

/* --- Page Specific Theme Overrides --- */

/* Studdy (Purple Theme) */
.theme-purple {
    --primary-blue: #8a2be2; /* Changes the main accent to Purple */
    --brand-gradient: linear-gradient(90deg, #8a2be2 0%, #d8b4fe 100%);
}

/* Word Jollof (Orange Theme) */
.theme-orange {
    --primary-blue: #FF7B00; /* Changes the main accent to Orange */
    --brand-gradient: linear-gradient(90deg, #FF7B00 0%, #ffc107 100%);
}

/* Legal & Text Pages */
.text-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}
.text-content-wrapper h2 { margin-top: 40px; margin-bottom: 20px; font-size: 2rem; }
.text-content-wrapper p, .text-content-wrapper li { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.text-content-wrapper ul { padding-left: 20px; }

/* --- Footer Hover Animations (Fixed for your HTML) --- */

/* 1. Target all links in the footer, BUT exclude the main Logo and the Buttons */
footer a:not(.btn):not(.logo) {
    display: inline-block;       /* Required for the rise effect */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth movement */
    text-decoration: none;       /* Ensure no underlines appear */
}

/* 2. The "Rise" Effect on Hover */
footer a:not(.btn):not(.logo):hover {
    transform: translateY(-5px); /* Moves up by 5 pixels */
    color: var(--primary-blue) !important; /* Forces the color change */
}

/* 3. Specific styling for Social Icons (Circles) */
footer .social-links a {
    display: inline-flex !important; /* Force flex to center icons */
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    background: rgba(0, 0, 0, 0.05); /* Light background for the circle */
    border-radius: 50%; /* Make them circles */
    transition: all 0.3s ease;
    margin-right: 10px !important; /* Override inline styles for spacing */
}

/* Dark Mode adjustment for social icons */
body.dark-mode footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
}

footer .social-links a:hover {
    background: var(--primary-blue); /* Fill with blue on hover */
    color: white !important; /* White icon */
    transform: translateY(-5px); /* Rise up */
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); /* Nice glow effect */
}

.card-title {
    font-size: 1.5rem;      
    margin-bottom: 8px;
    line-height: 1.3;       /* <--- FIX: Gives the text more room to breathe */
    letter-spacing: -0.02em; /* tighten letters slightly for a cleaner look */
}

/* Optional: On smaller screens, shrink the text slightly to prevent smushing */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.35rem;
    }
}