/* ============================================
   TANGLES & CO. — Custom Styles
   ============================================ */

/* Base reset & smooth scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* ============================================
   GEOMETRIC BACKGROUND SHAPES (Hero)
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 3px solid #fbbf24;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #db2777, #9d174d);
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    top: 40%;
    left: 15%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: #fbbf24;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    opacity: 0.04;
    animation: spin-slow 30s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #db2777;
    top: 60%;
    right: 20%;
    opacity: 0.06;
    animation: float-slow 18s ease-in-out infinite;
    transform: rotate(15deg);
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #fbbf24 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    bottom: 20%;
    right: 5%;
    opacity: 0.15;
}

/* ============================================
   FLOATING STAT CARDS
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-top {
    animation-delay: 0s;
}

.card-mid {
    animation-delay: -2s;
}

.card-bottom {
    animation-delay: -4s;
}

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive enhancement — visible without JS)
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .service-card {
    opacity: 0;
    transform: translateY(40px);
}

.js-enabled .service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
    opacity: 1;
}

/* ============================================
   NAVBAR TRANSITIONS
   ============================================ */
#navbar.scrolled {
    background: rgba(48, 5, 24, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MOBILE MENU LINE ANIMATION
   ============================================ */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
    background: #fbbf24;
    color: #500724;
}

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

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

::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #be185d;
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .floating-card {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .floating-card {
        transform: scale(0.85);
    }
}
