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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 79, 43, 0.3);
    color: #fff;
}

/* ===== Geometric Shapes (Hero) ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid #ff6b4a;
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #ff4f2b;
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #ff6b4a;
    top: 25%;
    left: 8%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: rotate-slow 25s linear infinite;
    opacity: 0.06;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #ff4f2b;
    top: 60%;
    right: 10%;
    animation: float-slow 18s ease-in-out infinite;
    opacity: 0.07;
}

.geo-ring-1 {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid #ff9b92;
    bottom: 20%;
    right: 5%;
    animation: float-slow 22s ease-in-out infinite reverse;
    opacity: 0.05;
}

.geo-dots-1 {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #ff6b4a 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    top: 40%;
    left: 3%;
    opacity: 0.15;
    animation: float-slow 12s ease-in-out infinite;
}

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

.cta-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    top: -80px;
    left: -80px;
    animation: float-slow 18s ease-in-out infinite;
}

.cta-circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -40px;
    right: 15%;
    animation: float-slow 14s ease-in-out infinite reverse;
}

.cta-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    top: 20%;
    right: 5%;
    transform: rotate(30deg);
    animation: rotate-slow 20s linear infinite;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

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

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape, .cta-shape {
        animation: none;
    }
    .animate-scroll-line {
        animation: none;
        opacity: 1;
    }
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(15, 15, 15, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu Button Animation ===== */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ===== Focus Styles ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #ff6b4a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
        right: -60px;
    }
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    .geo-square-1 {
        width: 80px;
        height: 80px;
    }
}
