html, body {
    overflow-x: hidden; /* This kills the horizontal scrollbar */
    width: 100%;
    position: relative;
}

/* --- CSS Variables & Reset --- */
:root {
    --primary: #0b5fa5;          /* Main Brand Blue */
    --primary-dark: #063d6b;     /* Darker Blue */
    --secondary: #f5a623;        /* Accent Orange */
    --text-dark: #1a1a1a;        /* Heading Text */
    --text-body: #555555;        /* Body Text */
    --light-bg: #f8f9fa;         /* Light Gray BG */
    --white: #ffffff;
    --nav-height: 80px;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--light-bg); }

.sub-heading {
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px 0 25px 0;
}

.center-divider { margin: 15px auto 40px auto; }
.text-center { text-align: center; }

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
/*  */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Optional Logo Image */
.logo-img {
    width: 55px;
    height: auto;
}

/* Main Logo Text Wrapper */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

/* POWERLOGIC Main Line */
.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* POWER Gradient */
.power {
    background: linear-gradient(90deg, #3db2ff, #0b5fa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property */
}

/* LOGIC Metallic Gradient */
.logic {
    /* background: linear-gradient(90deg, #cccccc, #555555); */
    background: #f5a623;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property */
}

/* AUTOMATION */
.logo-sub,.sub-text {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    margin-top: 4px;
}

/* When navbar scrolls */
nav.scrolled .logo-sub {
    color: var(--primary);
}

.logo-text span { color: var(--secondary); }

nav.scrolled .logo-text { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }

.nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

nav.scrolled .nav-link { color: var(--text-dark); }
nav.scrolled .nav-link:hover { color: var(--primary); }

.btn-contact {
    padding: 10px 25px;
    border: 2px solid var(--secondary);
    border-radius: 50px;
    color: var(--white) !important;
}

.btn-contact:hover {
    background: var(--secondary);
    color: var(--white) !important;
}

nav.scrolled .btn-contact {
    border-color: var(--primary);
    color: var(--primary) !important;
}
nav.scrolled .btn-contact:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}
nav.scrolled .bar { background-color: var(--text-dark); }

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    z-index: 999;
}

.mobile-menu.active { top: 0; }

.mobile-nav-links li { margin: 25px 0; text-align: center; }
.mobile-nav-links a { font-size: 1.5rem; color: var(--white); font-weight: 700; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(2, 27, 48, 0.8), rgba(11, 95, 165, 0.7));
}

.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero .highlight { color: var(--secondary); }
.hero p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.9; }

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    margin: 10px;
}

.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: #d48806; transform: translateY(-3px); }

.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

.scroll-down {
    position: absolute;
    bottom: 30px;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- About Section --- */
.about-container { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.feature-list li { margin-bottom: 10px; font-weight: 600; color: var(--text-dark); }
.feature-list i { color: var(--secondary); margin-right: 10px; }

.about-img { flex: 1; position: relative; }
.about-img img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}
.experience-badge .years { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.experience-badge .text { font-size: 0.9rem; line-height: 1.2; font-weight: 600; }

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item i { font-size: 2.5rem; margin-bottom: 15px; color: var(--secondary); }
.stat-item h3 { font-size: 3rem; margin-bottom: 5px; color: var(--white); }
.stat-item p { font-size: 1rem; text-transform: uppercase; opacity: 0.9; }

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--secondary);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(11, 95, 165, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .icon-box { background: var(--primary); color: var(--white); }
.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; }

/* --- Contact Section --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }

.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item .icon {
    width: 50px; height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group { position: relative; margin-bottom: 25px; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
    background: transparent;
}

.form-group label {
    position: absolute;
    left: 15px; top: 15px;
    color: #999;
    pointer-events: none;
    transition: var(--transition);
    background: var(--white);
    padding: 0 5px;
}

.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }

/* Floating Label Animation */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.submit-btn:hover { background: var(--primary-dark); }
#formMessage { margin-top: 15px; text-align: center; font-weight: 600; }

/* --- Testimonials --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary);
}
.testimonial-card p { font-style: italic; margin-bottom: 20px; }
.client-info h4 { font-size: 1.1rem; color: var(--primary); }
.client-info span { font-size: 0.9rem; color: #777; }

/* --- Footer --- */
footer { background: #111827; color: #aaa; padding: 70px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }

.social-links a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    color: var(--white); border-radius: 50%; margin-right: 10px;
    transition: 0.3s;
}
.social-links a:hover { background: var(--secondary); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20b85a; }

/* --- Responsive --- */
/* =========================================
   RESPONSIVE MEDIA QUERIES (ADD AT BOTTOM)
   ========================================= */

/* Tablet & Smaller (Max-Width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    /* Force 2 columns on tablet for stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Devices (Max-Width: 768px) */
@media (max-width: 768px) {
    
    /* --- Navigation Fixes --- */
    /* Hide Desktop Links */
    .nav-links {
        display: none !important;
    }

    /* Show Hamburger */
    .hamburger {
        display: block;
        z-index: 1001;
    }

    /* Adjust Logo size for mobile 
    .logo-text {
        font-size: 1.2rem;
    }
*/
.logo-main {
    font-size: 1.3rem;
}

.logo-sub {
    font-size: 0.55rem;
    letter-spacing: 4px;
}

/*  */
    /* --- Hero Section Fixes --- */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%; /* Full width buttons on mobile */
        margin: 0;
    }

    /* --- General Section Spacing --- */
    .section-padding {
        padding: 60px 0; /* Reduce padding from 100px */
    }

    /* --- About Section Stacking --- */
    .about-container {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
        margin-top: 30px;
    }

    /* --- Stats Grid Stacking --- */
    .stats-grid {
        grid-template-columns: 1fr; /* 1 column per row */
        gap: 30px;
    }

    /* --- Services & Testimonials --- */
    .services-grid, 
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* --- Contact Form Stacking --- */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container {
        padding: 25px;
    }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-col ul li a:hover {
        padding-left: 0; /* Remove hover slide effect on mobile */
    }
    
    /* --- WhatsApp Button --- */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* Small Phones (Max-Width: 400px) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .experience-badge {
        padding: 10px;
        left: 0;
        bottom: -10px;
    }
    .experience-badge .years {
        font-size: 1.5rem;
    }
}