/* ===== CSS Variables - DARK MODE ===== */
:root {
    --primary: #00B4D8;
    --primary-dark: #0096B4;
    --primary-glow: rgba(0, 180, 216, 0.3);
    --secondary: #0D1B2A;
    --accent: #FFB800;
    --accent-alt: #00D26A;
    --text: #E0E0E0;
    --text-light: #A0A0A0;
    --text-dark: #ffffff;
    --bg: #0D1B2A;
    --bg-alt: #1B2838;
    --bg-card: #1B2838;
    --bg-card-hover: #243447;
    --border: #2D3E50;
    --success: #00D26A;
    --gradient: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    --gradient-dark: linear-gradient(135deg, #1B2838 0%, #0D1B2A 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
    border-color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-dark);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(0, 180, 216, 0.1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.header-cta:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(0, 119, 182, 0.7) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid rgba(0, 180, 216, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-features {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hero-feature svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

/* ===== Client Types Badge ===== */
.client-types {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.client-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.client-badge svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* ===== Section Styling ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ===== Services Overview ===== */
.services-overview {
    padding: 100px 0;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.service-card:hover .service-link {
    color: var(--accent);
}

/* ===== Why Us Section ===== */
.why-us {
    padding: 100px 0;
    background: var(--bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-content .section-tag {
    text-align: left;
}

.why-us-content h2 {
    margin-bottom: 20px;
}

.why-us-content > p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.why-us-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.why-feature {
    display: flex;
    gap: 16px;
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.why-feature h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.why-feature p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--gradient);
    color: white;
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.experience-badge .years {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===== Emergency CTA ===== */
.emergency-cta {
    background: var(--gradient);
    padding: 60px 0;
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.emergency-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

.emergency-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.emergency-text {
    flex: 1;
    color: white;
}

.emergency-text h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 8px;
}

.emergency-text p {
    opacity: 0.9;
    max-width: 500px;
}

.emergency-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.emergency-phone:hover {
    transform: scale(1.05);
}

.phone-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* ===== Service Areas ===== */
.service-areas {
    padding: 100px 0;
    background: var(--bg-alt);
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.area-tag {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.area-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    color: var(--text);
    padding: 80px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.footer-brand p {
    color: var(--text-light);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

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

.footer-contact address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.8;
}

.footer-contact address p {
    margin-bottom: 16px;
}

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

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
}

/* ===== Page Header ===== */
.page-header {
    padding: 140px 0 60px;
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    color: white;
    margin-bottom: 12px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.125rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.875rem;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ===== About Page ===== */
.about-content {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* ===== Services Page ===== */
.services-page {
    padding: 100px 0;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.services-intro p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ===== Service Category Tabs ===== */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-btn.residential.active {
    background: var(--success);
    border-color: var(--success);
}

.tab-btn.commercial.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--secondary);
}

/* ===== Services List ===== */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.services-list .service-item {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 280px;
    max-width: 100%;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.service-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.service-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Service Type Badges - Enhanced Visibility */
.service-badge {
    position: absolute;
    top: 32px;
    right: 32px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.service-badge.residential {
    background: #00D26A;
    color: #ffffff;
    border: 2px solid #00ff7f;
}

.service-badge.commercial {
    background: #FFB800;
    color: #1a1a1a;
    border: 2px solid #ffd700;
    text-shadow: none;
}

.service-badge.both {
    background: #00B4D8;
    color: #ffffff;
    border: 2px solid #00d4ff;
}

/* Hide sections for tab filtering - REVERT OPTION */
/* To disable category filtering, remove these classes from HTML */
.service-item[data-category="residential"] { display: block; }
.service-item[data-category="commercial"] { display: block; }
.service-item[data-category="both"] { display: block; }

.services-list.filter-residential .service-item[data-category="commercial"] { display: none; }
.services-list.filter-commercial .service-item[data-category="residential"] { display: none; }

/* ===== Contact Page ===== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form-wrapper h2 {
    margin-bottom: 12px;
}

.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-info h3 {
    margin-bottom: 24px;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.info-item p,
.info-item a {
    color: var(--text-light);
}

.info-item a:hover {
    color: var(--primary);
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.gallery-grid {
    display: grid;
    gap: 40px;
}

.gallery-project {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 24px;
}

.gallery-project h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-project h3 svg {
    color: var(--primary);
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.project-image {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.project-image:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .why-us-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .why-us-image {
        order: -1;
    }
    
    .experience-badge {
        bottom: auto;
        top: -30px;
        left: auto;
        right: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav,
    .header-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .client-types {
        flex-direction: column;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-icon {
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .service-tabs {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .service-card {
        padding: 32px 24px;
    }
}