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

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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

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

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(8, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

/* 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, #14b8a6, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Testimonial Cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(20, 184, 166, 0.06);
    line-height: 1;
    pointer-events: none;
}

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

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover lift effect */
button, a {
    transition: all 0.3s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}
