/* ============================================
   Florida Fill & Grading — Custom Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #1A0D1D;
    color: #E8DDEA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Section Padding --- */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    line-height: 1.7;
}

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(26, 13, 29, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .mobile-link {
    color: #E8DDEA !important;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Menu button animation */
.menu-line {
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* --- Hero --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
}

/* Gradient Orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: float-orb 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 68, 125, 0.6) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-orb 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation: float-orb 12s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Geometric Shapes */
.hero-geo {
    position: absolute;
    opacity: 0.15;
}

.geo-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(245, 158, 11, 0.5);
    top: 15%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-2 {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    top: 25%;
    right: 12%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-3 {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(155, 106, 157, 0.5);
    border-radius: 50%;
    bottom: 20%;
    right: 20%;
    animation: pulse-geo 4s ease-in-out infinite;
}

.geo-4 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(245, 158, 11, 0.2);
    bottom: 30%;
    left: 15%;
    transform: rotate(-15deg);
    animation: float-orb 6s ease-in-out infinite;
}

.geo-5 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(91, 44, 111, 0.4), transparent);
    border-radius: 20px;
    top: 60%;
    left: 5%;
    transform: rotate(60deg);
    animation: spin-slow 25s linear infinite;
}

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

@keyframes pulse-geo {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
}

/* Hero Content Animations */
.hero-badge {
    opacity: 0;
    animation: fade-in-up 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtext {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-trust {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-scroll {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 1.2s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons */
.cta-primary {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.cta-secondary:hover {
    transform: translateY(-2px);
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0), rgba(245, 158, 11, 0.5), rgba(245, 158, 11, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* --- About --- */
.about-images {
    position: relative;
}

.about-float-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-img-main {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.about-deco-shape {
    animation: spin-slow 30s linear infinite;
}

/* --- Why Us --- */
.geo-pattern {
    animation: spin-slow 40s linear infinite;
}

.geo-pattern:nth-child(2) {
    animation-direction: reverse;
    animation-duration: 50s;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(91, 44, 111, 0.3);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 13, 29, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
}

/* --- Contact --- */
.contact-info-card {
    transition: all 0.3s ease;
}

/* Form Styles */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}

.form-input option {
    background: #391C43;
    color: #E8DDEA;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:active {
    transform: scale(0.98);
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B2C6F, #F59E0B, #5B2C6F);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.25rem;
    }

    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
}

/* --- Selection Color --- */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}
