/* ============================================
   OXFORD TREE SERVICE — Custom Styles
   Premium Dark Luxury Design System
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040B14;
}
::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.5);
}

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

#navbar.scrolled {
    background: rgba(4, 11, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #2DD4BF, #14B8A6);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #2DD4BF !important;
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #2DD4BF;
    margin: 4px auto 0;
    transition: width 0.3s ease;
}

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

.mobile-nav-link:hover {
    color: #2DD4BF !important;
}

/* Hamburger animation */
#hamburger span {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active #hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
    width: 0;
}

#mobile-menu-btn.active #hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 6px;
}

/* ---------- Hero ---------- */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    animation-delay: 0s;
    background: radial-gradient(circle, #2DD4BF, transparent 70%);
}

.orb-2 {
    animation-delay: -3s;
    background: radial-gradient(circle, #0D9488, transparent 70%);
}

.orb-3 {
    animation-delay: -5s;
    background: radial-gradient(circle, #C9A227, transparent 70%);
}

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

.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

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

.hero-subhead {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

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

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

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

/* Scroll line animation */
@keyframes scrollLine {
    0% { top: -16px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

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

/* CTA Buttons */
.cta-primary {
    position: relative;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-primary:hover::before {
    opacity: 1;
}

/* ---------- Section Headers ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
}

.section-title {
    position: relative;
}

.section-subtitle {
    position: relative;
}

/* ---------- Service Cards ---------- */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.03), transparent);
}

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

.service-link {
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* ---------- About Section ---------- */
.about-img-wrapper {
    position: relative;
}

.about-img {
    transition: transform 0.7s ease;
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.03);
}

.about-img-accent {
    transition: all 0.5s ease;
}

.about-img-wrapper:hover .about-img-accent {
    border-color: rgba(45, 212, 191, 0.5);
    width: 32px;
    height: 32px;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
}

.gallery-img {
    transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.03), transparent);
}

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

/* ---------- Contact Form ---------- */
.form-input {
    width: 100%;
}

.form-input:focus {
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3), inset 0 0 20px rgba(45, 212, 191, 0.02);
}

.form-input option {
    background: #0F1F35;
    color: #fff;
}

/* ---------- Info Cards ---------- */
.info-card {
    transition: all 0.3s ease;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.2);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
