/* ============================================
   DJ T.K MUSIC - SHARED DESIGN SYSTEM
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Righteous&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Primary Palette */
    --color-primary: #4338CA;
    --color-primary-light: #6366F1;
    --color-primary-dark: #1E1B4B;
    --color-secondary: #7C3AED;
    --color-accent: #22C55E;
    --color-accent-hover: #16A34A;

    /* Backgrounds */
    --color-bg: #0F0F23;
    --color-bg-alt: #13102B;
    --color-bg-card: rgba(255, 255, 255, 0.04);
    --color-bg-card-hover: rgba(255, 255, 255, 0.08);
    --color-bg-elevated: rgba(255, 255, 255, 0.06);

    /* Text */
    --color-text: #F8FAFC;
    --color-text-muted: rgba(248, 250, 252, 0.7);
    --color-text-subtle: rgba(248, 250, 252, 0.5);

    /* Borders */
    --color-border: rgba(99, 102, 241, 0.2);
    --color-border-hover: rgba(99, 102, 241, 0.5);
    --color-border-active: rgba(99, 102, 241, 0.8);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4338CA, #7C3AED);
    --gradient-accent: linear-gradient(135deg, #22C55E, #16A34A);
    --gradient-hero: linear-gradient(135deg, #0F0F23 0%, #1E1B4B 50%, #0F0F23 100%);
    --gradient-text: linear-gradient(135deg, #F8FAFC, #A5B4FC);
    --gradient-glow: linear-gradient(135deg, #4338CA, #7C3AED, #4338CA);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(67, 56, 202, 0.15);
    --shadow-md: 0 8px 24px rgba(67, 56, 202, 0.2);
    --shadow-lg: 0 16px 48px rgba(67, 56, 202, 0.25);
    --shadow-glow: 0 0 30px rgba(67, 56, 202, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(34, 197, 94, 0.3);

    /* Typography */
    --font-display: 'Righteous', cursive;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-index scale */
    --z-base: 1;
    --z-sticky: 10;
    --z-nav: 100;
    --z-overlay: 200;
    --z-modal: 300;
}

/* ============================================
   RESET & GLOBAL STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: var(--z-base);
}

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

/* ============================================
   TOP NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    z-index: var(--z-nav);
    padding: 0.75rem 0;
    transition: background var(--transition-base);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 46px;
    width: auto;
    display: block;
    transition: opacity var(--transition-base);
}

.logo img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 1px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    width: 100%;
}

/* Hide top nav on mobile */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
}

/* ============================================
   BOTTOM NAVIGATION (Mobile) - SVG Icons
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--color-border);
    z-index: var(--z-nav);
    display: none;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block !important;
    }

    body {
        padding-bottom: 80px;
    }
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-subtle);
    transition: all var(--transition-base);
    padding: 8px 6px;
    border-radius: var(--radius-md);
    flex: 1;
    max-width: 72px;
    min-width: 52px;
    min-height: 44px;
    position: relative;
    cursor: pointer;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--color-text);
}

.bottom-nav-item.active {
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.12);
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: transform var(--transition-base);
}

.bottom-nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav-item.active .bottom-nav-icon svg {
    stroke-width: 2.25;
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 380px) {
    .bottom-nav-items {
        padding: 0 4px;
    }

    .bottom-nav-item {
        padding: 6px 4px;
        min-width: 46px;
    }

    .bottom-nav-icon {
        width: 22px;
        height: 22px;
    }

    .bottom-nav-label {
        font-size: 0.6rem;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: var(--z-nav);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    animation: waFloatIn 0.8s ease-out 0.5s both;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.whatsapp-text {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: rgba(37, 211, 102, 0.4);
    animation: waPulse 2.5s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes waFloatIn {
    0% { transform: translateX(-80px); opacity: 0; }
    60% { transform: translateX(6px); opacity: 1; }
    100% { transform: translateX(0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        left: 16px;
        padding: 12px 16px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-text {
        font-size: 0.8rem;
    }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: calc(var(--z-nav) + 1);
    border-radius: 0 2px 2px 0;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    transition: opacity 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   COMMON CARD STYLES
   ============================================ */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    cursor: pointer;
}

.card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-border-active);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-glow-accent);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   STAT BOX STYLES
   ============================================ */
.stat-box {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.stat-box:hover {
    transform: translateY(-6px);
    background: var(--color-bg-card-hover);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   BADGE STYLES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.badge:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
}

.badge svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SECTION TITLE STYLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: var(--space-2xl);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-subtle);
}

.form-input:focus,
.form-textarea:focus {
    background: var(--color-bg-elevated);
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ============================================
   COMMON ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }
.fade-in-up-delay-4 { animation-delay: 0.4s; }

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .whatsapp-pulse {
        display: none;
    }
}

/* ============================================
   FOCUS STATES (Keyboard Navigation)
   ============================================ */
:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   SELECTION COLORS
   ============================================ */
::selection {
    background: rgba(67, 56, 202, 0.3);
    color: var(--color-text);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--color-bg) 0%, #090918 100%);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-primary);
    filter: blur(1px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand img {
    height: 48px;
    width: auto;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    cursor: pointer;
}

.footer-social-link:hover {
    color: var(--color-text);
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Columns */
.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--color-text);
    transform: translateX(-4px);
}

.footer-links a svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.footer-links a:hover svg {
    opacity: 1;
}

/* Footer Contact Info */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--color-text-muted);
    transition: color var(--transition-base);
    cursor: pointer;
}

.footer-contact-item a:hover {
    color: var(--color-text);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-copyright {
    color: var(--color-text-subtle);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--color-text-subtle);
    font-size: 0.8rem;
    transition: color var(--transition-base);
    cursor: pointer;
}

.footer-legal a:hover {
    color: var(--color-text-muted);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .site-footer {
        padding-bottom: 6rem;
    }
}

/* ============================================
   MOBILE SMALL SCREENS (480px and below)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .card {
        padding: var(--space-lg);
    }

    .stat-box {
        padding: 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .section-subtitle {
        margin-top: -0.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 1rem;
    }
}
