/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #FF0671;
    --color-bg: #000000;
    --color-card: #1a1a1a;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-dark: #3C2626;
}

html {
    scroll-behavior: smooth;
}

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

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Card Animations */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 6, 113, 0.1), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(255, 6, 113, 0.2);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section Gradient */
.hero-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(255, 6, 113, 0.15), transparent 70%);
    position: relative;
    z-index: 1;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 6, 113, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(60, 38, 38, 0.03) 50%, transparent 52%);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: -1;
}

/* Float Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Technology Badges */
.tech-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 6, 113, 0.1);
}

.tech-badge:hover {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 15px 35px rgba(255, 6, 113, 0.3);
    border-color: var(--color-primary);
}

/* Button Styles */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 6, 113, 0.4);
    background-color: #e60565;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.mobile-menu.active {
    max-height: 500px;
}

/* Client Logos */
.client-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.5);
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Section Spacing */
section {
    padding: 5rem 1rem;
    position: relative;
    z-index: 10;
    background-color: var(--color-bg);
}

/* Hero section needs lower z-index */
#hero {
    z-index: 1 !important;
}

@media (min-width: 768px) {
    section {
        padding: 8rem 2rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 6, 113, 0.8);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Stagger Animation for Cards */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }
.card:nth-child(5) { transition-delay: 0.5s; }
.card:nth-child(6) { transition-delay: 0.6s; }

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}