/* ============================================
   ZAWAYA AI - PREMIUM DESIGN SYSTEM
   Theme: Dark Teal (#3E6157) & Glassmorphism
   ============================================ */

:root {
    /* Colors */
    --bg-dark: #1a2b26;
    --brand-primary: #3E6157;
    --brand-light: #70eac8;
    --brand-dark: #2c4a44;
    --accent-gold: #ffaa00;

    /* Glass */
    --glass-bg: rgba(26, 43, 38, 0.6);
    --glass-border: rgba(112, 234, 200, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(20px);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Ambient Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 35% 45%, rgba(45, 85, 95, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 65% 55%, rgba(60, 95, 85, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, rgba(70, 105, 95, 0.2) 0%, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

/* --- Vignette Overlay --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}

/* --- 3D Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Layout Utilities --- */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.section-padding {
    padding: 120px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.mb-4 {
    margin-bottom: 24px;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-width);
    height: 70px;
    z-index: 100;
    background: rgba(5, 8, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(112, 234, 200, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-content {
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    height: 32px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--brand-light);
}

.nav-btn {
    padding: 10px 24px;
    background: rgba(112, 234, 200, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--brand-light);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(112, 234, 200, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #70eac8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-primary {
    background: var(--brand-light);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(112, 234, 200, 0.2);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(112, 234, 200, 0.3);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

/* --- Glass Cards & Panels --- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: rgba(26, 43, 38, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-light);
    background: rgba(26, 43, 38, 0.6);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(112, 234, 200, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover::before {
    opacity: 1;
}

/* --- Typography & Elements --- */
.section-header {
    margin-bottom: 40px;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-icon {
    color: var(--brand-light);
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Values --- */
.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-light);
}

.value-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(112, 234, 200, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-light);
    margin-bottom: 20px;
}

.value-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* --- Offerings --- */
.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.check-icon {
    color: var(--brand-light);
    display: flex;
    align-items: center;
}

.highlight-panel {
    border-color: var(--brand-light);
    background: rgba(62, 97, 87, 0.3);
}

.stat-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-light);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Team --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-card {
    text-align: center;
    width: 200px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    border: 2px solid var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.member-name {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.member-role {
    color: var(--brand-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Footer --- */
.glass-footer {
    background: rgba(5, 8, 10, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-container {
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-tagline {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-link,
.footer-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--brand-light);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* --- Mobile Only --- */
.mobile-only {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Hide desktop links */
    .mobile-only {
        display: block;
    }

    /* Show mobile button */
    .section-padding {
        padding: 80px 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        justify-content: center;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Contact Form --- */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.contact-container {
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(112, 234, 200, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Form Result Messages --- */
.form-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    color: var(--brand-light);
    background: rgba(112, 234, 200, 0.1);
    border: 1px solid var(--brand-light);
    padding: 16px;
    border-radius: 12px;
    margin: 0;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    padding: 16px;
    border-radius: 12px;
    margin: 0;
}
