/* ========================================
   GENERAL STYLES - reDreamAI Website
   Use this for all pages to maintain consistency
   ======================================== */

/* CSS Variables for Theme */
:root {
    /* Brand colors */
    --brand-turquoise: #18d9ea;
    --brand-violet: #6366f1;
    --brand-violet-deep: #7c3aed;
    --bg-primary: #0c0a1a;
    --bg-secondary: rgba(15, 13, 30, 0.95);
    --bg-mobile-nav: rgba(15, 13, 30, 0.98);
    --bg-card: rgba(26, 26, 58, 0.4);
    --bg-logo-bar: rgba(230, 232, 240, 0.98);
    --bg-footer: transparent;
    --text-primary: #e0e0e0;
    --text-secondary: #9ca3af;
    --text-heading: white;
    --text-nav: #d1d5db;
    --text-nav-hover: #a5b4fc;
    --border-color: rgba(129, 140, 248, 0.15);
    --border-nav-mobile: rgba(129, 140, 248, 0.2);
    --shadow-nav: rgba(0, 0, 0, 0.3);
    --shadow-mobile-nav: rgba(0,0,0,0.5);
    --shadow-logo-bar: rgba(0,0,0,0.2);
    --hamburger-bg: #ffffff;
    --feature-checkmark: #818cf8;
}

body.light-mode {
    --bg-primary: #f9fafb;
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-mobile-nav: rgba(255, 255, 255, 0.98);
    --bg-card: rgba(255, 255, 255, 0.6);
    --bg-logo-bar: rgba(255, 255, 255, 0.98);
    --bg-footer: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-heading: #111827;
    --text-nav: #4b5563;
    --text-nav-hover: #5B54D9;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-nav-mobile: rgba(0, 0, 0, 0.08);
    --shadow-nav: rgba(0, 0, 0, 0.05);
    --shadow-mobile-nav: rgba(0,0,0,0.1);
    --shadow-logo-bar: rgba(0,0,0,0.08);
    --hamburger-bg: #111827;
    --feature-checkmark: #7c3aed;
}

/* ========================================
   BASE STYLES
   ======================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    overflow-x: hidden; 
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
    line-height: 1.6; 
    color: var(--text-primary); 
    background-color: var(--bg-primary); 
    background-image: linear-gradient(180deg, rgba(24,217,234,0.20) 0%, rgba(14,155,182,0.18) 30%, rgba(99,102,241,0.16) 70%, rgba(124,58,237,0.20) 100%); 
    background-attachment: fixed; 
    transition: background-color 0.3s ease, color 0.3s ease, background-image 0.6s ease; 
    padding-top: 70px;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
nav { 
    background: var(--bg-secondary); 
    backdrop-filter: blur(10px); 
    padding: 1rem; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    width: 100%; 
    z-index: 100; 
    border-bottom: 1px solid var(--border-color); 
    box-shadow: 0 2px 10px var(--shadow-nav); 
    transition: background-color 0.3s ease, border-color 0.3s ease; 
}

nav .container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
    padding-right: 0.5rem; 
}

/* Logo Styling */
.logo { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--text-heading); 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    z-index: 101; 
    letter-spacing: 0.5px; 
    transition: color 0.3s ease; 
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.brand-name { 
    display: inline-flex; 
    align-items: baseline; 
    gap: 0.05rem; 
}

.brand-re { 
    color: var(--brand-turquoise); 
}

.brand-dream { 
    color: #ffffff; 
}

.brand-ai { 
    color: var(--brand-turquoise); 
}

body.light-mode .brand-dream { 
    color: #111827; 
}

/* Hamburger Menu */
.menu-toggle { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 8px; 
    z-index: 101; 
}

.menu-toggle span { 
    width: 25px; 
    height: 3px; 
    background: var(--hamburger-bg); 
    border-radius: 3px; 
    transition: all 0.3s ease; 
}

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

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

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

/* Mobile Navigation */
.nav-links { 
    position: fixed; 
    top: 0; 
    right: -55%; 
    width: 55%; 
    max-width: 55vw; 
    height: 100vh; 
    background: var(--bg-mobile-nav); 
    backdrop-filter: blur(20px); 
    box-shadow: -2px 0 20px var(--shadow-mobile-nav); 
    display: flex; 
    flex-direction: column; 
    padding: 5rem 1rem 2rem; 
    gap: 1.25rem; 
    transition: right 0.3s ease, background-color 0.3s ease; 
    z-index: 100; 
    border-left: 1px solid var(--border-nav-mobile); 
}

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

.nav-links a { 
    margin-left: 0; 
    text-decoration: none; 
    color: var(--text-nav); 
    font-weight: 500; 
    transition: color 0.3s; 
    font-size: 1rem; 
    padding: 0.4rem 0.2rem; 
    border-bottom: 1px solid var(--border-color); 
    width: 100%; 
    max-width: 98%; 
    text-align: center; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

.nav-links a:hover { 
    color: var(--text-nav-hover); 
}

.nav-links a.cta-button { 
    border-bottom: none; 
    color: #001b22; 
    padding: 0.65rem 0.8rem; 
    width: auto; 
    max-width: 98%; 
    min-width: min-content; 
    text-align: center; 
    white-space: nowrap; 
    margin-top: 0.5rem; 
    box-sizing: border-box; 
}

.nav-links a.cta-button:hover { 
    color: #001b22; 
}

/* Theme Toggle Button */
.theme-toggle { 
    background: none; 
    border: 2px solid var(--border-color); 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    padding: 0; 
    margin: 0.5rem auto; 
    flex-shrink: 0; 
}

.theme-toggle:hover { 
    transform: scale(1.1); 
    border-color: var(--text-nav-hover); 
}

.theme-toggle svg { 
    width: 20px; 
    height: 20px; 
    fill: var(--text-heading); 
    transition: fill 0.3s ease; 
}

/* Language Toggle Button */
.language-toggle { 
    background: none; 
    border: 2px solid var(--border-color); 
    border-radius: 50px; 
    padding: 0.5rem 0.75rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 3rem; 
    height: 40px; 
    margin: 0.5rem auto; 
    flex-shrink: 0; 
    transition: all 0.3s ease;
}

.language-toggle:hover { 
    transform: scale(1.05); 
    border-color: var(--text-nav-hover); 
}

.language-toggle .lang-text { 
    font-size: 0.875rem; 
    font-weight: 600; 
    color: var(--text-heading); 
    transition: color 0.3s ease; 
}

/* CTA Buttons */
.cta-button { 
    display: inline-block; 
    background: linear-gradient(90deg, var(--brand-violet), var(--brand-turquoise)); 
    background-size: 200% 100%; 
    background-position: 0% 50%; 
    color: #001b22; 
    padding: 0.875rem 2rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1rem; 
    transition: all 0.3s; 
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25); 
}

.cta-button:hover { 
    transform: translateY(-2px); 
    background-position: 100% 50%; 
    box-shadow: 0 10px 28px rgba(24, 217, 234, 0.35), 0 6px 20px rgba(99, 102, 241, 0.22); 
}

.cta-button--sm { 
    padding: 0.65rem 1.6rem; 
    font-size: 1.05rem; 
    border-radius: 50px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    line-height: 2; 
    white-space: nowrap; 
}

/* Mobile menu override for .cta-button--sm */
.nav-links .cta-button--sm { 
    display: flex; 
    width: 100%; 
    max-width: 98%; 
    padding: 0.65rem 0.4rem; 
    font-size: 1rem; 
}

nav .cta-button { 
    background: linear-gradient(90deg, var(--brand-violet), var(--brand-turquoise)); 
    background-size: 200% 100%; 
    background-position: 0% 50%; 
    color: #001b22; 
    padding: 0.65rem 1.25rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1.05rem; 
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25); 
    border: none; 
    display: inline-block; 
}

nav .cta-button:hover { 
    transform: translateY(-2px); 
    background-position: 100% 50%; 
    box-shadow: 0 10px 28px rgba(24, 217, 234, 0.35), 0 6px 20px rgba(99, 102, 241, 0.22); 
}

/* Overlay for mobile menu */
.nav-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(0, 0, 0, 0.7); 
    z-index: 99; 
}

.nav-overlay.active { 
    display: block; 
}

/* ========================================
   FOOTER
   ======================================== */
footer { 
    border-top: 1px solid var(--border-color); 
    padding: 2rem 1.5rem; 
    text-align: center; 
    color: var(--text-secondary); 
    background: var(--bg-footer); 
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; 
}

.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
    margin-bottom: 1rem; 
    flex-wrap: wrap; 
}

.footer-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: var(--text-heading); 
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-left: 1rem; 
    padding-right: 1rem; 
}

.block { 
    display: block; 
}

.section { 
    padding: 3rem 0; 
}

.section-title { 
    font-size: 1.75rem; 
    text-align: center; 
    margin-bottom: 2rem; 
    color: var(--text-heading); 
    font-weight: 700; 
    transition: color 0.3s ease; 
}

.section-subtitle { 
    text-align: center; 
    color: var(--text-secondary); 
    margin-top: 0.5rem; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
    font-size: 0.95rem; 
    transition: color 0.3s ease; 
}

.text-heading {
    color: var(--text-heading);
    transition: color 0.3s ease;
}

.text-secondary {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.glass-card { 
    background: var(--bg-card); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--border-color); 
    border-radius: 1.5rem; 
    padding: 1.5rem; 
    transition: background-color 0.3s ease, border-color 0.3s ease; 
    max-width: 100%; 
    box-sizing: border-box; 
}

.glass-card img { 
    max-width: 100%; 
    height: auto; 
}

/* Keep headshot dimensions fixed on all screen sizes */
.glass-card img[style*="border-radius: 50%"] {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px;
    flex-shrink: 0;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Align scholar link items vertically centered */
a[href*="scholar.google.com"] {
    align-items: center !important;
    display: inline-flex !important;
    line-height: 1 !important;
}

a[href*="scholar.google.com"] span {
    line-height: 1 !important;
}

/* Keep scholar icon and arrow images at fitting size on mobile */
.glass-card img[src*="google_scholar"] {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    margin: 0 !important;
}

.glass-card img[src*="arrow_scholar"] {
    width: 26px !important;
    height: 28px !important;
    flex-shrink: 0;
    margin: 0 !important;
}

/* Scroll offset for anchor links */
[id] {
    scroll-margin-top: 55px; 
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP (1100px+)
   ======================================== */
@media (min-width: 1100px) {
    nav { 
        padding: 1.25rem 1.5rem; 
    }
    
    .logo { 
        font-size: 1.5rem; 
    }
    
    .menu-toggle { 
        display: none; 
    }
    
    .nav-links { 
        position: static; 
        width: auto; 
        height: auto; 
        background: transparent; 
        box-shadow: none; 
        flex-direction: row; 
        padding: 0; 
        gap: 1.25rem; 
        border-left: none; 
        align-items: center; 
    }
    
    .nav-links a { 
        padding: 0; 
        border-bottom: none; 
        font-size: 0.9rem; 
        color: var(--text-nav); 
    }
    
    .nav-links a:hover { 
        color: var(--text-nav-hover); 
    }
    
    .nav-overlay { 
        display: none !important; 
    }
    
    .theme-toggle { 
        margin: 0; 
    }
    
    .language-toggle { 
        margin: 0; 
    }
    
    .section { 
        padding: 4rem 2rem; 
    }
    
    .section-title { 
        font-size: 2.25rem; 
    }
}

/* ========================================
   RESPONSIVE - WIDER DESKTOP (1150px+)
   ======================================== */
@media (min-width: 1150px) {
    nav { 
        padding: 1.5rem 2rem;
    }
    
    nav .container { 
        padding-right: 1rem; 
    }
    
    .logo { 
        font-size: 1.75rem; 
    }
    
    .nav-links { 
        gap: 1.75rem; 
    }
    
    .nav-links a { 
        font-size: 0.95rem; 
    }
}

/* ========================================
   RESPONSIVE - VERY WIDE (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .nav-links { 
        gap: 2.5rem; 
    }
    
    .nav-links a { 
        font-size: 1rem; 
    }
    
    .cta-button { 
        padding: 1rem 2.5rem; 
        font-size: 1.1rem; 
    }
    
    /* Only apply to top nav CTA, not mobile menu */
    nav > div > .nav-links .cta-button { 
        padding-left: 1.8rem; 
        padding-right: 1.8rem; 
        min-width: 11.5rem; 
        width: 11.5rem;
        text-align: center;
    }
    
    .section { 
        padding: 5rem 2rem; 
    }
    
    .section-title { 
        font-size: 2.75rem; 
    }
    
    .section-subtitle { 
        font-size: 1.1rem; 
    }
    
    .glass-card { 
        padding: 3rem; 
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
    .section { 
        padding: 3rem 0; 
    }
    
    .section-title { 
        font-size: 1.75rem; 
        line-height: 1.3; 
        margin-bottom: 1rem; 
    }
    
    .glass-card { 
        padding: 1.25rem; 
    }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE (max 400px)
   ======================================== */
@media (max-width: 400px) {
    .section-title { 
        font-size: 1.5rem !important; 
    }
    
    .glass-card { 
        padding: 1rem; 
    }
}

