/* === 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 {
    font-family: 'Inter', sans-serif;
    background-color: #1A1A1A;
    color: #ffffff;
    overflow-x: hidden;
}

/* === Geometric Grid Background === */
.geometric-grid {
    background-image:
        linear-gradient(rgba(255, 107, 74, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 74, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    width: 100%;
    height: 100%;
}

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* === Navbar === */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(26, 26, 26, 0.85);
    border-bottom: 1px solid rgba(74, 74, 74, 0.3);
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Mobile Menu === */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

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

.mobile-link {
    transition: all 0.2s ease;
}

/* === Service Cards === */
.service-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 74, 0.08);
}

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

.reveal.visible {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* === Selection === */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

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

/* === Responsive === */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}
