/* 
   OLO ACAI - DESIGN SYSTEM (STARTUP PREMIUM)
   Modern, Clean, Professional
*/

:root {
    /* --- COLOR PALETTE --- */

    /* Primary Brand - Deep & Vibrant */
    --brand-primary: #6D28D9;
    /* Rich Purple */
    --brand-secondary: #D946EF;
    /* Vibrant Pink/Magenta */
    --brand-accent: #10B981;
    /* Fresh Green (Organic) */
    --brand-dark: #4C1D95;
    /* Deep Purple for contrast */

    /* Gradations */
    --gradient-primary: linear-gradient(135deg, #6D28D9 0%, #D946EF 100%);
    --gradient-dark: linear-gradient(135deg, #4C1D95 0%, #7E22CE 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F5F3FF 100%);

    /* Neutrals (Inter/Geist inspired) */
    --surface-white: #FFFFFF;
    --surface-off-white: #fafafa;
    --surface-light: #F3F4F6;
    --text-main: #111827;
    /* Nearly Black */
    --text-muted: #6B7280;
    /* Muted Gray */
    --text-light: #9CA3AF;
    /* Light Gray */
    --border-light: #E5E7EB;

    /* --- TYPOGRAPHY --- */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- SHADOWS & ELEVATION --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(109, 40, 217, 0.3);

    /* --- GLASSMORPHISM --- */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);

    /* --- SPACING & RADIUS --- */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --container-width: 1280px;
    --header-height: 80px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--surface-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* Tight tracking for modern look */
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive container padding for consistent alignment */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 3rem;
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Consistent grid alignment */
.grid-gap-responsive {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-gap-responsive {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .grid-gap-responsive {
        gap: 3rem;
    }
}

/* --- NAVBAR (Global) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Ensure it is always on top */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
    background-color: var(--color-purple-50);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4), 0 0 20px rgba(217, 70, 239, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}

/* --- CARDS --- */
.card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::before {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(109, 40, 217, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(180deg, #111827 0%, #0a0f1a 100%);
    color: var(--surface-light);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--brand-secondary);
    transform: translateX(3px);
}

/* Social Links Premium Hover */
footer .social-link,
footer a[href*="instagram"],
footer a[href*="tiktok"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a[href*="instagram"]:hover,
footer a[href*="tiktok"]:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* --- SMOOTH PAGE LOAD --- */
body {
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- ANIMATIONS (Basic) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* --- PREMIUM SECTION DIVIDERS --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0.3;
}

/* --- PREMIUM TEXT EFFECTS --- */
.text-shimmer {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease-in-out infinite;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* --- SELECTION STYLING --- */
::selection {
    background: rgba(109, 40, 217, 0.2);
    color: var(--brand-primary);
}

/* --- SCROLL BEHAVIOR --- */
html {
    scroll-behavior: smooth;
}

/* --- FOCUS STATES FOR ACCESSIBILITY --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}