/* Custom styles for Andrew The Trainer */

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

html {
    scroll-behavior: smooth;
}

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

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #fde68a;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #86efac;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fca5a5;
    top: 30%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: #c4b5fd;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    background: #67e8f9;
    bottom: 20%;
    right: 25%;
    transform: rotate(20deg);
    animation: spin 8s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fdba74;
    top: 60%;
    left: 20%;
    animation: float 9s ease-in-out infinite;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 69px solid #a78bfa;
    top: 15%;
    left: 40%;
    animation: float 5s ease-in-out infinite reverse;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #fde68a 2px, transparent 2px);
    background-size: 20px 20px;
    bottom: 15%;
    right: 10%;
    opacity: 0.3;
}

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

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

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

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

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

#mobileMenu.active .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 1;
}

#mobileMenu.active .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobileMenu.active .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobileMenu.active .mobile-link:nth-child(4) { animation-delay: 0.25s; }

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

/* Hamburger Animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* Service Cards */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 138, 85, 0.15);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

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

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