/* ============================================
   Sadigisoft Premium Design System
   Modern, Glassmorphism, Dark Mode
   ============================================ */

:root {
    /* Core Palette - Indigo & Violet */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);

    /* Semantic Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Surface & Backgrounds */
    --bg-dark: #030712;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #020617;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shine: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;

    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    /* Interface */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

    /* Animation */
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Dynamic Background Mesh */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
}

.bg-blur {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: float-bg 20s ease-in-out infinite alternate;
}

@keyframes float-bg {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Navigation - Floating & Blurry */
.nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
    /* Pushes menu to the right */
    margin-right: 2rem;
    /* Add some space before the CTA */
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 100px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right bottom, #ffffff 30%, #a5b4fc 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.1));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.875rem 2rem;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Glass Cards */
.card,
.service-card,
.value-card,
.contact-form,
.service-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover,
.value-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Card Glow Effect */
.card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
    opacity: 0.5;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.stat-value {
    font-size: 3rem;
    font-weight: 600;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

/* Inputs */
input,
textarea,
select {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 1rem !important;
    width: 100%;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        top: 0;
        padding: 1rem;
        background: rgba(15, 23, 42, 0.9);
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 7rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}