/* ===== CUSTOM CSS FOR KELLY HUNTER TECHNOLOGIES ===== */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #004D26;
    --accent-color: #F6C400;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FB;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===== CUSTOM BOOTSTRAP OVERRIDES ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #003d1f;
    border-color: #003d1f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 500;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #e6b000;
    border-color: #e6b000;
    color: var(--text-dark);
}

.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 0;
    padding: 0.25rem 0;
    min-height: 60px;
}

.navbar-brand:hover {
    text-decoration: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-left: 0.5rem;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.logo-img {
    height: 65px !important;
    width: auto;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    display: block;
    object-fit: contain;
    max-width: 200px;
}

/* Ensure no text shows in navbar-brand */
.navbar-brand * {
    font-size: inherit;
}

.navbar-brand::before,
.navbar-brand::after {
    display: none !important;
}

.logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0, 77, 38, 0.2));
}

/* Logo Fallback Styling */
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.logo-svg {
    width: 45px;
    height: 45px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #006633);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 77, 38, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 2px;
}

.logo-fallback:hover .logo-svg {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 77, 38, 0.3));
}

.logo-fallback:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 77, 38, 0.4);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 77, 38, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    color: var(--white);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: slideInUp 1s ease-out;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: rgba(246, 196, 0, 0.9);
    border-color: var(--accent-color);
    color: var(--text-dark);
    transform: scale(1.1);
}

.hero-nav-btn i {
    font-size: 1.2rem;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

/* Slide Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== SECTIONS ===== */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 77, 38, 0.1);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #006633);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-card small {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    border-top: 1px solid rgba(0, 77, 38, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

.service-card .btn {
    margin-top: 1rem;
}

/* ===== PROJECT CARDS ===== */
.project-category-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 77, 38, 0.1);
    overflow: hidden;
}

.project-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.project-image-container {
    position: relative;
    overflow: hidden;
}

.project-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-category-card:hover .project-image-container img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 77, 38, 0.8), rgba(0, 102, 51, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-category-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    text-align: center;
    color: var(--white);
}

.project-overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.project-overlay-content h5 {
    font-weight: 600;
    margin: 0;
}

.project-content {
    padding: 2rem;
}

.project-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.case-summary h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.case-summary p {
    margin-bottom: 0.5rem;
}

.client-logos {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 77, 38, 0.1);
}

.client-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 77, 38, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 77, 38, 0.1);
    transition: var(--transition);
}

.client-logo-placeholder:hover {
    background: rgba(0, 77, 38, 0.1);
    border-color: var(--primary-color);
}

.client-logo-placeholder i {
    color: var(--primary-color);
    font-size: 1rem;
}

.client-logo-placeholder span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
}

/* ===== WHY CHOOSE US ===== */
.why-choose-item {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.why-choose-item:hover {
    transform: translateY(-5px);
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #e6b000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.why-choose-item:hover .why-choose-icon {
    transform: scale(1.1) rotate(5deg);
}

.why-choose-icon i {
    font-size: 1.75rem;
    color: var(--text-dark);
}

.why-choose-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== QUOTE FORM ===== */
.quote-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-form .form-control,
.quote-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
    background: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(246, 196, 0, 0.25);
}

.quote-form .form-control::placeholder {
    color: var(--text-light);
}

/* ===== CONTACT FORM ===== */
#contactForm .form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

#contactForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 77, 38, 0.25);
}

/* ===== CONTACT INFO ===== */
.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.contact-details h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer h5,
footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

footer .social-links a:hover {
    background: var(--accent-color);
    color: var(--text-dark) !important;
    transform: translateY(-3px);
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    text-decoration: none;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--accent-color) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== UTILITY CLASSES ===== */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .hero-slider {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-nav {
        padding: 0 1rem;
    }
    
    .hero-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .service-card,
    .quote-form-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 991.98px) {
    .brand-text {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .logo-img {
        height: 52px;
        max-width: 208px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        min-height: 50px;
    }
    
    .brand-text {
        display: none;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .logo-main {
        font-size: 0.95rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
    
    .hero-slider {
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-nav-btn i {
        font-size: 1rem;
    }
    
    .hero-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .quote-form-container {
        padding: 1.5rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-overlay {
        padding: 40px 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .why-choose-item {
        padding: 1.5rem 0.5rem;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== FORM VALIDATION ===== */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== ABOUT SECTION STYLES ===== */
.about-content {
    padding: 1rem;
}

.vision-mission-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-icon i {
    font-size: 2.5rem;
}

.value-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 77, 38, 0.1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #e6b000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-icon i {
    font-size: 1.75rem;
    color: var(--text-dark);
}

.value-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-content {
    padding: 1rem;
}

.team-highlights .d-flex {
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.team-highlights .d-flex:hover {
    background: var(--bg-light);
}

.stat-item {
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .hero-section,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        color: #000 !important;
    }
}
