/* ====================================
   CHAI HUAH AUTO - CUSTOM CSS STYLES
   Modern Automotive Workshop Theme
   ==================================== */

/* ============= CSS VARIABLES ============= */
:root {
    --primary-color: #dc3545;      /* Red */
    --dark-gray: #2c3e50;          /* Dark Gray */
    --dark-surface: linear-gradient(135deg, #151b24 0%, #263846 52%, #5a1722 100%);
    --dark-surface-footer: radial-gradient(circle at top left, rgba(220, 53, 69, 0.22), transparent 34%), linear-gradient(135deg, #151b24 0%, #263846 48%, #4a1620 100%);
    --section-dark-1: #101820;
    --section-dark-2: #18232d;
    --section-dark-3: #12161f;
    --section-dark-4: #1c2229;
    --card-dark: #202b35;
    --card-dark-alt: #242b36;
    --services-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 40%), linear-gradient(135deg, #243141 0%, #292c43 48%, #352b46 100%);
    --why-card-bg: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.12), transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%), linear-gradient(135deg, #292d38 0%, #342735 52%, #4a2630 100%);
    --brands-card-bg: radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.1), transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 40%), linear-gradient(135deg, #1f2c3a 0%, #263a4d 52%, #1f4050 100%);
    --contact-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.075));
    --text-on-dark: #f4f7fb;
    --text-muted-on-dark: #c5ced8;
    --light-gray: #ecf0f1;         /* Light Gray */
    --white: #ffffff;              /* White */
    --text-dark: #333333;          /* Dark Text */
    --text-light: #666666;         /* Light Text */
    --border-radius: 8px;          /* Border Radius */
    --transition: all 0.3s ease-in-out;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.65rem;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
    line-height: 1.25;
}

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

.about-section,
.services-section,
.why-choose-section,
.brands-section,
.gallery-section,
.contact-section,
.map-section {
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.about-section::before,
.services-section::before,
.why-choose-section::before,
.brands-section::before,
.gallery-section::before,
.contact-section::before,
.map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 24, 32, 0.38) 0%, transparent 24%, rgba(16, 24, 32, 0.42) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(8, 13, 18, 0.2) 72%, rgba(8, 13, 18, 0.5) 100%);
    pointer-events: none;
}

.about-section .container,
.services-section .container,
.why-choose-section .container,
.brands-section .container,
.gallery-section .container,
.contact-section .container,
.map-section .container {
    position: relative;
    z-index: 1;
}

.about-section .section-title,
.services-section .section-title,
.why-choose-section .section-title,
.brands-section .section-title,
.gallery-section .section-title,
.contact-section .section-title,
.map-section .section-title {
    color: var(--text-on-dark);
}

.about-section .text-muted,
.services-section .text-muted,
.why-choose-section .text-muted,
.brands-section .text-muted,
.gallery-section .text-muted,
.contact-section .text-muted,
.map-section .text-muted {
    color: var(--text-muted-on-dark) !important;
}

/* ============= NAVIGATION BAR ============= */
.navbar-custom {
    background: var(--dark-surface) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-size: 1.05rem;
    color: var(--white) !important;
    transition: var(--transition);
    max-width: 75vw;
    white-space: normal;
    line-height: 1.25;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    margin: 0.25rem 0;
    padding: 0.65rem 0 !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* ============= HERO SECTION ============= */
.hero-section {
    min-height: auto;
    padding: 3rem 0 2.25rem;
    background:
        radial-gradient(circle at 72% 48%, rgba(220, 53, 69, 0.22), transparent 28%),
        linear-gradient(135deg, #111820 0%, #263846 48%, #5a1722 100%);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 32, 0.86) 0%, rgba(38, 56, 70, 0.72) 52%, rgba(90, 23, 34, 0.72) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    height: auto !important;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-malay-name {
    display: inline-block;
    color: #ffd2d7;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-content .lead {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
}

.hero-content .d-flex {
    flex-direction: column;
}

.hero-content .btn {
    width: 100%;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Float Animation for Hero Image */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Slide In Animation */
@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);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============= ABOUT SECTION ============= */
.about-section {
    background:
        radial-gradient(circle at 15% 18%, rgba(220, 53, 69, 0.22), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(26, 115, 232, 0.16), transparent 30%),
        radial-gradient(circle at 50% 92%, rgba(37, 211, 102, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        var(--section-dark-1);
    background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
    padding: 3rem 0;
}

.about-section p {
    color: var(--text-muted-on-dark);
}

.about-section img {
    transition: var(--transition);
    animation: slideInLeft 0.8s ease-out;
}

.about-section img:hover {
    transform: translateY(-10px);
}

.stat-box {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%),
        linear-gradient(135deg, #eadc9b 0%, #d4b55d 58%, #b98d33 100%);
    color: #241f16;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    animation: scaleIn 0.6s ease-out;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(212, 181, 93, 0.24);
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-box .text-danger {
    color: #dc3545 !important;
}

.stat-box p {
    font-size: 0.95rem;
    margin: 0;
    color: #3d3420;
}

/* ============= SERVICES SECTION ============= */
.services-section {
    padding: 3rem 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(220, 53, 69, 0.24), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(26, 115, 232, 0.18), transparent 30%),
        radial-gradient(circle at 52% 92%, rgba(37, 211, 102, 0.08), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        var(--section-dark-2) !important;
    background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
}

.service-card {
    background: var(--services-card-bg);
    padding: 1.35rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.055);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 22px 48px rgba(220, 53, 69, 0.22);
    border-top: 4px solid var(--primary-color);
}

.service-icon {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

.service-card h4 {
    color: var(--text-on-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted-on-dark);
    flex-grow: 1;
    margin-bottom: 0;
}

/* ============= WHY CHOOSE US SECTION ============= */
.why-choose-section {
    padding: 3rem 0;
    background:
        radial-gradient(circle at 84% 18%, rgba(220, 53, 69, 0.22), transparent 28%),
        radial-gradient(circle at 14% 14%, rgba(26, 115, 232, 0.15), transparent 30%),
        radial-gradient(circle at 52% 92%, rgba(37, 211, 102, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        var(--section-dark-3);
    background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
}

.why-choose-card {
    background: var(--why-card-bg);
    padding: 1.35rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
    animation: scaleIn 0.6s ease-out;
    height: 100%;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-choose-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.why-choose-card h4 {
    color: var(--text-on-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.why-choose-card p {
    color: var(--text-muted-on-dark);
    margin: 0;
    font-size: 0.95rem;
}

/* ============= BRANDS SECTION ============= */
.brands-section {
    padding: 3rem 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(90, 23, 34, 0.24), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(26, 115, 232, 0.15), transparent 30%),
        radial-gradient(circle at 52% 92%, rgba(37, 211, 102, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        var(--section-dark-4) !important;
    background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
}

.brand-box {
    background: var(--brands-card-bg);
    padding: 1.35rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    border-left: 4px solid transparent;
    animation: slideInRight 0.6s ease-out;
}

.brand-box:hover {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.1);
}

.brand-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.brand-box h5 {
    color: var(--text-on-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.brand-box p {
    color: var(--text-muted-on-dark);
    font-size: 0.9rem;
    margin: 0;
}

/* ============= GALLERY SECTION ============= */
.gallery-section {
    padding: 3rem 0;
    background:
        radial-gradient(circle at 50% 8%, rgba(26, 115, 232, 0.18), transparent 30%),
        radial-gradient(circle at 12% 18%, rgba(220, 53, 69, 0.18), transparent 28%),
        radial-gradient(circle at 88% 86%, rgba(37, 211, 102, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        var(--section-dark-1) !important;
    background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.6s ease-out;
}

.gallery-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-link {
    color: var(--white);
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-link:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(10, 14, 18, 0.88);
    backdrop-filter: blur(4px);
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox-image {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: var(--border-radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    object-fit: contain;
}

.gallery-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: var(--primary-color);
    border: 0;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-lightbox-close:hover {
    background: #b02a37;
    transform: scale(1.06);
}

body.lightbox-open {
    overflow: hidden;
}

/* ============= CONTACT SECTION ============= */
.contact-section {
    padding: 3rem 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(26, 115, 232, 0.17), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(220, 53, 69, 0.22), transparent 28%),
        radial-gradient(circle at 52% 92%, rgba(37, 211, 102, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        linear-gradient(135deg, #17212b 0%, #292436 56%, #4a1620 100%);
    background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
    color: var(--white);
}

.contact-info-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--contact-card-bg);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-left: 4px solid transparent;
    animation: slideInLeft 0.6s ease-out;
}

.contact-info-card:hover {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-info-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-info-card h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.35rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.8s ease-out;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.contact-form label {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .btn {
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* ============= MAP SECTION ============= */
.map-section {
    padding: 3rem 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(220, 53, 69, 0.22), transparent 28%),
        radial-gradient(circle at 16% 16%, rgba(26, 115, 232, 0.16), transparent 30%),
        radial-gradient(circle at 50% 92%, rgba(37, 211, 102, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px),
        var(--section-dark-2);
    background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.36);
    animation: scaleIn 0.8s ease-out;
    background: linear-gradient(135deg, #1f2630 0%, #273340 100%);
}

.map-link-panel {
    padding: 2.5rem 1.5rem;
}

.map-link-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.map-link-title {
    color: var(--text-on-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.map-link-address {
    color: var(--text-muted-on-dark);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.map-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background-color: #1a73e8;
    color: var(--white);
    border: none;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(26, 115, 232, 0.28);
}

.map-link-button:hover,
.map-link-button:focus {
    background-color: #1558b0;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(26, 115, 232, 0.36);
}

/* ============= FOOTER ============= */
.footer {
    background: var(--dark-surface-footer) !important;
    color: var(--white);
    padding: 2.5rem 0 1rem;
    margin-top: 0;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-tagline {
    color: var(--white);
    opacity: 0.9;
}

.footer-link {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social-link:hover {
    color: var(--white);
    transform: translateY(-5px);
}

.footer-social-link .bi-facebook {
    color: #1877f2;
}

.footer-social-link .bi-whatsapp {
    color: #25d366;
}

.footer-social-link:has(.bi-facebook):hover {
    background-color: #1877f2;
}

.footer-social-link:has(.bi-facebook):hover .bi-facebook,
.footer-social-link:has(.bi-whatsapp):hover .bi-whatsapp {
    color: var(--white);
}

.footer-social-link:has(.bi-whatsapp):hover {
    background-color: #25d366;
}

.footer hr {
    margin: 2rem 0 1rem;
}

/* ============= FLOATING WHATSAPP BUTTON ============= */
.whatsapp-button {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background-color: #25d366;
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    animation: slideInUp 0.6s ease-out;
}

.whatsapp-button:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

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

/* ============= BUTTON STYLES ============= */
.btn-danger {
    background-color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1ebe5d;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============= RESPONSIVE DESIGN ============= */

/* Extra Small Phones */
@media (max-width: 360px) {
    .navbar-brand {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 1.65rem;
    }

    .hero-content .lead {
        font-size: 0.9rem;
    }

    .hero-malay-name {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-card i {
        align-self: center;
    }
}

/* Large Phones */
@media (min-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
        max-width: none;
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-content .lead {
        font-size: 1.05rem;
    }

    .hero-malay-name {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .why-choose-card,
    .brand-box,
    .contact-form-card {
        padding: 1.5rem;
    }

    .stat-box {
        padding: 1.5rem;
    }

    .gallery-item img {
        height: 240px;
    }
}

/* Tablets */
@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.35rem;
    }

    .navbar-nav .nav-link {
        margin: 0 0.35rem;
        padding: 0.5rem 0.5rem !important;
    }

    .hero-section {
        min-height: 78vh;
        padding: 5rem 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .lead {
        font-size: 1.15rem;
    }

    .hero-malay-name {
        font-size: 1.15rem;
    }

    .hero-content .btn {
        width: auto;
    }

    .section-title {
        font-size: 2.35rem;
    }

    .about-section,
    .services-section,
    .why-choose-section,
    .brands-section,
    .gallery-section,
    .contact-section,
    .map-section {
        padding: 4rem 0;
    }

    .gallery-item img {
        height: 280px;
    }
}

/* Desktops */
@media (min-width: 992px) {
    .navbar-custom {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        padding: 0.5rem 0.75rem !important;
    }

    .hero-section {
        min-height: 100vh;
        background-attachment: fixed;
    }

    .hero-content {
        text-align: left;
    }

    .hero-content .d-flex {
        flex-direction: row;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content .lead {
        font-size: 1.25rem;
    }

    .hero-malay-name {
        font-size: 1.25rem;
    }

    .hero-image {
        max-width: 100%;
        margin-top: 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-section,
    .services-section,
    .why-choose-section,
    .brands-section,
    .gallery-section,
    .contact-section,
    .map-section {
        padding: 5rem 0;
    }

    .service-card,
    .why-choose-card,
    .brand-box,
    .contact-form-card {
        padding: 2rem;
    }

    .stat-box {
        padding: 2rem;
    }

    .stat-box h3 {
        font-size: 2.5rem;
    }

    .gallery-item img {
        height: 300px;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
        font-size: 1.8rem;
    }
}

/* Wide Desktops */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ============= UTILITY CLASSES ============= */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-dark {
    background: var(--dark-surface) !important;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

/* Smooth transitions on all interactive elements */
a, button, input, select, textarea {
    transition: var(--transition);
}

/* ============= ACCESSIBILITY ============= */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .service-card,
    .why-choose-card,
    .brand-box {
        border: 2px solid var(--dark-gray);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============= PRINT STYLES ============= */
@media print {
    .navbar,
    .whatsapp-button,
    .hero-section,
    .contact-form-card,
    .btn {
        display: none;
    }
    
    body {
        color: #000;
    }
}
