/* ========================================
   BK Innovations — Custom Styles
   ======================================== */

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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #059669;
    top: 10%;
    right: -100px;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #10b981;
    bottom: 15%;
    left: -60px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #059669;
    top: 40%;
    left: 5%;
    transform: rotate(-15deg);
}

.shape-square {
    width: 150px;
    height: 150px;
    background: #10b981;
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    border-radius: 16px;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #059669 2px, transparent 2px);
    background-size: 20px 20px;
    bottom: 10%;
    right: 15%;
    opacity: 0.08;
}

/* ========================================
   Hero Geometric Elements
   ======================================== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: float-slow 20s ease-in-out infinite;
}

.hero-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(254, 240, 138, 0.1);
    border-radius: 30px;
    top: 20%;
    right: 5%;
    transform: rotate(30deg);
    animation: float-medium 15s ease-in-out infinite;
}

.hero-geo-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    bottom: 25%;
    left: 10%;
    transform: rotate(45deg);
    animation: float-fast 10s ease-in-out infinite;
}

.hero-geo-4 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.08) 0%, transparent 70%);
    bottom: 5%;
    right: 10%;
    animation: float-medium 18s ease-in-out infinite reverse;
}

.hero-geo-5 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: 50%;
    left: 25%;
    animation: float-fast 12s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(30deg); }
    50% { transform: translate(-15px, 25px) rotate(40deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(20px, -15px) rotate(60deg); }
}

/* ========================================
   Navbar
   ======================================== */
.nav-scrolled {
    background: rgba(255, 251, 240, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.1);
}

.nav-scrolled .menu-line {
    background: #064e3b;
}

/* Mobile menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   Testimonial Cards
   ======================================== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.12);
}

/* ========================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }
    
    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#backToTop {
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px) !important;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .hero-geo-1 {
        width: 200px;
        height: 200px;
    }
    
    .hero-geo-2 {
        width: 100px;
        height: 100px;
    }
    
    .floating-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .shape-triangle {
        display: none;
    }
    
    .shape-square {
        display: none;
    }
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: #059669;
    color: white;
}

::-moz-selection {
    background: #059669;
    color: white;
}
