/* ========================================
   Ray's Collision — Custom Styles
   ======================================== */

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

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

body {
    margin: 0;
    min-height: 100vh;
}

/* ========================================
   HERO GEOMETRIC SHAPES
   ======================================== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px;
    right: -100px;
}

.shape-circle-2 {
    width: 240px;
    height: 240px;
    border: 3px solid rgba(255, 107, 74, 0.15);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 107, 74, 0.08);
    border-radius: 20px;
    top: 25%;
    right: 8%;
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 107, 74, 0.1);
    top: 40%;
    left: 3%;
    transform: rotate(-15deg);
}

/* ========================================
   SERVICE SECTION SHAPES
   ======================================== */
.service-shape {
    position: absolute;
    pointer-events: none;
}

.shape-diamond {
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 74, 0.06);
    transform: rotate(45deg);
    border-radius: 20px;
    top: 10%;
    right: 5%;
}

.shape-circle-3 {
    width: 160px;
    height: 160px;
    border: 2px solid rgba(255, 107, 74, 0.1);
    border-radius: 50%;
    bottom: 10%;
    left: 8%;
}

/* ========================================
   ABOUT SECTION SHAPES
   ======================================== */
.about-shape {
    position: absolute;
    pointer-events: none;
}

.shape-rect-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 74, 0.05);
    border-radius: 40px;
    bottom: -50px;
    right: -80px;
}

/* ========================================
   WHY US SECTION SHAPES
   ======================================== */
.why-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-4 {
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 107, 74, 0.12);
    border-radius: 50%;
    top: 5%;
    left: -60px;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid rgba(255, 107, 74, 0.08);
    bottom: 15%;
    right: 5%;
    transform: rotate(20deg);
}

/* ========================================
   CTA SECTION SHAPES
   ======================================== */
.cta-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-5 {
    width: 200px;
    height: 200px;
    background: rgba(26, 29, 35, 0.08);
    border-radius: 50%;
    top: -40px;
    left: 10%;
}

.shape-rect-3 {
    width: 100px;
    height: 100px;
    background: rgba(26, 29, 35, 0.06);
    border-radius: 16px;
    bottom: 10%;
    right: 8%;
    transform: rotate(30deg);
}

/* ========================================
   CONTACT SECTION SHAPES
   ======================================== */
.contact-shape {
    position: absolute;
    pointer-events: none;
}

.shape-diamond-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 107, 74, 0.06);
    transform: rotate(45deg);
    border-radius: 20px;
    top: 15%;
    left: 5%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-scrolled {
    background: rgba(26, 29, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 107, 74, 0.1);
}

.nav-scrolled .menu-line {
    background: white;
}

.nav-scrolled .menu-line:last-child {
    background: #FF6B4A;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* ========================================
   HERO IMAGE ANIMATION
   ======================================== */
.hero-image {
    animation: floatIn 0.8s ease-out forwards;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeUp 0.8s ease-out forwards;
}

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

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   WHY US CARDS
   ======================================== */
.why-card {
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
   Only applied when JS is available and user prefers motion
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========================================
   GEOMETRIC DECORATIVE ELEMENTS
   ======================================== */
.geo-accent {
    position: absolute;
    pointer-events: none;
}

/* ========================================
   UTILITY & ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 140px;
        height: 140px;
    }
    
    .shape-rect-1 {
        width: 70px;
        height: 70px;
    }
    
    .shape-triangle {
        border-left: 35px solid transparent;
        border-right: 35px solid transparent;
        border-bottom: 60px solid rgba(255, 107, 74, 0.1);
    }
}

@media (max-width: 640px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image {
        animation: floatInMobile 0.8s ease-out forwards;
    }
    
    @keyframes floatInMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .flex-wrap.gap-4 {
        justify-content: center;
    }
    
    .flex.gap-8.mt-12 {
        justify-content: center;
    }
}
