/* ============================================
   KAVIANTAGE INC — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    background-color: #3d0a1a;
    color: #fce7eb;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffbe10 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #b92648 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffbe10 0%, transparent 70%);
    top: 50%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite;
}

.shape-diamond {
    width: 120px;
    height: 120px;
    background: #ffbe10;
    top: 35%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #b92648;
    top: 60%;
    right: 10%;
    animation: float-slow 22s ease-in-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

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

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(5px); }
    66% { transform: translateY(5px) translateX(-5px); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Default visible state for reduced-motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: rgba(61, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(185, 38, 72, 0.2);
}

#navbar.scrolled {
    background: rgba(61, 10, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#mobileMenu.open {
    max-height: 300px;
}

.menu-line {
    transition: all 0.3s ease;
}

#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);
}

/* ============================================
   BUTTON HOVER EFFECTS
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus, textarea:focus {
    outline: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-3 {
        display: none;
    }
    
    .shape-diamond {
        width: 60px;
        height: 60px;
    }
    
    .shape-triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
    background: rgba(255, 190, 16, 0.3);
    color: #fce7eb;
}

::-moz-selection {
    background: rgba(255, 190, 16, 0.3);
    color: #fce7eb;
}

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

::-webkit-scrollbar-track {
    background: #3d0a1a;
}

::-webkit-scrollbar-thumb {
    background: #7c1a35;
    border-radius: 4px;
}

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