/* ========================================
   Kevin's Integrity Automotive
   Custom Styles
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Navigation
======================================== */
.nav-glass {
    background: rgba(254, 252, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-glass.scrolled {
    background: rgba(254, 252, 232, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.mobile-link:hover {
    padding-left: 12px;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #d45628;
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 6px;
}

/* Mobile menu button animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Geometric Background Shapes
======================================== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #d45628;
    border-radius: 50%;
    top: 15%;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: #d45628;
    border-radius: 50%;
    bottom: 20%;
    left: -60px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 180px;
    height: 180px;
    border: 3px solid #d45628;
    top: 45%;
    left: 5%;
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #d45628;
    top: 60%;
    right: 8%;
    animation: floatShape 22s ease-in-out infinite reverse;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #d45628 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    top: 30%;
    left: 15%;
    opacity: 0.04;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* ========================================
   Hero Geometric Elements
======================================== */
.hero-geo {
    position: absolute;
    opacity: 0.15;
}

.hero-geo-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(253, 224, 71, 0.3);
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: heroFloat 6s ease-in-out infinite reverse;
}

.hero-geo-3 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: 25%;
    left: 15%;
    animation: heroFloat 10s ease-in-out infinite;
}

.hero-geo-4 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    bottom: 15%;
    right: 5%;
    transform: rotate(30deg);
    animation: heroFloat 12s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d45628, #e8c47c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ========================================
   Buttons
======================================== */
button, a {
    cursor: pointer;
}

/* ========================================
   Form Styles
======================================== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 86, 40, 0.15);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 100px;
        height: 100px;
    }
    
    .geo-triangle {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 104px;
    }
}

@media (max-width: 640px) {
    .hero-geo-1 {
        width: 150px;
        height: 150px;
    }
    
    .hero-geo-2 {
        width: 80px;
        height: 80px;
    }
}
