/* ============================================
   KS CARPENTRY - CUSTOM STYLES
   Brand Colors: Black (#000000) and Steel Blue (#4A7C9E)
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary-color: #4A7C9E;
    --primary-dark: #3A6280;
    --primary-light: #6B9FBF;
    --secondary-color: #000000;
    --accent-color: #2C5F7E;
    
    /* Neutral Colors */
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Bebas Neue', cursive;
    
    /* Spacing */
    --section-padding: 100px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-padding {
    padding: var(--section-padding) 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 20px !important;
    margin: 0 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.btn-nav-cta {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 8px;
    padding: 10px 24px !important;
    margin-left: 10px;
}

.btn-nav-cta::after {
    display: none;
}

.btn-nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 158, 0.3);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 124, 158, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234A7C9E' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 124, 158, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 124, 158, 0.1) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(74,124,158,0.05)"/></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero-title {
    font-size: clamp(48px, 8vw, 90px);
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(24px, 4vw, 36px);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-text {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
}

.hero-stats {
    margin-top: 60px;
}

.stat-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(74, 124, 158, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-link {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    font-size: 32px;
    animation: bounce 2s infinite;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 124, 158, 0.4);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 16px;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.experience-badge p {
    font-size: 16px;
    margin: 0;
    font-family: var(--font-primary);
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-content h5 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.feature-content p {
    margin: 0;
    color: var(--gray);
    font-size: 15px;
}

/* ===== SERVICES SECTION ===== */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ===== GALLERY SECTION ===== */
.btn-filter {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    margin: 0 8px 10px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 158, 0.3);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 124, 158, 0.95), rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 48px;
    color: var(--white);
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-item.hide {
    display: none;
}

/* Video Play Button */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(74, 124, 158, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    z-index: 5;
    pointer-events: none;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

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

.stars {
    color: #FFD700;
    font-size: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author strong {
    display: block;
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.testimonial-author span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact-info h3 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(74, 124, 158, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-item h5 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.contact-link {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.contact-link:hover {
    color: var(--primary-light);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form .form-label {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(74, 124, 158, 0.25);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .form-select option {
    background: var(--dark);
    color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo {
    height: 80px;
    width: auto;
}

.footer h5 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
}

.footer p a {
    color: var(--primary-color);
    font-weight: 600;
}

.footer p a:hover {
    color: var(--primary-light);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 9998;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== LIGHTBOX MODAL ===== */
#lightboxModal .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
}

#lightboxModal .modal-body img,
#lightboxModal .modal-body video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

#lightboxModal .btn-outline-light {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#lightboxModal .btn-outline-light:hover {
    background: var(--primary-color);
    color: var(--white);
}

#imageCounter {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-stats {
        margin-top: 40px;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
        padding: 20px;
    }
    
    .experience-badge h3 {
        font-size: 24px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .stat-box {
        margin-bottom: 15px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .section-tag {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .service-card,
    .testimonial-card {
        padding: 30px 20px;
    }
}

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

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

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .scroll-down {
        display: none !important;
    }
}
