@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Outfit', sans-serif;
}

/* Base Themes */
.theme-dark {
    background-color: #050505;
    color: #FFFFFF;
}

.theme-light {
    background-color: #F5F5F2;
    color: #111111;
}

/* Section Spacing */
.section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Utility Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

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

.image-zoom-container {
    overflow: hidden;
}

.image-zoom-container img {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-zoom-container:hover img {
    transform: scale(1.05);
}

/* Ambient Gradients */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(178, 0, 255, 0.15) 40%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Selection */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: inherit;
}

/* =========================================
   PAGE BANNER - Dark hero sections
========================================= */
.page-banner {
    background-color: #050505;
    color: #ffffff;
}

/* ALL elements in page-banner inherit white text */
.page-banner * {
    color: inherit;
}

.page-banner h1,
.page-banner h2,
.page-banner h3,
.page-banner h4 {
    color: #ffffff !important;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Override Tailwind gray text classes inside page-banner */
.page-banner [class*="text-gray"] {
    color: rgba(255, 255, 255, 0.65) !important;
}

.page-banner a:not([class*="text-accent"]):not([class*="text-white"]) {
    color: rgba(255, 255, 255, 0.65) !important;
}

.page-banner a:hover {
    color: #ffffff !important;
}

/* Breadcrumb slash */
.page-banner span:not([class*="text-accent"]) {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* =========================================
   DARK THEME - TEXT VISIBILITY FIXES
   Override ALL Tailwind text color utilities
========================================= */
.theme-dark {
    color: #ffffff;
}

/* ALL headings in dark sections → white */
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
    color: #ffffff !important;
}

/* ALL paragraphs in dark sections → white-ish */
.theme-dark p {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ALL spans in dark sections (unless they have accent color) */
.theme-dark span:not([class*="text-accent"]):not([class*="text-transparent"]):not([class*="bg-clip-text"]) {
    color: inherit !important;
}

/* Override every Tailwind gray text utility */
.theme-dark [class*="text-gray-9"] {
    color: #ffffff !important;
}
.theme-dark [class*="text-gray-8"] {
    color: rgba(255, 255, 255, 0.9) !important;
}
.theme-dark [class*="text-gray-7"] {
    color: rgba(255, 255, 255, 0.85) !important;
}
.theme-dark [class*="text-gray-6"] {
    color: rgba(255, 255, 255, 0.65) !important;
}
.theme-dark [class*="text-gray-5"] {
    color: rgba(255, 255, 255, 0.55) !important;
}
.theme-dark [class*="text-gray-4"] {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Links in dark sections */
.theme-dark a:not([class*="text-accent"]):not([class*="text-white"]) {
    color: rgba(255, 255, 255, 0.8) !important;
}
.theme-dark a:hover {
    color: #ffffff !important;
}

/* Borders in dark sections */
.theme-dark [class*="border-black"] {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Gradient text fix for dark sections */
.theme-dark .text-transparent.bg-clip-text {
    background: linear-gradient(to right, #ffffff, rgba(255,255,255,0.4)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* =========================================
   SCROLLED NAVBAR TEXT COLORS
   When navbar is scrolled and glass-nav-light is applied
========================================= */
#navbar.glass-nav-light .nav-link,
#navbar.glass-nav-light a {
    color: #333333 !important;
}

#navbar.glass-nav-light a:hover {
    color: #000000 !important;
}

#navbar.glass-nav-light [href*="index"] {
    color: #333333 !important;
}

/* Navbar logo when scrolled → dark text */
#navbar.glass-nav-light [class*="font-bold"]:first-child {
    color: #111111 !important;
}

/* Navbar inner pill nav on scroll → dark text */
#navbar.glass-nav-light nav a {
    color: #444444 !important;
}

#navbar.glass-nav-light nav a:hover {
    color: #000000 !important;
}

/* =========================================
   LIGHT THEME - TEXT VISIBILITY FIXES
========================================= */
.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6 {
    color: #111111;
}

/* =========================================
   FULL-STACK SOLUTIONS CARD FIX
   Dark card in light section needs white text
========================================= */
.bg-gray-900 h4,
.bg-gray-900 p,
.bg-gray-900 span:not([class*="text-"]) {
    color: #ffffff !important;
}
.bg-gray-900 .text-gray-900,
.bg-gray-900 .text-gray-600,
.bg-gray-900 .text-gray-500 {
    color: rgba(255, 255, 255, 0.7) !important;
}
