/* ===== Custom Styles for Top Tier Automotive ===== */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape-1 {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.15;
    animation: morphShape 8s ease-in-out infinite;
}

.geo-shape-2 {
    position: absolute;
    top: 45%;
    right: 2%;
    width: 100px;
    height: 100px;
    background: #2dd4bf;
    opacity: 0.08;
    transform: rotate(45deg);
    animation: floatShape 6s ease-in-out infinite;
}

.geo-shape-3 {
    position: absolute;
    bottom: 20%;
    left: 48%;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(45, 212, 191, 0.2);
    border-radius: 12px;
    transform: rotate(30deg);
    animation: floatShape 7s ease-in-out infinite reverse;
}

.geo-shape-4 {
    position: absolute;
    top: 25%;
    left: 45%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(45, 212, 191, 0.08);
    border-radius: 50%;
}

.geo-shape-5 {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(20, 184, 166, 0.1));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: morphShape 10s ease-in-out infinite reverse;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 58% 42% 36% 64% / 54% 66% 34% 46%;
    }
    50% {
        border-radius: 42% 58% 64% 36% / 66% 46% 54% 34%;
        transform: rotate(10deg) scale(1.05);
    }
    75% {
        border-radius: 64% 36% 58% 42% / 36% 54% 66% 44%;
    }
}

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

/* ===== Navbar ===== */
#navbar {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    border-bottom-color: rgba(45, 212, 191, 0.1);
}

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

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

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 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, #2dd4bf, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-shape-1 {
        width: 100px;
        height: 100px;
        top: 10%;
        right: -5%;
    }
    .geo-shape-2 {
        width: 60px;
        height: 60px;
    }
    .geo-shape-4 {
        width: 120px;
        height: 120px;
    }
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: white;
}
