/* ===================================
   John B Talley III & Associates
   Custom Styles
   =================================== */

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

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

body {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Selection */
::selection {
    background: #FF6B4A;
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B4A;
}

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

.geo-circle-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 107, 74, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-square-1 {
    top: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 74, 0.08);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-2 {
    bottom: 15%;
    left: 15%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 107, 74, 0.1);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 60%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 107, 74, 0.06);
    animation: float 7s ease-in-out infinite reverse;
}

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

/* ===================================
   Hero Animations
   =================================== */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

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

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

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

#navbar.scrolled .font-display {
    color: #ffffff !important;
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
}

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

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

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s 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; }

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B4A, #FF8566);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   About Section
   =================================== */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Neighborhood Cards
   =================================== */
.neighborhood-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.neighborhood-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Testimonials
   =================================== */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Contact Section
   =================================== */
.contact-info {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Form Focus States
   =================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===================================
   Utility Animations
   =================================== */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 74, 0); }
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 50px;
        height: 50px;
    }
    
    .geo-circle-2 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle-1 {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        margin-left: 0 !important;
    }
    
    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .stat-item {
        flex-direction: row !important;
        text-align: left;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .geo-shape,
    .geo-circle-1,
    .geo-square-1,
    .geo-circle-2,
    .geo-triangle-1 {
        display: none;
    }
}
