/* =========================================
   SIMCO POWER - WHITE THEME (Deep Blue + Orange)
   Complete Style.css - FINAL VERSION
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #0B1739;
    --primary-light: #1B2A4A;
    --primary-hover: #152347;
    
    --accent: #FF6B00;
    --accent-hover: #E55A00;
    --accent-light: #FFF4EC;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-section: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    
    --text-dark: #0F172A;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    
    --whatsapp: #25D366;
    --success: #16A34A;
    --warning: #F59E0B;
    
    --shadow-sm: 0 1px 3px rgba(11, 23, 57, 0.08);
    --shadow-md: 0 4px 12px rgba(11, 23, 57, 0.1);
    --shadow-lg: 0 10px 30px rgba(11, 23, 57, 0.15);
    --shadow-accent: 0 8px 20px rgba(255, 107, 0, 0.3);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-white);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); color: var(--text-white); }

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}
h2 {
    font-size: 32px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--text-dark);
}
.bg-dark h2, .footer h2, .footer h3 { color: var(--text-white); }

a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   LOADING SPINNER
   ========================================= */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 13px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    text-align: center;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}
.btn-primary.btn-large { padding: 16px 40px; font-size: 14px; }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 11px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    border: 2px solid var(--primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-small {
    display: inline-block;
    background: transparent;
    color: var(--text-body);
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid var(--border-medium);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-small:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--whatsapp);
    color: #fff;
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
    background-color: var(--primary);
    padding: 10px 0;
    font-size: 12.5px;
    color: #fff;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-left { display: flex; gap: 22px; flex-wrap: wrap; }
.top-left span { color: rgba(255,255,255,0.85); }
.top-left i { color: var(--accent); margin-right: 6px; }
.top-right { display: flex; gap: 15px; }
.top-right a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.top-right a:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-2px);
}

/* =========================================
   NAVBAR + LOGO (Image + Text)
   ========================================= */
.navbar {
    background: var(--bg-white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ----- LOGO ----- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.logo:hover { transform: translateY(-1px); }

.logo-img {
    height: 55px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1.5px;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.logo-text i {
    color: var(--accent);
    margin-right: 6px;
    font-size: 24px;
    animation: logoBolt 2s ease-in-out infinite;
}

@keyframes logoBolt {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.logo-text span {
    color: var(--accent);
    margin-left: 6px;
    font-weight: 900;
}

/* ----- NAV LINKS ----- */
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: var(--text-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-btn { display: flex; align-items: center; gap: 18px; }
.menu-icon {
    display: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
}
.page-header h1 {
    font-size: 44px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #fff;
    position: relative;
}
.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    position: relative;
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-section {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(11,23,57,0.95) 0%, rgba(11,23,57,0.85) 50%, rgba(11,23,57,0.55) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
}
.hero-subtitle {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 18px;
    text-transform: uppercase;
    animation: slideUp 0.8s ease;
}
.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    color: #fff;
    text-transform: uppercase;
    animation: slideUp 1s ease;
}
.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    line-height: 1.7;
    animation: slideUp 1.2s ease;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideUp 1.4s ease;
}
.hero-buttons .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.hero-buttons .btn-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.hero-arrow:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.hero-arrow.left { left: 25px; }
.hero-arrow.right { right: 25px; }

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dots span.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}
.hero-dots span:hover { background: #fff; }

/* =========================================
   SECTION HEADER
   ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
    flex-wrap: wrap;
    gap: 15px;
}
.section-header h2 {
    position: relative;
    padding-bottom: 12px;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-header p {
    color: var(--text-body);
    font-size: 14px;
    margin-top: 10px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 55px;
    align-items: start;
}
.about-text h2 { margin-bottom: 22px; }
.about-text p {
    color: var(--text-body);
    margin-bottom: 25px;
    font-size: 14.5px;
    line-height: 1.9;
}

/* =========================================
   STATS
   ========================================= */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 70px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    position: relative;
}
.about-stats::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.stat-item {
    text-align: center;
    background: var(--bg-light);
    padding: 28px 15px 22px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

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

.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.15);
    background: var(--bg-white);
}
.stat-item i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s ease;
}
.stat-item:hover i { transform: scale(1.15) rotate(-5deg); }
.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    margin: 8px 0;
    line-height: 1;
    display: inline-block;
    letter-spacing: -1.5px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: var(--accent-hover);
}
.stat-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
}
.stat-item:nth-child(1) .stat-number::after,
.stat-item:nth-child(2) .stat-number::after,
.stat-item:nth-child(3) .stat-number::after {
    content: '+';
    font-size: 28px;
    margin-left: 2px;
    color: var(--accent);
    font-weight: 700;
    vertical-align: top;
    line-height: 1;
}
.stat-item:nth-child(4) .stat-number::after { content: ''; }

/* =========================================
   ABOUT OWNER
   ========================================= */
.about-owner {
    background: var(--bg-white);
    padding: 32px 28px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
}
.owner-img {
    width: 100%;
    max-width: 260px;
    height: 320px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--accent);
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(11,23,57,0.15);
    display: block;
}
.about-owner h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.about-owner > p {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 15px;
}
.owner-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.owner-contact a {
    color: var(--text-body);
    font-size: 13px;
}
.owner-contact a i { color: var(--accent); margin-right: 6px; }
.owner-contact a:hover { color: var(--accent); }
.owner-desc {
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 22px;
    line-height: 1.7;
    text-align: left;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}
.owner-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   TEAM SECTION (Supports 10+ cards)
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.team-card {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.team-card img {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--border-light);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: var(--bg-light);
}
.team-card:hover img { border-color: var(--accent); }
.team-card h3 {
    font-size: 14.5px;
    margin-bottom: 4px;
    color: var(--text-dark);
}
.team-card p {
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 8px;
}
.team-phone {
    display: block;
    color: var(--text-body);
    font-size: 12.5px;
    margin-bottom: 5px;
}
.team-phone::before { content: '\1F4DE  '; color: var(--accent); }
.team-phone:hover { color: var(--accent); }
.team-card .btn-outline-small { margin-top: auto; }

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}
.services-grid-page { grid-template-columns: repeat(3, 1fr); }

.service-card {
    background: var(--bg-white);
    padding: 28px 22px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.service-card i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}
.service-card h3 {
    font-size: 14px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dark);
}
.service-card ul li {
    color: var(--text-body);
    font-size: 12.5px;
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.service-card ul li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
    top: 7px;
}

/* =========================================
   WHY SECTION
   ========================================= */
.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}
.why-text h2 {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}
.why-text h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}
.why-text > p {
    color: var(--text-body);
    margin-bottom: 25px;
    font-size: 14.5px;
}
.why-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.why-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-dark);
    font-weight: 500;
}
.why-list i {
    color: var(--accent);
    font-size: 17px;
    flex-shrink: 0;
}
.why-image {
    height: 400px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%),
                url('../images/why-bg.jpg') no-repeat center center/cover;
    background-blend-mode: overlay;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.why-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.project-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card h3 {
    padding: 18px 22px 6px;
    font-size: 17px;
    color: var(--text-dark);
}
.project-card p {
    padding: 0 22px;
    color: var(--text-body);
    font-size: 13px;
    margin-bottom: 6px;
}
.project-card p i { color: var(--accent); margin-right: 5px; }

.status {
    display: inline-block;
    margin: 10px 22px 20px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status.completed {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.3);
}
.status.inprogress {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    justify-content: center;
}
.gallery-filters button {
    background: var(--bg-white);
    color: var(--text-body);
    padding: 9px 20px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.gallery-filters button .count {
    background: var(--bg-section);
    color: var(--text-muted);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.gallery-filters button:hover,
.gallery-filters button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}
.gallery-filters button.active .count,
.gallery-filters button:hover .count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.gallery-home { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.gallery-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11,23,57,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-overlay i {
    color: #fff;
    font-size: 26px;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11,23,57,0.95), transparent);
    color: #fff;
    padding: 20px 12px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.gallery-view-all { text-align: center; margin-top: 45px; }

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.gallery-empty i {
    font-size: 60px;
    color: var(--border-medium);
    margin-bottom: 20px;
    display: block;
}
.gallery-empty p { font-size: 15px; }

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11,23,57,0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 3px solid var(--accent);
}
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    line-height: 1;
    border: none;
}
.lightbox-close:hover { background: var(--accent); transform: rotate(90deg); }

/* =========================================
   DESIGNED HOMES SECTION
   (Building → Content → Services(LEFT) → Owner(RIGHT))
   ========================================= */
.designed-homes-section { background: var(--bg-white); }
.designed-homes-container {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
    gap: 25px;
    align-items: stretch;
    background: var(--bg-light);
    padding: 32px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

/* Force order: Services left, Owner right */
.designed-homes-container .dh-services { order: 3; }
.designed-homes-container .dh-owner { order: 4; }

/* ----- Building ----- */
.dh-building {
    position: relative;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-lg);
    order: 1;
}
.dh-building img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.dh-building:hover img { transform: scale(1.08); }

.dh-building-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(11,23,57,0.98) 0%, rgba(11,23,57,0.7) 60%, transparent 100%);
    padding: 25px 18px 18px;
    text-align: center;
    color: #fff;
}
.dh-building-overlay i {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
}
.dh-building-overlay h3 {
    font-size: 17px;
    margin-bottom: 3px;
    color: #fff;
}
.dh-building-overlay p {
    font-size: 11.5px;
    color: rgba(255,255,255,0.8);
}

/* ----- Content ----- */
.dh-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}
.dh-content h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 12px;
}
.dh-content h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}
.dh-content p {
    color: var(--text-body);
    font-size: 13.5px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ----- Services (LEFT) ----- */
.dh-services {
    background: var(--bg-white);
    padding: 22px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dh-services:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.dh-services h4 {
    font-size: 13px;
    margin-bottom: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dh-services ul li {
    font-size: 12px;
    color: var(--text-body);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.dh-services ul li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
    top: 6px;
}

/* ----- Owner (RIGHT) - BIG PHOTO ----- */
.dh-owner {
    text-align: center;
    padding: 0 0 20px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.dh-owner:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.dh-owner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-bottom: 4px solid var(--accent);
    margin-bottom: 18px;
    flex-shrink: 0;
}
.dh-owner h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
    padding: 0 15px;
}
.dh-owner p {
    color: var(--text-body);
    font-size: 11.5px;
    margin-bottom: 6px;
    line-height: 1.5;
    padding: 0 15px;
}
.dh-owner p:first-of-type {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}
.dh-owner p i { color: var(--accent); margin-right: 4px; }
.dh-owner .btn-primary {
    padding: 10px 22px;
    font-size: 11.5px;
    margin-top: auto;
    margin-left: 15px;
    margin-right: 15px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
}
.contact-info h2 {
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}
.contact-info > p {
    color: var(--text-body);
    margin-bottom: 25px;
    font-size: 13.5px;
}

.info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.info-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.info-item i {
    font-size: 18px;
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}
.info-item p {
    color: var(--text-body);
    font-size: 13px;
    line-height: 1.6;
}

.business-hours {
    margin-top: 22px;
    padding: 18px;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.business-hours h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-dark);
}
.business-hours p {
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 4px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,107,0,0.1);
}
.contact-form select { cursor: pointer; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { margin-top: 5px; }
.contact-form button i { margin-right: 8px; }

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    min-height: 400px;
}
.contact-map iframe {
    border-radius: 10px;
    border: none;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--primary);
    padding: 65px 0 0;
    color: rgba(255,255,255,0.75);
    position: relative;
    margin-top: 0;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
}
.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: 35px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col .logo {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-col .logo-img {
    height: 45px;
    max-width: 160px;
    filter: brightness(0) invert(1);
}
.footer-col .logo-text {
    color: #fff;
    font-size: 20px;
    letter-spacing: 1px;
}
.footer-col .logo-text i { color: var(--accent); margin-right: 5px; font-size: 18px; }
.footer-col .logo-text span { color: var(--accent); }

.footer-col p {
    color: rgba(255,255,255,0.65);
    font-size: 12.5px;
    margin-bottom: 8px;
    line-height: 1.8;
}
.footer-col h3 {
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 12.5px;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-col p i { color: var(--accent); margin-right: 8px; width: 14px; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255,107,0,0.3);
}

.footer-bottom { padding: 22px 0; background: rgba(0,0,0,0.15); }
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,0.55); font-size: 12px; }

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}
.whatsapp-float .main-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp);
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    border: none;
    font-family: inherit;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}
.whatsapp-float .main-btn:hover {
    transform: scale(1.05);
    background: #1ebe5d;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float .wa-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(11,23,57,0.2);
    width: 240px;
    border: 1px solid var(--border-light);
}
.whatsapp-float .wa-menu.active {
    display: flex;
    animation: slideUpMenu 0.3s ease;
}
@keyframes slideUpMenu {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.whatsapp-float .wa-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--text-dark);
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 500;
}
.whatsapp-float .wa-menu a:hover { background: var(--bg-light); }
.whatsapp-float .wa-menu a i { color: var(--whatsapp); font-size: 18px; }

/* =========================================
   FADE-IN ANIMATION
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ----- 1200px ----- */
@media (max-width: 1200px) {
    .team-grid { grid-template-columns: repeat(4, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    
    .designed-homes-container { 
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
    .dh-building { 
        order: 1; 
        height: 320px;
        grid-column: 1 / 2;
    }
    .dh-content { 
        order: 2;
        grid-column: 2 / 3;
    }
    .dh-services { 
        order: 3;
        grid-column: 1 / 2;
    }
    .dh-owner { 
        order: 4;
        grid-column: 2 / 3;
    }
    .dh-owner img { height: 280px; }
}

/* ----- 1024px ----- */
@media (max-width: 1024px) {
    .about-container,
    .why-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .designed-homes-container {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .dh-building { 
        order: 1; 
        height: 320px;
        grid-column: auto;
    }
    .dh-content { 
        order: 2;
        grid-column: auto;
    }
    .dh-services { 
        order: 3;
        grid-column: auto;
    }
    .dh-owner { 
        order: 4;
        grid-column: auto;
    }
    .dh-owner img { height: 340px; }

    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 44px; }
    .why-list { grid-template-columns: repeat(2, 1fr); }
    .services-grid-page { grid-template-columns: repeat(2, 1fr); }
    
    .about-stats {
        margin-top: 55px;
        padding-top: 25px;
    }
    .stat-number { font-size: 38px; }
    .stat-item:nth-child(1) .stat-number::after,
    .stat-item:nth-child(2) .stat-number::after,
    .stat-item:nth-child(3) .stat-number::after {
        font-size: 24px;
    }

    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .logo-img { height: 48px; max-width: 150px; }
    .logo-text { font-size: 22px; }
    .logo-text i { font-size: 20px; }
}

/* ----- 768px ----- */
@media (max-width: 768px) {
    .section-padding { padding: 55px 0; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 25px;
        border-bottom: 3px solid var(--accent);
        gap: 18px;
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .menu-icon { display: block; }
    .nav-links a { font-size: 13px; }

    .hero-title { font-size: 30px; }
    .hero-section { min-height: 75vh; }
    .hero-desc { font-size: 14px; }
    .hero-arrow { display: none; }
    .hero-subtitle { font-size: 11px; letter-spacing: 3px; }

    h2 { font-size: 24px; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .page-header h1 { font-size: 28px; }
    .page-header { padding: 55px 0; }

    .team-grid,
    .services-grid,
    .projects-grid,
    .services-grid-page { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-home { grid-template-columns: repeat(2, 1fr); }
    
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .why-list { grid-template-columns: 1fr; }
    .why-image { height: 250px; }

    .designed-homes-container { padding: 22px; gap: 22px; }
    .dh-building { height: 280px; }
    .dh-owner img { height: 320px; }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social { justify-content: center; }
    .footer-col .logo { justify-content: center; }
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float .main-btn span { display: none; }
    .whatsapp-float .main-btn {
        padding: 16px;
        border-radius: 50%;
    }
    .whatsapp-float .main-btn i { font-size: 22px; }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        left: 20px;
    }

    .owner-img {
        max-width: 100%;
        height: 400px;
        object-position: center top;
    }
    .team-card img {
        height: 260px;
        object-position: center top;
    }
    .team-card { padding: 14px; }
    .about-owner { padding: 25px 20px; }

    .about-stats {
        margin-top: 45px;
        padding-top: 22px;
        gap: 14px;
    }
    .stat-item { padding: 22px 12px 18px; }
    .stat-number { font-size: 34px; }
    .stat-item:nth-child(1) .stat-number::after,
    .stat-item:nth-child(2) .stat-number::after,
    .stat-item:nth-child(3) .stat-number::after {
        font-size: 22px;
    }
    .stat-item i { font-size: 24px; }
    .stat-item span { font-size: 11px; }

    .logo-img { height: 42px; max-width: 120px; }
    .logo-text { font-size: 18px; letter-spacing: 1px; }
    .logo-text i { font-size: 16px; }
}

/* ----- 480px ----- */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 24px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline { width: 100%; }
    
    .btn-primary,
    .btn-outline,
    .btn-whatsapp { 
        width: 100%; 
        text-align: center; 
        justify-content: center; 
    }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-home { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    
    .team-grid,
    .services-grid,
    .projects-grid { 
        grid-template-columns: 1fr; 
    }
    
    .owner-btns { flex-direction: column; }
    .top-left { flex-direction: column; gap: 5px; font-size: 11px; }
    .top-right { gap: 10px; }
    .top-right a { width: 26px; height: 26px; font-size: 12px; }
    
    .owner-img { height: 380px; }
    .team-card img { height: 280px; }
    .dh-owner img { height: 300px; }
    .dh-building { height: 240px; }

    .about-stats {
        margin-top: 40px;
        padding-top: 20px;
    }
    .stat-number { font-size: 30px; }
    .stat-item span { font-size: 10.5px; }
    .stat-item { padding: 20px 10px 16px; }
    .stat-item:nth-child(1) .stat-number::after,
    .stat-item:nth-child(2) .stat-number::after,
    .stat-item:nth-child(3) .stat-number::after {
        font-size: 20px;
    }

    .logo { gap: 8px; }
    .logo-img { height: 38px; max-width: 100px; }
    .logo-text { font-size: 16px; letter-spacing: 0.5px; }
    .logo-text i { font-size: 14px; margin-right: 4px; }
}