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

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

body {
    background-color: #121218;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

::selection {
    background: #E8634B;
    color: #ffffff;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #E8634B;
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

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

.shape-square-1 {
    width: 200px;
    height: 200px;
    border: 2px solid #E8634B;
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.shape-square-2 {
    width: 120px;
    height: 120px;
    background: #E8634B;
    bottom: 20%;
    right: 10%;
    transform: rotate(20deg);
    animation: float-slow 12s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #E8634B;
    top: 50%;
    right: 5%;
    opacity: 0.04;
    animation: float-slow 22s ease-in-out infinite;
}

.shape-ring-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #E8634B;
    top: 15%;
    left: 15%;
    opacity: 0.05;
    animation: float-slow 16s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-30px) rotate(var(--rotation, 0deg)); }
}

.shape-square-1 { --rotation: 45deg; }
.shape-square-2 { --rotation: 20deg; }

/* ===== Floating Cards ===== */
.floating-card {
    animation: float-card 6s ease-in-out infinite;
    z-index: 10;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -2s; }
.card-3 { animation-delay: -4s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8634B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(18, 18, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* ===== Product Cards ===== */
.product-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

/* ===== Feature Cards ===== */
.feature-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), background 0.5s ease, border-color 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.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; }

/* ===== Contact Form ===== */
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: rgba(232, 99, 75, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(232, 99, 75, 0.1) !important;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    .geo-shape {
        opacity: 0.03;
    }

    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }

    .shape-square-1,
    .shape-square-2,
    .shape-triangle-1,
    .shape-ring-1 {
        display: none;
    }
}

@media (max-width: 640px) {
    .font-display {
        font-family: 'Space Grotesk', sans-serif;
    }
}

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

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
