/* ===== Custom Styles for Smile Squad ===== */

/* --- Base & Utilities --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Gold Button --- */
.btn-gold {
    background: linear-gradient(135deg, #e6b422 0%, #d4a017 100%);
    color: #0a1628;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f0c94d 0%, #e6b422 100%);
    transform: translateY(-2px);
}

/* --- Light Outline Button --- */
.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: mobileLinkIn 0.4s ease forwards;
    opacity: 0;
}

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

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

/* Menu icon animation */
#menu-toggle.active #menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active #menu-icon span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active #menu-icon span:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Hero --- */
#hero {
    position: relative;
}

.hero-bg-gradient {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.97) 0%, rgba(15, 33, 64, 0.92) 50%, rgba(10, 22, 40, 0.95) 100%);
}

.hero-scrim {
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(10, 22, 40, 0.4) 100%);
}

.hero-bg-img {
    filter: saturate(0.6);
}

/* Hero geometric shapes */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo--1 {
    top: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(230, 180, 34, 0.3);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.hero-geo--2 {
    bottom: 25%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: rgba(230, 180, 34, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-geo--3 {
    top: 30%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(230, 180, 34, 0.06);
    animation: float 7s ease-in-out infinite;
}

.hero-geo--4 {
    bottom: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transform: rotate(30deg);
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

/* Hero badge animation */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

/* Scroll line */
.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Service Cards --- */
.service-card {
    perspective: 1000px;
}

/* --- Geometric Background Decorations --- */
.geo-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.geo-circle--1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.04) 0%, transparent 70%);
}

.geo-circle--2 {
    bottom: 10%;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15, 33, 64, 0.05) 0%, transparent 70%);
}

.geo-tri {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-tri--1 {
    top: 40%;
    right: -30px;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(230, 180, 34, 0.03);
}

.geo-dots {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-dots--1 {
    top: 60%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(212, 160, 23, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
}

.geo-ring {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-ring--1 {
    bottom: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 160, 23, 0.06);
    border-radius: 50%;
}

/* --- Geometric pattern for gold section --- */
.geo-pattern {
    background-image: 
        linear-gradient(45deg, rgba(10, 22, 40, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(10, 22, 40, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(10, 22, 40, 0.03) 75%),
        linear-gradient(-45deg, rgba(10, 22, 40, 0.03) 75%, transparent 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Prefers 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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-geo--1,
    .hero-geo--3,
    .hero-geo--4 {
        display: none;
    }
}

@media (max-width: 640px) {
    #navbar {
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(20px);
    }
}
