/* ========================================
   DOMINI - Ultra Premium Design System
   Version: 3.0 - Modern Refined Edition
   G Tech Group S.R.L.S. - 2025
   ======================================== */

/* ========================================
   GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ========================================
   MODERN DESIGN TOKENS
   ======================================== */
:root {
    /* Premium Brand Colors */
    --brand-primary: #5d92d0;
    --brand-primary-light: #7aa6dd;
    --brand-primary-dark: #4a7ab8;

    /* Heading Color - Dark Navy Blue */
    --color-heading: #264573;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #4a7ab8 0%, #5d92d0 50%, #7aa6dd 100%);
    --gradient-mesh:
        radial-gradient(at 27% 37%, hsla(215,98%,61%,0.1) 0px, transparent 0%),
        radial-gradient(at 97% 21%, hsla(125,98%,72%,0.05) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(354,98%,61%,0.05) 0px, transparent 50%),
        radial-gradient(at 10% 29%, hsla(256,96%,67%,0.05) 0px, transparent 50%);

    /* Ultra Modern Shadows */
    --shadow-soft: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px -4px rgba(0, 0, 0, 0.1), 0 8px 32px -8px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 8px 32px -8px rgba(0, 0, 0, 0.12), 0 16px 64px -16px rgba(0, 0, 0, 0.08);
    --shadow-brand: 0 8px 32px -4px rgba(93, 146, 208, 0.2);

    /* Premium Typography */
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Refined Spacing (Golden Ratio Based) */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.618rem;  /* 26px - Golden */
    --space-xl: 2.618rem;  /* 42px - Golden */
    --space-2xl: 4.236rem; /* 68px - Golden */
    --space-3xl: 6.854rem; /* 110px - Golden */

    /* Modern Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Premium Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #94a3b8;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;

    /* Status Colors (Enhanced) */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    --color-info: #06b6d4;
    --color-info-light: #cffafe;
}

/* ========================================
   PREMIUM RESET
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    background-image: var(--gradient-mesh);
    min-height: 100vh;
}

/* ========================================
   PREMIUM TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* White text on colored backgrounds */
.hero-premium h1,
.hero-premium h2,
.hero-premium h3,
.hero-premium h4,
.hero-premium h5,
.hero-premium h6,
.hero-premium p,
.hero-premium .hero-title,
.hero-premium .hero-subtitle {
    color: white !important;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   ULTRA MODERN CARDS
   ======================================== */
.card-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large), var(--shadow-brand);
    border-color: rgba(93, 146, 208, 0.3);
}

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

/* Stat Cards with Gradient Background */
.stat-card {
    background: linear-gradient(135deg, rgba(93, 146, 208, 0.05) 0%, rgba(122, 166, 221, 0.02) 100%);
    border: 1px solid rgba(93, 146, 208, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 146, 208, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-brand);
    border-color: rgba(93, 146, 208, 0.3);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

/* ========================================
   PREMIUM BUTTONS
   ======================================== */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(93, 146, 208, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(93, 146, 208, 0.4);
}

.btn-premium-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-premium-outline:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   PREMIUM FORMS
   ======================================== */
.input-premium {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(93, 146, 208, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    outline: none;
}

.input-premium:focus {
    background: white;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(93, 146, 208, 0.1);
}

.input-premium::placeholder {
    color: var(--color-text-tertiary);
}

/* ========================================
   PREMIUM BADGES
   ======================================== */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(93, 146, 208, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(93, 146, 208, 0.2);
    transition: all 0.2s ease;
}

.badge-premium:hover {
    background: rgba(93, 146, 208, 0.15);
    transform: translateY(-1px);
}

.badge-success {
    background: var(--color-success-light);
    color: var(--color-success);
    border-color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
    border-color: var(--color-warning);
}

/* ========================================
   HERO SECTIONS - ULTRA PREMIUM
   ======================================== */
.hero-premium {
    position: relative;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #4a7ab8 0%, #5d92d0 50%, #7aa6dd 100%);
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-premium::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-bg-secondary));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}

/* ========================================
   PREMIUM GRID SYSTEM
   ======================================== */
.grid-premium {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CONTAINER & SPACING
   ======================================== */
.container-premium {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 1400px) {
    .container-premium {
        max-width: 1320px;
    }
}

.section-premium {
    padding: var(--space-3xl) 0;
}

.section-premium-sm {
    padding: var(--space-2xl) 0;
}

/* ========================================
   PREMIUM ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger animation delays */
.animate-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none; }
}
