/* Custom variables for premium design system */
:root {
    --bg-main: #040914;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --accent-cyan: #00b4d8;
    --accent-blue: #0077b6;
    --accent-orange: #ff7043;
    --accent-orange-hover: #ff5722;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 20px rgba(0, 180, 216, 0.2);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Button & Link Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 180, 216, 0.4);
    background: linear-gradient(135deg, #00c4ec 0%, #008cc6 100%);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
    background-color: #20ba5a;
}

.btn-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 180, 216, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
    }
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 9, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(4, 9, 20, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: 0.05em;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 0.25em;
}

.navigation-menu {
    transition: var(--transition-smooth);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

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

.btn-call-header {
    background-color: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.5rem 1.2rem;
}

.btn-call-header:hover {
    background-color: var(--accent-cyan);
    color: var(--text-dark);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    background-image: url('assets/hero_plumber.png');
    background-size: cover;
    background-position: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 9, 20, 0.95) 0%, rgba(4, 9, 20, 0.75) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: linear-gradient(90deg, var(--accent-cyan) 0%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Hero Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 2.2rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: var(--shadow-accent);
}

.icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(0, 119, 182, 0.2) 100%);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Common Section Layout */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 5rem auto;
}

.section-subtitle {
    display: block;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent-cyan);
    margin: 0 auto 1.5rem auto;
    border-radius: 5px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* About Section */
.about-section {
    background-color: #060d1d;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-image-side {
    position: relative;
}

.decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -50px;
    left: -50px;
    z-index: 1;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 3;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.3);
}

.exp-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: 0.3rem;
}

.about-text-side {
    z-index: 2;
}

.about-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
}

.about-feat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.about-feat-item i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.about-feat-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Services Section */
.services-section {
    background-color: var(--bg-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img-container img {
    transform: scale(1.1);
}

.service-content {
    padding: 2.5rem 2rem;
    position: relative;
    flex-grow: 1;
}

.service-icon {
    position: absolute;
    top: -30px;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Why Us Section */
.why-section {
    background-color: #060d1d;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: scale(1.05);
    background: var(--bg-card-hover);
    border-color: rgba(0, 180, 216, 0.4);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 180, 216, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.6rem;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.why-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--bg-main);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 400%; /* Since there are 4 slides */
}

.carousel-slide {
    width: 25%; /* 100% / 4 */
    position: relative;
    height: 500px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(4, 9, 20, 0.95) 0%, rgba(4, 9, 20, 0) 100%);
    padding: 3rem 2rem 2rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-glass);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--text-dark);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

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

.dot.active {
    background: var(--accent-cyan);
    transform: scale(1.3);
}

/* Contact Section */
.contact-section {
    background-color: #060d1d;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-link-card:hover {
    transform: translateX(10px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.phone-card .contact-icon {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent-cyan);
}

.whatsapp-card .contact-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.maps-card .contact-icon {
    background: rgba(255, 112, 67, 0.1);
    color: var(--accent-orange);
}

.email-card .contact-icon {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}

.phone-card:hover { border-color: rgba(0, 180, 216, 0.4); }
.whatsapp-card:hover { border-color: rgba(37, 211, 102, 0.4); }
.maps-card:hover { border-color: rgba(255, 112, 67, 0.4); }
.email-card:hover { border-color: rgba(148, 163, 184, 0.4); }

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-details .value {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.1rem 0;
}

.contact-details .action-hint {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.whatsapp-card:hover .action-hint {
    color: #25d366;
}

/* Map Side */
.map-side {
    height: 100%;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%); /* Sleek dark maps theme styling */
}

/* Footer Section */
.site-footer {
    background-color: #03070f;
    border-top: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.copyright-row {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.credit-row {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-link {
    color: var(--accent-cyan);
    font-weight: 600;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Floating Mobile CTA (Only visible on mobile/tablet) */
.floating-cta-container {
    position: fixed;
    bottom: 20px;
    left: 5%;
    width: 90%;
    z-index: 999;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.float-phone {
    background: linear-gradient(135deg, #008cc6 0%, #0077b6 100%);
}

.float-whatsapp {
    background: #25d366;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-side {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-cta {
        display: none; /* Hide header CTA button on mobile */
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .navigation-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #040914;
        z-index: 1000;
        padding: 6rem 2rem 2rem 2rem;
        border-left: 1px solid var(--border-glass);
    }
    
    .navigation-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    /* Toggle active class bars animation */
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide {
        height: 350px;
    }
    
    .floating-cta-container {
        display: grid;
    }
    
    .section-container {
        padding: 5rem 1.5rem;
    }
    
    body {
        padding-bottom: 80px; /* Space for mobile sticky footer buttons */
    }
}
