/* ==========================================
   DYLAN INCOME TAX SERVICE — Custom Styles
   ========================================== */

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

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

body {
    margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050d1a;
}
::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Selection */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #f0fdf4;
}

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

.geo-circle-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(52, 211, 153, 0.08);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 5%;
    left: -8%;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(52, 211, 153, 0.06);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 30%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(52, 211, 153, 0.04);
    border: 1px solid rgba(52, 211, 153, 0.1);
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-triangle-1 {
    bottom: 20%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(52, 211, 153, 0.05);
    animation: float-medium 10s ease-in-out infinite reverse;
}

.geo-dots {
    top: 50%;
    left: 45%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(52, 211, 153, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
    animation: float-slow 18s ease-in-out infinite;
}

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

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

/* ==========================================
   Navbar
   ========================================== */
#navbar {
    background: rgba(3, 8, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(3, 8, 20, 0.95);
    border-bottom-color: rgba(52, 211, 153, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(52, 211, 153, 0.15);
}

/* ==========================================
   Reveal Animations (progressive enhancement)
   ========================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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: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 no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ==========================================
   Form Styles
   ========================================== */
select option {
    background: #050d1a;
    color: #ffffff;
}

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

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

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

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 767px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    .geo-circle-2 {
        width: 180px;
        height: 180px;
    }
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    .geo-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(52, 211, 153, 0.05);
    }
    .geo-dots {
        width: 100px;
        height: 100px;
        background-size: 14px 14px;
    }
}
