/* ==========================================================================
   Boualam Apps - Professional CSS Design System
   Modern, Futuristic, Premium, Glassmorphic & Fully Responsive
   ========================================================================== */

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

/* --- Custom Variables & Theme Tokens --- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transition defaults */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Rounded Corners */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadow effects */
    --glow-electric: 0 0 20px rgba(59, 130, 246, 0.25);
    --glow-electric-strong: 0 0 35px rgba(59, 130, 246, 0.55);

    /* Theme-independent colors */
    --color-primary-rgb: 59, 130, 246; /* Electric Blue */
    --color-secondary-rgb: 29, 78, 216; /* Deep Blue */
    
    /* Layout Constants */
    --header-height: 80px;

    /* DARK THEME (Default) */
    --bg-main: #080c15;
    --bg-grid: #0d1527;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-bg: rgba(13, 21, 39, 0.6);
    --glass-border: rgba(59, 130, 246, 0.15);
    --glass-border-hover: rgba(59, 130, 246, 0.35);
    --card-bg: rgba(15, 23, 42, 0.5);
    --accent-glow: rgba(59, 130, 246, 0.15);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-bg: radial-gradient(circle at 50% 50%, #0d152b 0%, #05070c 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --btn-secondary-bg: rgba(30, 41, 59, 0.5);
    --btn-secondary-border: rgba(148, 163, 184, 0.15);
}

[data-theme="light"] {
    /* LIGHT THEME */
    --bg-main: #f8fafc;
    --bg-grid: #edf2f7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(59, 130, 246, 0.12);
    --glass-border-hover: rgba(59, 130, 246, 0.25);
    --card-bg: rgba(255, 255, 255, 0.8);
    --accent-glow: rgba(59, 130, 246, 0.08);
    --gradient-accent: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --gradient-bg: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%);
    --gradient-text: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --btn-secondary-bg: rgba(226, 232, 240, 0.6);
    --btn-secondary-border: rgba(148, 163, 184, 0.2);
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.45);
}

/* --- Loading Animation --- */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Dynamic Background Grid & Blobs --- */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.background-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: float 25s ease-in-out infinite alternate;
    pointer-events: none;
}
.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.6); /* Electric blue */
    top: -10%;
    left: -10%;
}
.blob-2 {
    width: 600px;
    height: 600px;
    background: rgba(29, 78, 216, 0.5); /* Deep blue */
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 35s;
}
.blob-3 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.4); /* Indigo */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}
[data-theme="light"] .background-blob {
    mix-blend-mode: multiply;
    opacity: 0.08;
}
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-40px, -60px) scale(0.9);
    }
}

/* --- Navigation & Header --- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(var(--color-primary-rgb), 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: background var(--transition-normal), border var(--transition-normal), height var(--transition-normal), box-shadow var(--transition-normal);
}
.header-nav.scrolled {
    height: 70px;
    background: var(--glass-bg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--glass-border-hover);
}
.nav-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-normal);
}
.logo-area:hover .logo-img {
    transform: rotate(5deg) scale(1.05);
}
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity var(--transition-fast);
}
[data-theme="light"] .brand-name {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
    border-radius: var(--radius-full);
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Theme Controller Button */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: background var(--transition-fast), border var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--glass-border-hover);
    transform: scale(1.05);
}
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* Mobile Menu Trigger */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
}
.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background var(--transition-fast);
}
.mobile-menu-toggle span::before, .mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: transform var(--transition-fast);
}
.mobile-menu-toggle span::before { top: -6px; }
.mobile-menu-toggle span::after { bottom: -6px; }
.mobile-menu-toggle.open span {
    background: transparent;
}
.mobile-menu-toggle.open span::before {
    transform: rotate(45deg);
    top: 0;
}
.mobile-menu-toggle.open span::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Sidebar drawer */
.mobile-sidebar {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-main);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    transition: right var(--transition-normal);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-left: 1px solid var(--glass-border);
}
.mobile-sidebar.open {
    right: 0;
}
.mobile-sidebar .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 24px;
}
.mobile-sidebar .nav-link {
    font-size: 1.25rem;
    width: 100%;
    display: block;
}

/* --- Page Containers & General Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-spacing {
    padding: 100px 0;
}
@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 0;
    }
}

/* Section Header Styles */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}
.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3b82f6;
    margin-bottom: 12px;
    font-weight: 600;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* --- Premium Buttons --- */
.btn-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--glow-electric);
}
.btn-primary:hover {
    box-shadow: var(--glow-electric-strong);
}
.btn-secondary {
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--glass-border-hover);
}

/* Google Play Store Badge Button */
.badge-playstore {
    display: inline-block;
    transition: transform var(--transition-fast), filter var(--transition-fast);
    border-radius: 8px;
    overflow: hidden;
    width: 165px;
    height: 49px;
}
.badge-playstore img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.badge-playstore:hover {
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 4px 15px rgba(59, 130, 246, 0.3));
}

/* --- Glassmorphic UI Card Base --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}
.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Home / Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-wrapper {
    position: relative;
    z-index: 2;
    padding: 24px;
    background: rgba(13, 21, 39, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}
.hero-logo-img {
    max-width: 280px;
    border-radius: var(--radius-md);
    transition: transform var(--transition-slow);
}
.hero-logo-wrapper:hover .hero-logo-img {
    transform: scale(1.03) rotate(2deg);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.15);
    }
    100% {
        box-shadow: 0 10px 60px rgba(59, 130, 246, 0.45);
        border-color: rgba(59, 130, 246, 0.4);
    }
}

/* Decorative visual elements */
.hero-orbit {
    position: absolute;
    border: 1px dashed rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: rotateOrbit 60s linear infinite;
}
.orbit-1 {
    width: 480px;
    height: 480px;
    z-index: 1;
}
.orbit-2 {
    width: 600px;
    height: 600px;
    z-index: 0;
    animation-direction: reverse;
}
@keyframes rotateOrbit {
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding: 40px 0;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .btn-container {
        justify-content: center;
    }
    .hero-logo-img {
        max-width: 200px;
    }
    .orbit-1, .orbit-2 {
        display: none;
    }
}

/* --- Intro / Focus Section --- */
.intro-layout {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- Features Section ("Why Choose Us") --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3b82f6;
    margin-bottom: 24px;
}
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Applications Cards Grid --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}
@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}
.app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.app-card-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}
.app-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-normal);
}
.app-card:hover .app-card-icon {
    transform: scale(1.08) rotate(3deg);
}
.app-card-meta {
    flex: 1;
}
.app-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.app-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.app-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-card-action {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}
[data-theme="light"] .app-card-action {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Technologies Section --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.tech-card {
    text-align: center;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.tech-icon {
    width: 48px;
    height: 48px;
    color: #3b82f6;
    transition: transform var(--transition-fast);
}
.tech-card:hover .tech-icon {
    transform: scale(1.15) translateY(-2px);
}
.tech-name {
    font-weight: 600;
    font-size: 1rem;
}

/* --- Call To Action (CTA) --- */
.cta-wrapper {
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, rgba(29, 78, 216, 0.05) 90%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}
[data-theme="light"] .cta-title {
    color: #0f172a;
}
.cta-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px auto;
    font-size: 1.05rem;
}
.cta-wrapper .btn-container {
    justify-content: center;
}

/* --- About Page Timeline/Focus Section --- */
.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.about-timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
    padding-left: 32px;
    border-left: 2px solid var(--glass-border);
}
.timeline-item {
    position: relative;
    margin-bottom: 48px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    border: 4px solid var(--bg-main);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
}
.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-item {
    display: flex;
    gap: 16px;
}
.contact-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3b82f6;
    flex-shrink: 0;
}
.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.5);
}
.form-control:focus {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .form-control:focus {
    background: rgba(255, 255, 255, 0.9);
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* --- Privacy Policy Content Style --- */
.privacy-wrapper {
    max-width: 850px;
    margin: 0 auto;
}
.privacy-wrapper h2 {
    font-size: 1.5rem;
    margin: 36px 0 16px 0;
}
.privacy-wrapper p, .privacy-wrapper ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.privacy-wrapper ul {
    padding-left: 24px;
}
.privacy-wrapper li {
    margin-bottom: 8px;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(13, 21, 39, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 80px 0 40px 0;
}
[data-theme="light"] .site-footer {
    background: rgba(255, 255, 255, 0.4);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 280px;
}
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.footer-link:hover {
    color: var(--text-primary);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Scroll To Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-accent);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform var(--transition-fast);
}
.scroll-top-btn.visible {
    right: 30px;
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
}

/* --- Animation classes for Scroll Observer --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.animate-fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}
.animate-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.animate-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.visible-scroll {
    opacity: 1;
    transform: translate(0, 0);
}
