/* =========================================================================
   GLV INSTITUTIONAL DESIGN SYSTEM - MODERN REDESIGN
   ========================================================================= */

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

:root {
    /* Modern Premium Palette */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    
    /* Brand Colors Refined */
    --color-green: #10b981; /* Emerald */
    --color-dark-green: #047857;
    --color-light-green: #d1fae5;
    
    --color-light-blue: #38bdf8;
    --color-dark-blue: #0ea5e9;
    --color-yellow: #fbbf24;
    --color-accent: #8b5cf6;

    /* Metrics & Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* =========================================================================
   TOP BAR & HEADER
   ========================================================================= */
.top-bar {
    background: linear-gradient(135deg, var(--color-dark-green), var(--color-green));
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    opacity: 0.9;
    transition: var(--transition);
}

.top-bar a:hover {
    opacity: 1;
    text-decoration: underline;
}

.top-bar-info {
    display: flex;
    gap: 25px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark-green);
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--color-green);
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-green);
}

.nav-actions {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.nav-actions i {
    cursor: pointer;
    color: var(--color-text);
    transition: var(--transition);
}

.nav-actions i:hover {
    color: var(--color-green);
    transform: scale(1.1);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero-section {
    position: relative;
    height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1s ease forwards;
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--color-green), var(--color-dark-green));
    color: white;
    padding: 14px 35px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 35px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-text);
    transform: translateY(-3px);
}

/* =========================================================================
   FEATURE BLOCKS
   ========================================================================= */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: -80px;
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.feature-block {
    padding: 40px 30px;
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.feature-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0.5);
}

.feature-block:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-block:hover::before {
    opacity: 1;
    transform: scale(1);
}

.feature-block.bg-light-blue { background: linear-gradient(135deg, var(--color-light-blue), var(--color-dark-blue)); }
.feature-block.bg-yellow { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.feature-block.bg-green { background: linear-gradient(135deg, var(--color-green), var(--color-dark-green)); }

.feature-block h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.feature-block p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.feature-icon {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================================
   ABOUT US SECTION
   ========================================================================= */
.about-section {
    max-width: 1200px;
    margin: 100px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 0 20px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.about-text h2 span {
    color: var(--color-green);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.7s ease;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.play-button i {
    width: 32px;
    height: 32px;
    margin-left: 5px;
    fill: white;
}

.play-button:hover {
    background: var(--color-green);
    border-color: var(--color-green);
    transform: translate(-50%, -50%) scale(1.1);
}

/* =========================================================================
   CONTENT WRAPPERS
   ========================================================================= */
.page-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    min-height: 50vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--color-green);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================
   CARDS & FORMS (LUX-FORM)
   ========================================================================= */
.lux-card, .lux-form {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.lux-card:hover, .lux-form:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.lux-form h3, .lux-form h4 {
    margin-bottom: 15px;
    color: var(--color-text);
}

.lux-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.lux-form input, .lux-form select, .lux-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.lux-form input:focus, .lux-form select:focus, .lux-form textarea:focus {
    outline: none;
    border-color: var(--color-green);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.text-center { text-align: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.lux-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 0 20px;
}

.foot-title {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
}

.footer-grid p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* =========================================================================
   ANIMATIONS & SPLASH
   ========================================================================= */
.splash-screen {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.splash-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-green);
    animation: pulse 2s infinite ease-in-out;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

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

.aos {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.aos.show {
    opacity: 1;
    transform: translateY(0);
}

.aos-delay-1 { transition-delay: 100ms; }
.aos-delay-2 { transition-delay: 200ms; }
.aos-delay-3 { transition-delay: 300ms; }

.fade-view {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.fade-view.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   POPOUT MODAL
   ========================================================================= */
.glv-popout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.glv-popout-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glv-popout-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glv-popout-overlay.active .glv-popout-modal {
    transform: translateY(0) scale(1);
}

.glv-popout-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.glv-popout-close:hover {
    color: var(--color-text);
    transform: rotate(90deg);
}
