/* Base Styles */
*, *::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: #1a1a1a;
    color: #535353;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Geometric Background Blobs */
.geo-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.blob-coral {
    background: #ff4032;
    animation-delay: 0s;
}

.blob-teal {
    background: #14b8a6;
    animation-delay: -5s;
}

.blob-violet {
    background: #8b5cf6;
    animation-delay: -10s;
}

.blob-lime {
    background: #84cc16;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Geometric Shapes */
.geo-shape {
    animation: rotate-slow 30s linear infinite;
}

.shape-triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

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

.shape-square {
    border-radius: 8px;
}

.shape-diamond {
    border-radius: 4px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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, #ff4032, #ff8a7f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Navbar */
#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(68, 68, 68, 0.5);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
    padding-left: 16px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4032;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-link:hover::before {
    opacity: 1;
}

/* Custom Select */
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='%23535353' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select option {
    background: #2d2d2d;
    color: #535353;
}

/* Back to Top */
#backToTop.visible {
    opacity: 1;
    translate: 0 0;
    pointer-events: all;
}

/* Selection */
::selection {
    background: rgba(255, 64, 50, 0.3);
    color: #fff;
}

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

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

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

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

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

/* Print */
@media print {
    .geo-blob, .geo-shape, #backToTop {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
