/* Custom Styles for True Dental Lab */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(6, 15, 29, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#mobileMenu .mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu:not(.active) .mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

/* Menu Lines Animation */
#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menuToggle.active .menu-line:nth-child(3) {
    width: 24px;
    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: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.5), transparent);
}

.process-step:last-child::after {
    display: none;
}

/* Input Focus */
input:focus,
textarea:focus {
    background: rgba(10, 22, 40, 0.9);
}

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

::-webkit-scrollbar-track {
    background: #060f1d;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 span.text-4xl {
        font-size: 1.75rem !important;
    }

    .service-card {
        padding: 1.5rem;
    }

    #about img,
    #hero img {
        height: 350px;
    }

    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero h1 span.text-4xl {
        font-size: 1.5rem !important;
    }

    .stats {
        flex-direction: column;
        gap: 1rem !important;
    }

    .stats > div > div:nth-child(2) {
        display: none;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #contactForm,
    .reveal {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
