/* ========================================
   HBService27 — Premium Redesign
   ======================================== */

:root {
    /* Refined color palette */
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);

    --accent: #f59e0b;
    --accent-light: #fbbf24;

    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --dark-600: #475569;

    --light-100: #f1f5f9;
    --light-200: #e2e8f0;
    --light-300: #cbd5e1;
    --light-400: #94a3b8;

    --white: #ffffff;
    --text-body: #334155;
    --text-muted: #64748b;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
}

/* =================== RESET & BASE =================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--primary);
    color: white;
}

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

/* =================== LAYOUT =================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-bg {
    background-color: var(--light-100);
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* =================== SECTION TITLES =================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title.left {
    text-align: left;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--dark-800);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-title.left p {
    margin: 0;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    padding: 18px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.02em;
}

.logo a span {
    color: var(--primary-light);
}

header.scrolled .logo a {
    color: var(--dark-800);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

header.scrolled .nav-links li a {
    color: var(--dark-700);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: scaleX(1);
}

.nav-links li a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

header.scrolled .nav-links li a:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
}

.nav-links li a.active {
    color: var(--primary-light);
}

header.scrolled .nav-links li a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255,255,255,0.1);
}

header.scrolled .hamburger {
    color: var(--dark-800);
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('photo/IMG-20230916-WA0005.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.75) 40%,
        rgba(16, 185, 129, 0.3) 100%
    );
    z-index: 1;
}

/* Animated grain texture on hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content h1 .hero-highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    opacity: 0.85;
    max-width: 560px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--primary-light);
}

.hero-badge i {
    font-size: 0.8rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator .scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .scroll-mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ================= STATS BAR ================= */
.stats-bar {
    background: var(--dark-800);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 48px 24px;
    position: relative;
    transition: var(--transition);
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.stat-item:hover {
    background: rgba(16, 185, 129, 0.05);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--light-400);
    font-weight: 400;
}

/* ================= SERVICES ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

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

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

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Keyframe for icons */
.service-card:hover .masonry-anim {
    animation: buildWall 0.8s ease;
}
.service-card:hover .paint-anim {
    animation: paintBrush 0.8s ease;
}
.service-card:hover .gutter-anim {
    animation: dropWater 0.8s ease;
}
.service-card:hover .window-anim {
    animation: shineWindow 0.8s ease;
}

@keyframes buildWall {
    0% { transform: scale(1.1) rotate(-5deg) translateY(0); }
    50% { transform: scale(1.15) rotate(-5deg) translateY(-8px); }
    100% { transform: scale(1.1) rotate(-5deg) translateY(0); }
}
@keyframes paintBrush {
    0% { transform: scale(1.1) rotate(-5deg); }
    33% { transform: scale(1.1) rotate(15deg); }
    66% { transform: scale(1.1) rotate(-15deg); }
    100% { transform: scale(1.1) rotate(-5deg); }
}
@keyframes dropWater {
    0% { transform: scale(1.1) rotate(-5deg) translateY(-4px); opacity: 0.5; }
    50% { transform: scale(1.15) rotate(-5deg) translateY(4px); opacity: 1; }
    100% { transform: scale(1.1) rotate(-5deg) translateY(0); opacity: 1; }
}
@keyframes shineWindow {
    0% { filter: brightness(1); transform: scale(1.1) rotate(-5deg); }
    50% { filter: brightness(1.3); transform: scale(1.15) rotate(-5deg); }
    100% { filter: brightness(1); transform: scale(1.1) rotate(-5deg); }
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--dark-800);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-image {
    height: 180px;
    width: 100%;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    margin-top: 12px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card:hover .service-image {
    transform: scale(1.03);
}

/* ================= ABOUT ================= */
.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Decorative element behind about image */
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}

.about-image:hover::before {
    top: -12px;
    right: -12px;
    opacity: 0.5;
}

.carousel {
    width: 100%;
    height: 420px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

/* Carousel navigation dots */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

.about-content {
    flex: 1;
}

.about-content > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-list {
    list-style: none;
    margin-top: 24px;
}

.about-list li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--dark-700);
}

.about-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ================= GALLERY ================= */
.gallery {
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition-fast);
    border: none;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================= TESTIMONIALS ================= */
.testimonials {
    background: var(--dark-800);
    color: white;
    overflow: hidden;
}

.testimonials .section-title h2 {
    color: white;
}

.testimonials .section-title h2 span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-slider {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    min-height: 280px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.quote-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
}

.testimonial-slide p {
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonial-slide h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-slide span {
    color: var(--primary-light);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Star rating */
.testimonial-stars {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--primary-glow);
}

.dot:hover {
    background: rgba(255,255,255,0.4);
}

/* ================= CONTACT ================= */
.contact-flex {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-900) 100%);
    padding: 40px 36px;
    border-radius: var(--radius);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    opacity: 0.3;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.12);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.info-item h4 {
    color: white;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--light-400);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: var(--light-300);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.contact-form {
    flex: 1;
    background: white;
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.form-group {
    margin-bottom: 20px;
}

.flex-group {
    display: flex;
    gap: 16px;
}

.flex-group input {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--light-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.98rem;
    background-color: var(--light-100);
    transition: var(--transition);
    color: var(--text-body);
}

input::placeholder, textarea::placeholder {
    color: var(--light-400);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px;
    font-size: 1.05rem;
}

.form-status {
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
    display: none;
    padding: 12px;
    border-radius: var(--radius-sm);
}

.form-status.success {
    color: var(--primary);
    display: block;
    background: rgba(16, 185, 129, 0.08);
}

.form-status.error {
    color: #ef4444;
    display: block;
    background: rgba(239, 68, 68, 0.08);
}

.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.map-container iframe {
    display: block;
}

/* ================= FOOTER ================= */
footer {
    background: var(--dark-900);
    color: white;
    padding: 80px 0 24px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.footer-logo h3 span {
    color: var(--primary);
}

.footer-logo p {
    color: var(--light-400);
    max-width: 320px;
    line-height: 1.7;
}

.footer-links h4,
.footer-services h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-links h4::after,
.footer-services h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
    color: var(--light-400);
    font-size: 0.95rem;
}

.footer-links ul li a {
    color: var(--light-400);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-links ul li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 0;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--light-400);
    font-size: 0.88rem;
}

/* ================= ANIMATIONS ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Smooth fade for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= MOBILE MENU OVERLAY ================= */
.mobile-bottom-nav {
    display: none;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================= RESPONSIVE — TABLET (max 991px) ================= */
@media (max-width: 991px) {
    .about-flex,
    .contact-flex {
        flex-direction: column;
    }

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

    .section-title h2 {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================= RESPONSIVE — MOBILE (max 768px) ================= */
@media (max-width: 768px) {

    /* ---- Hamburger Button ---- */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 1.3rem;
        z-index: 1001;
        -webkit-tap-highlight-color: transparent;
    }

    /* ---- Slide-in Mobile Menu ---- */
    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
        z-index: 999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 100px 32px 40px;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        color: var(--dark-700) !important;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 16px 12px;
        border-radius: var(--radius-sm);
        width: 100%;
        border-bottom: 1px solid var(--light-200);
        transition: var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-links li a:hover,
    .nav-links li a:active {
        background: rgba(16, 185, 129, 0.08);
        color: var(--primary) !important;
    }

    .nav-links li a.active {
        color: var(--primary) !important;
        background: rgba(16, 185, 129, 0.06);
    }

    /* ---- Header – mobile ---- */
    header {
        background: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
        box-shadow: 0 1px 12px rgba(0,0,0,0.06);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .logo a {
        color: var(--dark-800) !important;
        font-size: 1.4rem;
    }

    header .hamburger {
        color: var(--dark-800);
    }

    /* ---- General Mobile ---- */
    body {
        padding-bottom: 0;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* ---- Hero ---- */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 80px;
        padding-bottom: 40px;
        background-attachment: scroll;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        padding: 15px 24px;
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    /* ---- Stats ---- */
    .stats-bar {
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 28px 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.82rem;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    /* ---- Services – Vertical stack ---- */
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 20px;
        min-width: unset;
    }

    .service-card::before {
        display: none;
    }

    .service-card:hover {
        transform: none;
    }

    .service-icon {
        margin: 0 auto 16px;
        width: 60px;
        height: 60px;
        font-size: 24px;
        border-radius: 16px;
    }

    .service-card h3 {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .service-image {
        width: 100%;
        height: 180px;
        border-radius: 12px;
        margin-top: auto;
    }

    /* ---- About ---- */
    .about-flex {
        flex-direction: column-reverse;
        gap: 28px;
    }

    .contact-flex {
        flex-direction: column;
        gap: 28px;
    }

    .about-image {
        display: none;
    }

    .about-content > p {
        font-size: 0.95rem;
    }

    .about-list li {
        font-size: 0.95rem;
    }

    /* ---- Gallery ---- */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    /* ---- Testimonials ---- */
    .testimonial-slider {
        min-height: 320px;
    }

    .testimonial-slide {
        padding: 24px 20px;
    }

    .testimonial-slide p {
        font-size: 1rem;
    }

    /* ---- Contact ---- */
    .contact-info,
    .contact-form {
        padding: 24px 20px;
    }

    .info-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
    }

    .info-item i {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .info-item h4 {
        font-size: 0.95rem;
    }

    .info-item p {
        font-size: 0.88rem;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    .flex-group {
        flex-direction: column;
        gap: 16px;
    }

    input, select, textarea {
        padding: 14px 16px;
        font-size: 1rem; /* prevents iOS zoom */
    }

    .submit-btn {
        padding: 15px;
        font-size: 1rem;
    }

    .map-container iframe {
        height: 250px;
    }

    /* ---- Footer ---- */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-logo p {
        margin: 0 auto;
    }

    .footer-links h4::after,
    .footer-services h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a::before {
        display: none;
    }

    footer {
        padding: 50px 0 20px;
    }

    /* ---- Lightbox ---- */
    .lightbox {
        padding: 12px;
    }

    .lightbox img {
        max-width: 96vw;
        max-height: 80vh;
        border-radius: var(--radius-sm);
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ================= RESPONSIVE — SMALL MOBILE (max 480px) ================= */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .section-title h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .btn {
        padding: 13px 22px;
        font-size: 0.93rem;
    }

    .nav-menu {
        width: 260px;
    }

    .testimonial-slider {
        min-height: 350px;
    }
}


/* ================= DARK / CLEAN SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-100);
}

::-webkit-scrollbar-thumb {
    background: var(--light-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-400);
}

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

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ================= SMOOTH PAGE-LEVEL TRANSITIONS ================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
