/* 
 * File: assets/css/theme.css
 * Theme: Ultra-Premium Emerald Dark (SaaS & Agency Edition)
 * Developer: Md Usman Gani
 */

/* ==========================================
   1. Premium Typography Imports
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================
   2. Advanced CSS Variables (The Design System)
   ========================================== */
:root {
    /* Deep Cinematic Backgrounds (Not pure black for a richer feel) */
    --bg-dark: #05070a;        
    --bg-surface: #0a0d14;     
    --glass-bg: rgba(10, 13, 20, 0.45); 
    
    /* Emerald Luxury Accents */
    --primary-accent: #00df82; 
    --primary-light: #33ff9f; /* For gradients */
    --accent-glow: rgba(0, 223, 130, 0.2); 
    --accent-glow-strong: rgba(0, 223, 130, 0.4);

    /* Typography Colors */
    --text-main: #ffffff;      
    --text-muted: #8b9bb4;     

    /* Advanced Borders (Simulating light reflection) */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(0, 223, 130, 0.3);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Fluid Transitions */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   3. Global Reset & Base
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.02em; /* Sleeker look for headings */
}

/* ==========================================
   4. Luxurious Custom Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 6px; /* Ultra-thin sleek scrollbar */
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Selection (Highlighting text) */
::selection {
    background: var(--primary-light);
    color: #000;
    text-shadow: none;
}

/* ==========================================
   5. Advanced Glassmorphism (Apple Style)
   ========================================== */
/* Apply this to cards, headers, and bottom navs */
.glass-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    /* Simulated top-light reflection for 3D effect */
    border-top: 1px solid var(--border-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================
   6. Cinematic Typography & Glow Effects
   ========================================== */
/* Glowing text for emphasis */
.text-glow {
    text-shadow: 0 0 25px var(--accent-glow-strong);
}

/* Metallic/Emerald Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 20%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   7. Form Inputs & Focus States
   ========================================== */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 0 4px var(--accent-glow), 
                inset 0 0 10px rgba(0, 223, 130, 0.05) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* ==========================================
   8. Fluid Keyframe Animations
   ========================================== */
/* Floating effect for images or cards */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulsing background glow for hero section */
@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
}
.animate-pulse-glow {
    animation: pulse-glow 8s infinite alternate ease-in-out;
}
