/* ==========================================================================
   iwe3 Premium Agency UI/UX Styles
   ========================================================================== */

/* Typography Overrides */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .font-outfit {
    letter-spacing: -0.03em;
}

/* Custom Cursor */
body {
    /* cursor: none; removed to fix visibility issue */
}

a, button, input, textarea, select {
    /* cursor: none !important; removed */
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary, #2563ff);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(37, 99, 255, 0.4);
    background-color: rgba(37, 99, 255, 0.05);
}

.cursor-outline.hover-active {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 255, 0.1);
    border-color: rgba(37, 99, 255, 0.8);
    backdrop-filter: blur(2px);
}

.cursor-dot.hover-active {
    width: 12px;
    height: 12px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(37, 99, 255, 0.8);
}

/* Magnetic Elements */
.magnetic {
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Aurora & Gradient Backgrounds */
.aurora-bg {
    position: relative;
    overflow: hidden;
    background-color: #050816;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: auroraFloat 20s infinite alternate ease-in-out;
}

.aurora-bg::before {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(37, 99, 255, 0.2), transparent 70%);
}

.aurora-bg::after {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
    animation-delay: -10s;
}

/* Light Aurora Background */
.aurora-bg-light {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #f0f4ff 0%, #e8f0fe 30%, #fef9f0 70%, #f0fdf4 100%);
}

.aurora-bg-light::before,
.aurora-bg-light::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: auroraFloat 20s infinite alternate ease-in-out;
}

.aurora-bg-light::before {
    top: -15%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(37, 99, 255, 0.15), transparent 70%);
}

.aurora-bg-light::after {
    bottom: -15%;
    right: -5%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
    animation-delay: -10s;
}

@keyframes auroraFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-5%, -5%) scale(0.9); }
    100% { transform: translate(10%, -10%) scale(1.05); }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* Cinematic Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #2563ff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-gradient-light {
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Utility classes for dark theme readability */
.text-light-slate {
    color: rgba(255, 255, 255, 0.75) !important;
}

.logo-container-light {
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Image Hover Zoom Effects */
.img-zoom-hover {
    overflow: hidden;
    position: relative;
}

.img-zoom-hover img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.img-zoom-hover:hover img {
    transform: scale(1.05);
}

/* Noise overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

/* Hero grid background (shared across pages) */
.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    perspective: 1000px;
    transform-origin: top;
    transform: rotateX(60deg) scale(2);
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* Hover scale utility (shared across pages) */
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: translateY(-5px);
}

/* Focus visible for keyboard accessibility */
:focus-visible {
    outline: 2px solid #2563ff;
    outline-offset: 2px;
    border-radius: 4px;
}
.btn:focus-visible, .form-control:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 255, 0.25);
}

/* Unified premium card system */
.premium-card {
    border: none;
    border-radius: 20px !important;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12) !important;
}

/* Mobile Adjustments for Custom Cursor */
@media (max-width: 991px) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    body {
        cursor: auto;
    }
    a, button, input, textarea, select {
        cursor: pointer !important;
    }
}
