/* =============================================
   DIGII DEVELOPERZ - NEXT-LEVEL CREATIVE DESIGN
   Maximum Creativity + Professional + Innovative
============================================= */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
    /* Primary Colors - Vibrant & Creative */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.5);

    /* Secondary - Energetic Orange/Coral */
    --secondary: #f97316;
    --secondary-light: #fb923c;
    --secondary-glow: rgba(249, 115, 22, 0.5);

    /* Accent Colors */
    --accent-cyan: #22d3ee;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-purple: #a855f7;

    /* Dark Theme */
    --dark: #0a0a0f;
    --dark-card: #12121a;
    --dark-border: #1e1e2d;
    --dark-hover: #1a1a27;

    /* Light */
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-dark: #64748b;

    /* Gradients - Creative & Bold */
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.02) 100%);
    --gradient-text: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #f97316);
    --gradient-border: linear-gradient(90deg, #6366f1, #ec4899, #f97316);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Shadows - Glowing Effects */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-intense: 0 0 80px var(--primary-glow), 0 0 120px rgba(168, 85, 247, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Container */
    --container-max: 1400px;
}

/* ========== CSS RESET ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light);
    background: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s, opacity 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s;
}

/* ========== ANIMATED BACKGROUND ========== */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-gradient-orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.bg-gradient-orb:nth-child(2) {
    width: 500px;
    height: 500px;
    background: var(--accent-pink);
    top: 50%;
    right: -15%;
    animation-delay: -5s;
}

.bg-gradient-orb:nth-child(3) {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* ========== GRID BACKGROUND ========== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--light);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    color: var(--gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* Gradient Text - Animated */
.gradient-text {
    background: var(--gradient-text);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Glowing Text */
.glow-text {
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
}

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-glow);
    border: 1px solid var(--dark-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.section-label i {
    font-size: 0.75rem;
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* ========== CREATIVE GRID ========== */
.creative-grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Masonry-like layout */
.grid-creative {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-creative .card:nth-child(1) {
    grid-row: span 2;
}

.grid-creative .card:nth-child(4) {
    grid-column: span 2;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px var(--primary-glow);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }

    75% {
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: var(--primary);
        box-shadow: 0 0 20px var(--primary-glow);
    }

    33% {
        border-color: var(--accent-pink);
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
    }

    66% {
        border-color: var(--secondary);
        box-shadow: 0 0 20px var(--secondary-glow);
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* ========== CREATIVE SHAPES ========== */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-circle {
    border-radius: 50%;
    background: var(--gradient-primary);
}

.shape-blob {
    background: var(--gradient-primary);
    animation: morphShape 15s ease-in-out infinite;
}

.shape-ring {
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: spin 30s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--primary);
    opacity: 0.1;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
    background: var(--primary);
    color: var(--light);
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

/* ========== MAGNETIC EFFECT ========== */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== NOISE TEXTURE OVERLAY ========== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ========== LOADING SCREEN ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--dark-border);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 1s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}