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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #fff;
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(14, 14, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 74, 0.1);
}

#navbar.scrolled .menu-line {
    background: #fff;
}

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

#mobile-menu.open .mobile-link {
    animation: slideIn 0.4s ease forwards;
    opacity: 1;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Menu button active state */
#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
    margin-left: 0;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    animation: float 8s ease-in-out infinite;
}

.geo-shape:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.geo-shape:nth-child(3) { animation-delay: -4s; animation-duration: 7s; }
.geo-shape:nth-child(4) { animation-delay: -1s; animation-duration: 9s; }
.geo-shape:nth-child(5) { animation-delay: -3s; animation-duration: 11s; }
.geo-shape:nth-child(6) { animation-delay: -5s; animation-duration: 6s; }

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

.geo-circle {
    border-radius: 50%;
}

/* ===== Background Blobs ===== */
.shape-blob {
    position: absolute;
    border-radius: 50%;
    animation: pulse-blob 12s ease-in-out infinite;
}

.blob-coral {
    background: radial-gradient(circle, rgba(255, 107, 74, 0.4) 0%, transparent 70%);
}

.blob-charcoal {
    background: radial-gradient(circle, rgba(46, 46, 53, 0.6) 0%, transparent 70%);
}

@keyframes pulse-blob {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b4a, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

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

/* 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;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1c1c21;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6b4a;
}

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