/* ===== Custom Styles for Swamp Rabbit Gear & Spin ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #ff6b6b;
    top: -100px;
    right: -100px;
    animation: floatSlow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #c41e3a;
    bottom: 10%;
    left: -50px;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ff9494;
    top: 40%;
    right: 10%;
    animation: floatSlow 12s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #ff6b6b;
    top: 25%;
    left: 5%;
    opacity: 0.04;
    animation: rotateSlow 25s linear infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #c41e3a;
    bottom: 20%;
    right: 15%;
    opacity: 0.05;
    animation: rotateSlow 30s linear infinite reverse;
    border-radius: 12px;
}

.geo-diamond-1 {
    width: 80px;
    height: 80px;
    background: #ff9494;
    top: 60%;
    left: 15%;
    opacity: 0.04;
    transform: rotate(45deg);
    animation: floatSlow 18s ease-in-out infinite;
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border: 4px solid #ff6b6b;
    border-radius: 50%;
    top: 15%;
    right: 25%;
    opacity: 0.04;
    animation: floatSlow 22s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

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

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

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

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Navbar active state */
nav.scrolled {
    background: rgba(61, 10, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Form styles */
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.form-success {
    animation: fadeInUp 0.5s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .geo-circle-1,
    .geo-circle-2,
    .geo-circle-3,
    .geo-triangle-1,
    .geo-square-1,
    .geo-diamond-1,
    .geo-ring-1 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
