/* ============================================
   The Kearney Team — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* ============================================
   Geometric Background Shapes (Hero)
   ============================================ */

.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    pointer-events: none;
}

.geo-triangle-1 {
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent rgba(13, 148, 136, 0.08) transparent;
    top: 20%;
    left: 3%;
    transform: rotate(-15deg);
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(13, 148, 136, 0.3) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
    bottom: 15%;
    right: 8%;
}

.geo-square {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(13, 148, 136, 0.15);
    pointer-events: none;
    top: 30%;
    right: 15%;
    transform: rotate(45deg);
}

.geo-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.2), transparent);
    pointer-events: none;
    width: 200px;
    bottom: 30%;
    left: 10%;
    transform: rotate(-10deg);
}

/* ============================================
   Navbar Scroll State
   ============================================ */

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: #0f172a !important;
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.2s ease;
}

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

/* ============================================
   Animations
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.hero-content {
    animation: slideInLeft 0.8s ease forwards;
}

.hero-image {
    animation: slideInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* ============================================
   Intersection Observer Animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    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; }

/* ============================================
   Service Card Hover Effect
   ============================================ */

.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle-1 {
        border-width: 0 30px 52px 30px;
    }
    
    .geo-square {
        width: 40px;
        height: 40px;
    }
}
