/* 
 * Global Stylesheet for Project Context
 * Path: /assets/css/global.css
 * Used by: index.html and other root-level pages
 * Updated: Added glossy effects, mobile overlay, back-to-top button
 */

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

:root {
    --primary-dark: #0a0a0a;
    --primary-light: #ffffff;
    --accent-blue: #00b4d8;
    --accent-purple: #7209b7;
    --accent-rose: #e11d48;
    --accent-gold: #d4af37;
    --accent-green: #10b981;
    --text-gray: #666;
    --bg-gray: #f5f5f5;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    overflow-x: hidden;
}

/* Navigation - Consistent with component */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-dark);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.8rem;
    margin-left: 0.25rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-light);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
    top: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border: 1px solid var(--border-light);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.dropdown-content a {
    color: var(--text-gray);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--bg-gray);
    color: var(--primary-dark);
    padding-left: 1.5rem;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section with Gradient */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 80px;
    position: relative;
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #7209b7 25%, 
        #e11d48 50%, 
        #7209b7 75%, 
        #1a1a1a 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(225,29,72,0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(114,9,183,0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: float 30s infinite linear;
}

/* Optional: Enhanced glass effect for hero */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float-reverse 25s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes float-reverse {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.2s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-logo svg path,
.hero-logo svg ellipse {
    stroke: white;
}

.hero-logo svg circle:first-of-type {
    fill: #00b4d8;
}

.hero-logo svg circle:last-of-type {
    fill: white;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.featured-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    opacity: 0.95;
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.primary-button {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: white;
}

.secondary-button {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--primary-light);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Glossy Effects for Featured Section Only */
#featured .feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Conservative approach: glossy only on hover */
#featured .feature-card.featured-glossy:hover {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.98) 0%, 
        rgba(248,248,248,0.95) 100%);
    box-shadow: 
        0 15px 40px 0 rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-8px) scale(1.02);
    border: 1px solid rgba(255,255,255,0.6);
}

/* Subtle glass sheen on hover */
#featured .feature-card.featured-glossy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0) 100%);
    pointer-events: none;
    transition: all 0.4s ease;
}

#featured .feature-card.featured-glossy:hover::before {
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0) 100%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-rose) 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(114, 9, 183, 0.4);
}

/* Special styling for Women's Hub card */
.feature-card:has(.feature-icon:contains("👩")) {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.05) 0%, rgba(114, 9, 183, 0.05) 100%);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2c2c2c 100%);
    color: var(--primary-light);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(114, 9, 183, 0.1) 0%, transparent 70%);
}

footer p {
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

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

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        background: var(--bg-gray);
        margin-left: 1rem;
        margin-top: 0.5rem;
        border-radius: 0;
        border: none;
        border-left: 2px solid var(--border-light);
    }

    .dropdown-toggle::after {
        display: none;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    /* Featured cards stay subtle on mobile (no hover states) */
    #featured .feature-card.featured-glossy {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Optional: Add subtle loading animation for featured cards */
#featured .feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

#featured .feature-card:nth-child(1) { animation-delay: 0.1s; }
#featured .feature-card:nth-child(2) { animation-delay: 0.2s; }
#featured .feature-card:nth-child(3) { animation-delay: 0.3s; }
#featured .feature-card:nth-child(4) { animation-delay: 0.4s; }

/* === Project Context v5.5 Elements (for About page & profiles) === */

/* Card containers */
.theology-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* Section titles */
.section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.75rem;
  margin: 1.25rem 0;
}
.section-title .section-icon {
  font-size: 1.25rem;
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.panel {
  background: #fafafe;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 12px;
  padding: 1rem;
}

/* Quick nav sidebar */
.quick-nav-sidebar {
  position: fixed;
  top: 100px;
  left: 24px;
  display: grid;
  gap: .5rem;
  z-index: 10;
}
.quick-nav-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  padding: .5rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.quick-nav-item.active {
  border-color: var(--accent-blue, #4a5fff);
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--accent-blue, #4a5fff);
  z-index: 9999;
}

/* Key insight callout */
.key-insight {
  border-left: 4px solid var(--accent-blue, #4a5fff);
  background: #f6f8ff;
  padding: .9rem 1rem;
  border-radius: 8px;
  margin-top: .75rem;
}

/* Optional: subtle hero treatment just for About */
body.about-page .section-title {
  background: linear-gradient(135deg, var(--bg-soft, #f0f4ff), #e8eeff);
  border: 2px solid var(--accent-blue, #4a5fff);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
}