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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #e85330;
    color: #fefdf8;
}

/* ===== Geometric Hero Shapes ===== */
.geo-shape-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #e85330 0%, #d93f1e 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.geo-shape-2 {
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #e8b840 0%, #d49a2a 100%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0.1;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-shape-3 {
    position: absolute;
    top: 40%;
    right: 15%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(232, 83, 48, 0.3);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-shape-4 {
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: rgba(232, 184, 64, 0.15);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
}

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

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

@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;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

#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) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ===== Form Styles ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* ===== Smooth scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf9ed;
}

::-webkit-scrollbar-thumb {
    background: #e85330;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d93f1e;
}

/* ===== Focus visible ===== */
:focus-visible {
    outline: 2px solid #e85330;
    outline-offset: 2px;
}

/* ===== Print ===== */
@media print {
    nav, #mobile-menu-btn, .geo-shape-1, .geo-shape-2, .geo-shape-3, .geo-shape-4 {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
