/* ============================================
   Studio 1306 — Custom Styles
   Deep Navy + Warm Gold | Vibrant Modern
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #0a1628;
    background-color: #faf8f4;
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border: 2px solid rgba(212, 168, 67, 0.12);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: float-shape 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(212, 168, 67, 0.06);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: float-shape 15s ease-in-out infinite reverse;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212, 168, 67, 0.2);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 168, 67, 0.08);
    top: 60%;
    left: 15%;
    animation: float-shape 18s ease-in-out infinite;
}

.geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.3) 2px, transparent 2px);
    background-size: 15px 15px;
    top: 40%;
    right: 10%;
    animation: float-shape 12s ease-in-out infinite reverse;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float-shape {
    0%, 100% { transform: translateY(0) 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); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-badge {
    animation: slideInLeft 0.8s ease-out forwards;
}

.hero-badge > * {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.hero-badge > div:first-child {
    animation-delay: 0.1s;
}

.hero-badge > span {
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-badge > div:last-child {
    animation-delay: 0.3s;
}

h1 {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

p.text-cream-200\/80,
p[class*="text-cream-200"][class*="80"] {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-stat {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-stat:nth-child(1) { animation-delay: 0.7s; }
.hero-stat:nth-child(2) { animation-delay: 0.8s; }
.hero-stat:nth-child(3) { animation-delay: 0.9s; }

.hero-card-1 {
    animation: slideInLeft 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-card-2 {
    animation: slideInLeft 1s ease-out 0.8s forwards;
    opacity: 0;
}

.hero-card-3 {
    animation: scaleIn 0.8s ease-out 1s forwards;
    opacity: 0;
}

/* ============================================
   Scroll Reveal (Below Fold Only)
   Progressive enhancement — content visible by default, enhanced by JS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-text {
    color: #0a1628;
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a843;
    transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-text {
    color: #0a1628;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */
button, a[role="button"] {
    cursor: pointer;
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    color: #0a1628;
    background: #faf8f4;
}

select:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

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

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

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

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

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #0a1628;
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
}

@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    h1 {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
}
