/* 
    SQNOVA Dijital - Ultra Premium CSS 
    Author: Antigravity
*/

:root {
    --primary-color: #3b82f6;
    /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #8b5cf6;
    /* Purple */
    --success-color: #10b981;
    /* Emerald */
    --warning-color: #f59e0b;
    /* Amber */
    --danger-color: #ef4444;
    /* Red */

    --bg-base: #030305;
    /* Ultra Deep Dark */
    --bg-darker: #050508;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text {
    font-family: 'Outfit', sans-serif;
}

.fw-black {
    font-weight: 900;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.text-secondary-light {
    color: var(--text-muted);
}

.bg-base {
    background-color: var(--bg-base);
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Typography Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ambient Background Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(3, 3, 5, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.glass-nav.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar */
.nav-link {
    color: var(--text-main) !important;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, var(--secondary-color));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-glow {
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -0.02em;
}

/* Mouse Scroll Indicator */
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse .wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Padding utilities */
.py-section {
    padding: 100px 0;
}

/* Cards Hover */
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

/* Portfolio Hover */
.portfolio-card {
    cursor: pointer;
}

.portfolio-img-bg {
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.portfolio-card:hover .portfolio-img-bg {
    transform: scale(1.05);
}

/* Floating Label Inputs */
.form-floating-custom {
    position: relative;
    width: 100%;
}

.premium-input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 1.25rem 1rem 0.75rem !important;
    transition: all 0.3s ease !important;
}

.premium-input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-floating-custom textarea~label {
    top: 1.5rem;
}

.form-floating-custom .premium-input:focus~label,
.form-floating-custom .premium-input:not(:placeholder-shown)~label {
    top: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.form-floating-custom select.premium-input {
    padding-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
}

.form-floating-custom select.premium-input~label {
    top: 0.5rem;
    font-size: 0.75rem;
}

.form-floating-custom select option {
    background-color: var(--bg-darker);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Borders */
.border-end-lg {
    border-right: none;
}

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #010101;
    z-index: 9999999;
    display: flex;
    align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.slide-up {
    transform: translateY(-100%);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader-content {
    text-align: center;
}
.preloader-logo {
    opacity: 0.8;
}
.preloader-bar-container {
    width: 250px; height: 2px;
    background: rgba(255,255,255,0.05);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}
.preloader-bar {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.15s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Custom Cursor */
@media (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select { cursor: none !important; }
    .cursor-dot {
        position: fixed; top: 0; left: 0; width: 8px; height: 8px;
        background: white; border-radius: 50%;
        pointer-events: none; z-index: 99999999;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
    }
    .cursor-outline {
        position: fixed; top: 0; left: 0; width: 40px; height: 40px;
        border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
        pointer-events: none; z-index: 99999998;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, border-color 0.3s;
    }
    .cursor-hover .cursor-dot {
        width: 14px; height: 14px; background: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-color);
    }
    .cursor-hover .cursor-outline {
        width: 70px; height: 70px;
        background: rgba(59, 130, 246, 0.05);
        border-color: var(--primary-color);
    }
}