/* ========================================
   Basics Consulting Group — Custom Styles
   ======================================== */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f2c1a;
}

/* Selection */
::selection {
    background: #1a4d2e;
    color: #faf8f4;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
}

/* Mobile Menu */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

.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; }

/* ========================================
   Hero
   ======================================== */
.scroll-indicator {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #1a4d2e;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    height: 100%;
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger children */
.reveal-up.visible ~ .reveal-up,
.reveal-up:nth-child(2).visible {
    transition-delay: 0.1s;
}

.reveal-up:nth-child(3).visible {
    transition-delay: 0.2s;
}

.reveal-up:nth-child(4).visible {
    transition-delay: 0.3s;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #1a4d2e !important;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1) !important;
}

/* ========================================
   Hover Effects
   ======================================== */
a {
    transition: color 0.3s ease;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Tablet adjustments */
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #navbar,
    .scroll-indicator,
    #contactForm {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
