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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #FAFAF8;
}

::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 3px;
}

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

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

@keyframes scrollLine {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(42, 42, 42, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Service items hover */
.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(232, 115, 90, 0.03);
    padding-left: 1rem;
}

.service-item:hover .border-t {
    border-top-color: #E8735A;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu transition */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button focus visible */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #E8735A;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #E8735A;
    color: #FAFAF8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .service-item:hover {
        padding-left: 0;
    }
}

@media (min-width: 1024px) {
    .lg\\:col-start-1 {
        grid-column-start: 1;
    }
    
    .lg\\:col-start-6 {
        grid-column-start: 6;
    }
    
    .lg\\:col-start-7 {
        grid-column-start: 7;
    }
    
    .lg\\:col-span-5 {
        grid-column-span: 5;
    }
    
    .lg\\:col-span-6 {
        grid-column-span: 6;
    }
    
    .lg\\:col-span-7 {
        grid-column-span: 7;
    }
}
