:root {
    /* Primary Colors */
    --primary-navy: #0f172a;
    --primary-blue: #1e293b;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;

    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;

    /* Text Colors */
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

/* Premium Buttons */
.btn-premium {
    position: relative;
    padding: 0.8rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-secondary:hover {
    background-color: var(--primary-navy);
    color: white;
    transform: translateY(-3px);
}

/* Hero Gradient */
.hero-gradient {
    background: radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

/* Section Spacing */
section {
    padding: 100px 0;
}

/* Unique Hero Shape */
.hero-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    overflow: hidden;
    transition: var(--transition-smooth);
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.parallax-el {
    will-change: transform;
}

/* Custom Cursor Styles */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
    transform: translate(-50%, -50%);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
}

body:hover .custom-cursor,
body:hover .custom-cursor-dot {
    opacity: 1;
}

/* Hide default cursor on desktop */
@media (min-width: 768px) {
    body {
        cursor: none;
    }

    a,
    button,
    .service-card,
    .group {
        cursor: none;
    }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Loading Screen */
#loader {
    position: fixed;
    inset: 0;
    background: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Why Us Section Background */
#why-us {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/assets/why_us_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Portfolio Carousel */
.portfolio-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0 3rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.portfolio-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    max-width: 400px;
}

@media (min-width: 768px) {
    .portfolio-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .portfolio-item {
        flex: 0 0 calc(33.333% - 1.333rem);
    }
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    z-index: 30;
}

.carousel-btn:hover {
    background: var(--accent-cyan);
    color: white;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Decorative Mesh Grid */
.mesh-grid {
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.floating-icon {
    position: absolute;
    opacity: 0.1;
    color: white;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

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