/* ==========================================================================
   DECORATIVE ELEMENTS
   Blob shapes, patterns, floating elements, glassmorphism, glow effects
   ========================================================================== */

/* ==========================================================================
   BLOB SHAPES - Organic background shapes
   ========================================================================== */

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.blob--primary {
    background: linear-gradient(135deg, rgba(3, 169, 243, 0.4) 0%, rgba(171, 140, 228, 0.3) 100%);
}

.blob--secondary {
    background: linear-gradient(135deg, rgba(171, 140, 228, 0.4) 0%, rgba(240, 147, 251, 0.3) 100%);
}

.blob--accent {
    background: linear-gradient(135deg, rgba(0, 194, 146, 0.3) 0%, rgba(3, 169, 243, 0.3) 100%);
}

.blob--warm {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(249, 115, 22, 0.2) 100%);
}

/* Blob sizes */
.blob--sm { width: 200px; height: 200px; }
.blob--md { width: 350px; height: 350px; }
.blob--lg { width: 500px; height: 500px; }
.blob--xl { width: 700px; height: 700px; }

/* Blob animations */
@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

.blob--animated {
    animation: blob-float 20s ease-in-out infinite;
}

.blob--animated-slow {
    animation: blob-float 30s ease-in-out infinite;
}

/* ==========================================================================
   BACKGROUND PATTERNS
   ========================================================================== */

.pattern-dots {
    background-image: radial-gradient(circle, rgba(3, 169, 243, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

.pattern-grid {
    background-image:
        linear-gradient(rgba(3, 169, 243, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 169, 243, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.pattern-waves {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2303A9F3' fill-opacity='0.05' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,186.7C960,213,1056,235,1152,218.7C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% auto;
}

/* ==========================================================================
   GLASSMORPHISM
   ========================================================================== */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.glass--dark {
    background: var(--glass-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass--card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.glass--card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FLOATING DECORATIVE ELEMENTS
   ========================================================================== */

.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Large abstract floating shapes */
.floating-shape {
    position: absolute;
}

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

@keyframes rotate-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Large circle - top right, partially outside viewport */
.floating-shape--circle-1 {
    width: 600px;
    height: 600px;
    top: -15%;
    right: -10%;
    animation: float-slow 25s ease-in-out infinite;
}

/* Large arc - bottom left */
.floating-shape--arc {
    width: 450px;
    height: 450px;
    bottom: -10%;
    left: -8%;
    animation: float-slow 30s ease-in-out infinite;
    animation-delay: -10s;
}

/* Subtle dots pattern - center right */
.floating-shape--dots {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    animation: float-slow 20s ease-in-out infinite;
    animation-delay: -5s;
}

/* Responsive */
@media (max-width: 1024px) {
    .floating-shape--circle-1 {
        width: 400px;
        height: 400px;
        right: -15%;
    }

    .floating-shape--arc {
        width: 300px;
        height: 300px;
    }

    .floating-shape--dots {
        display: none;
    }
}

@media (max-width: 768px) {
    .floating-shape--circle-1 {
        width: 300px;
        height: 300px;
        top: -10%;
        right: -20%;
    }

    .floating-shape--arc {
        width: 200px;
        height: 200px;
        left: -15%;
    }
}

/* ==========================================================================
   GLOW EFFECTS
   ========================================================================== */

.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    filter: blur(15px);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.glow:hover::before {
    opacity: 0.5;
}

.glow--always::before {
    opacity: 0.3;
}

.glow--primary {
    box-shadow: 0 0 40px rgba(3, 169, 243, 0.2);
}

.glow--primary:hover {
    box-shadow: 0 0 60px rgba(3, 169, 243, 0.35);
}

/* Text glow */
.text-glow {
    text-shadow: 0 0 40px rgba(3, 169, 243, 0.5);
}

/* ==========================================================================
   GRADIENT TEXT
   ========================================================================== */

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

.gradient-text--hero {
    background: linear-gradient(135deg, #03A9F3 0%, #ab8ce4 50%, #00c292 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   DECORATIVE LINES & SHAPES
   ========================================================================== */

.decorative-line {
    position: absolute;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.decorative-line--horizontal {
    height: 2px;
    width: 100%;
}

.decorative-line--vertical {
    width: 2px;
    height: 100%;
}

.decorative-circle {
    position: absolute;
    border: 2px solid rgba(3, 169, 243, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.decorative-circle--sm { width: 100px; height: 100px; }
.decorative-circle--md { width: 200px; height: 200px; }
.decorative-circle--lg { width: 400px; height: 400px; }

/* ==========================================================================
   SECTION DECORATIVE BACKGROUNDS
   ========================================================================== */

.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-decorated > .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   SECTION DECORATIVE ELEMENTS
   Large background shapes for visual interest
   ========================================================================== */

.section-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Hero section decorations */
.section-deco--hero-circles {
    width: 1000px;
    height: 1000px;
    top: -300px;
    right: -350px;
}

/* Tanix isometric pattern - based on brand identity */
.section-deco--tanix-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('../assets/images/tanix-pattern.png');
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
}

/* Tanix pattern - light/white version for blue backgrounds */
.section-deco--tanix-pattern-light {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/pattern-light.png');
    background-size: 800px;
    background-repeat: repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* Tanix pattern - light version for process section (light blue bg) */
.section-deco--tanix-pattern-process {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('../assets/images/tanix-pattern.png');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center left;
    filter: brightness(0) invert(1);
    opacity: 0.03;
}

/* Circles on right side */
.section-deco--circles-right {
    width: 800px;
    height: 800px;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
}

/* Circles on left side */
.section-deco--circles-left {
    width: 700px;
    height: 700px;
    top: -150px;
    left: -250px;
}

/* Circles at bottom */
.section-deco--circles-bottom {
    width: 700px;
    height: 700px;
    bottom: -200px;
    right: -200px;
}

/* Gradient blob on left */
.section-deco--blob-left {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -200px;
    background: radial-gradient(ellipse at center, rgba(3, 169, 243, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

/* Gradient corner decoration */
.section-deco--gradient-corner {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    background: radial-gradient(ellipse at center, rgba(171, 140, 228, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Large line decoration */
.section-deco--line {
    width: 100%;
    height: 2px;
    top: 30%;
    left: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(3, 169, 243, 0.1) 20%, rgba(171, 140, 228, 0.1) 80%, transparent 100%);
}

/* Grid pattern overlay */
.section-deco--grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(3, 169, 243, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 169, 243, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

/* Circles in center */
.section-deco--circles-center {
    width: 900px;
    height: 900px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Glow effects for primary sections */
.section-deco--glow-left {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    border-radius: 50%;
}

.section-deco--glow-right {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .section-deco--hero-circles {
        width: 700px;
        height: 700px;
        right: -250px;
    }

    .section-deco--tanix-pattern {
        background-size: 80%;
    }

    .section-deco--circles-right,
    .section-deco--circles-left,
    .section-deco--circles-bottom {
        width: 500px;
        height: 500px;
    }

    .section-deco--circles-center {
        width: 600px;
        height: 600px;
    }
}

@media (max-width: 768px) {
    .section-deco--hero-circles {
        width: 500px;
        height: 500px;
        top: -150px;
        right: -200px;
    }

    .section-deco--tanix-pattern {
        background-size: 60%;
        opacity: 0.7;
    }

    .section-deco--circles-right,
    .section-deco--circles-left,
    .section-deco--circles-bottom,
    .section-deco--circles-center {
        width: 350px;
        height: 350px;
    }

    .section-deco--blob-left,
    .section-deco--gradient-corner {
        width: 300px;
        height: 300px;
    }
}

/* Hero mesh gradient background */
.hero-mesh-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 1;
    z-index: 0;
}

/* Animated gradient orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.gradient-orb--1 {
    width: 600px;
    height: 600px;
    background: rgba(3, 169, 243, 0.3);
    top: -200px;
    right: -100px;
    animation: blob-float 25s ease-in-out infinite;
}

.gradient-orb--2 {
    width: 400px;
    height: 400px;
    background: rgba(171, 140, 228, 0.25);
    bottom: -100px;
    left: -100px;
    animation: blob-float 20s ease-in-out infinite reverse;
}

.gradient-orb--3 {
    width: 300px;
    height: 300px;
    background: rgba(0, 194, 146, 0.2);
    top: 50%;
    left: 30%;
    animation: blob-float 22s ease-in-out infinite;
    animation-delay: -5s;
}

/* ==========================================================================
   CARD ENHANCEMENTS
   ========================================================================== */

.card-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(3, 169, 243, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(3, 169, 243, 0.2);
}

/* Card with gradient border on hover */
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-gradient-border:hover::before {
    opacity: 1;
}

/* ==========================================================================
   BUTTON ENHANCEMENTS
   ========================================================================== */

.btn-glow {
    position: relative;
    overflow: visible;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.btn-glow:hover::after {
    opacity: 0.5;
}

/* ==========================================================================
   NOISE TEXTURE OVERLAY
   ========================================================================== */

.noise-overlay {
    position: relative;
}

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

/* ==========================================================================
   SHIMMER EFFECT
   ========================================================================== */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}
