/* 
 * JB Pest Control Kolkata
 * Global CSS Architecture 
 */

:root {
    /* Color Palette from Analysis */
    --primary-color: #0A2A22; /* Dark Green */
    --accent-color: #10B981; /* Bright Green */
    --accent-hover: #059669;
    --bg-light: #F3F4F6; /* Light Grey */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

#main-content {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Utilities */
.text-primary-brand { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-brand { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light-grey { background-color: var(--bg-light) !important; }

/* Custom Button */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--accent-color);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

.hover-accent {
    transition: color var(--transition-speed) ease;
}
.hover-accent:hover {
    color: var(--accent-color) !important;
}

.social-icons a {
    transition: color var(--transition-speed) ease;
}
.social-icons a:hover {
    color: var(--accent-color) !important;
}

.navbar .nav-link {
    margin: 0px !important;
    transition: all var(--transition-speed) ease;
    border-radius: 4px;
    margin: 0 5px;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
    border-radius: 0px;
}

/* Dropdown Hover (Desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

.dropdown-item {
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
}

.focus-ring-accent {
    --bs-focus-ring-color: rgba(16, 185, 129, 0.25);
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-color: #0A2A22;
}

.hero-bg {
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    top: 0; left: 0;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(10,42,34,0.95) 0%, rgba(10,42,34,0.7) 50%, rgba(10,42,34,0.1) 100%);
    top: 0; left: 0;
}

.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

.min-vh-75 { min-height: 75vh; }

.hero-content {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-title {
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 90%;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.hero-tech-img {
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.5));
    max-height: 600px;
    width: 100%;
}

.floating-bug-card {
    top: 40%;
    left: 10%;
    width: 400px;
    animation: float 5s ease-in-out infinite;
}

.drop-shadow-img {
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.3s;
}

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

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

@media (max-width: 991.98px) {
    .hero-title { font-size: 2.8rem; }
    .hero-content { padding-top: 8rem; } /* Account for logo */
    .hero-overlay { background: rgba(10,42,34,0.85); }
}

/* Utilities */
.transition {
    transition: all var(--transition-speed) ease;
}
.hover-white:hover {
    color: var(--white) !important;
}
.hover-dark:hover {
    color: var(--primary-color) !important;
}


