/* styles/style.css */


/* General Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

h1,
h2,
h3 {
    color: #1b9fda;
}


/* user sign in */

.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#userAvatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.5rem;
    min-width: 150px;
}

.user-dropdown a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 0.5rem;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
}

.header-user-icon {
    position: absolute;
    top: 40%;
    right: 20px;
}

.header-user-icon i {
    font-size: 1.25rem;
    color: white;
    transition: color 0.2s ease;
}

.header-user-icon i:hover {
    color: #ccc;
}


/* Navigation */

.navbar {
    background: #1b9fda;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 60px;
    /* Reduced logo size */
    width: auto;
    margin-right: auto;
    /* Align logo to the far left */
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    /* Push links to the right */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: rgb(10, 12, 14);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: black;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

a {
    color: #0077cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: rgb(10, 12, 14);
    text-decoration: none;
}

.overlay-container {
    position: relative;
    width: 50%;
    max-width: 300px;
    /* adjust based on your layout */
    margin: auto;
}

.overlay-image {
    position: relative;
    border-radius: 20px 20px 20px 20px;
    border: 4px solid #cc0000;
    max-width: 300px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: auto/* makes the image non-interactive */
}

.overlay-container2 {
    position: relative;
    width: 50%;
    /* adjust based on your layout */
    margin: auto;
}

.overlay-image2 {
    top: 300px;
    position: relative;
    border-radius: 20px 20px 20px 20px;
    border: 4px solid #fff;
    max-width: 600px;
    z-index: 1;
    align-items: left;
    justify-content: center;
    pointer-events: none;
    overflow: clip/* makes the image non-interactive */
}


/* Hero Section */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    /* Reduced font size for mobile */
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    /* Reduced font size for mobile */
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    background: #007bff;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #0056b3;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}


/* Services Section */

.services {
    padding: 6rem 1rem;
    /*Changed from 2rem to 6rem so the title of the page can be seen)
    /* Adjusted padding for mobile */
    background: #f4f4f4;
}

.service-content h3 {
    color: #1b9fda;
    margin-top: 20px;
}

.service-content strong {
    color: #1b9fda;
}

.service-content ul {
    padding-left: 20px;
}

.service-content li {
    margin-bottom: 10px;
}

.service-section {
    padding: 10px 10px;
}

.service-content {
    max-width: 900px;
    font-size: 1.3rem;
    margin: 0 auto;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: .5rem;
    /* Reduced gap for mobile */
}

.service-card {
    background: white;
    padding: 1rem;
    /* Reduced padding for mobile */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card img {
    width: 100%;
    height: 150px;
    /* Reduced height for mobile */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    /* Reduced font size for mobile */
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    /* Reduced font size for mobile */
    line-height: 1.5;
}

.service-card .btn {
    align-self: flex-start;
    margin-top: auto;
}


/* Controls & Technologies Section */

.tabs-section {
    padding: 3rem 1rem;
    /* Adjusted padding for mobile */
    background: white;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-container h2 {
    text-align: center;
    font-size: 2rem;
    /* Reduced font size for mobile */
    margin-bottom: 2rem;
    font-weight: bold;
}

.tabs {
    display: flex;
    flex-direction: column;
    /* Stack tabs vertically on mobile */
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    background: #007bff;
    color: white;
    padding: 0.8rem 1rem;
    /* Adjusted padding for mobile */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.tab-button.active {
    background: #0056b3;
}

.tab-button:hover {
    background: #0056b3;
}

.tab-content {
    display: none;
    padding: 1.5rem;
    /* Adjusted padding for mobile */
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.5rem;
    /* Reduced font size for mobile */
    margin-bottom: 1rem;
    font-weight: bold;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    /* Reduced font size for mobile */
    display: flex;
    align-items: center;
}

.tab-content ul li i {
    margin-right: 0.5rem;
    color: #007bff;
}


/* Why Choose Us */

.why-choose {
    padding: 3rem 1rem;
    /* Adjusted padding for mobile */
    background: #f4f4f4;
}

.why-choose h2 {
    text-align: center;
    font-size: 2rem;
    /* Reduced font size for mobile */
    margin-bottom: 2rem;
    font-weight: bold;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    /* Reduced gap for mobile */
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    /* Adjusted padding for mobile */
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    /* Reduced icon size for mobile */
    color: #007bff;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    /* Reduced font size for mobile */
    margin-bottom: 1rem;
    font-weight: bold;
}

.feature p {
    font-size: 0.9rem;
    /* Reduced font size for mobile */
    line-height: 1.5;
}


/* Contact Section */

.contact {
    padding: 3rem 1rem;
    /* Adjusted padding for mobile */
    background: #333;
    color: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    /* Stack vertically on mobile */
    gap: 2rem;
}

.contact-container h2 {
    font-size: 2rem;
    /* Reduced font size for mobile */
    margin-bottom: 1rem;
    font-weight: bold;
}

.contact-container p {
    font-size: 0.9rem;
    /* Reduced font size for mobile */
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    /* Reduced font size for mobile */
}

.contact-form textarea {
    resize: vertical;
}

.steps {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.steps h1 {
    color: #2c3e50;
}

.steps .content {
    max-width: 800px;
    margin: 0 auto;
}

.steps ol {
    padding-left: 20px;
}

.steps li {
    margin-bottom: 10px;
}


/* footer-bottom */

.footer-bottom {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.footer-bottom p {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}


/* Center the icons horizontally */

.footer-bottom .social-links {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    gap: 1rem;
    /* Space between icons */
    margin-top: 1rem;
}


/* Style the social icons */

.footer-bottom .social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-bottom .social-links a:hover {
    color: #1b9fda;
}

.image-float-left {
    float: left;
    margin: 0 15px 15px 0;
    width: 300px;
    /* desktop size */
    max-width: 100%;
    /* prevent overflow */
    height: auto;
}

.image-float-right {
    float: right;
    /* Floats the image to the right */
    margin: 0 0 15px 15px;
    /* Adds some space around the image */
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.thumbnail {
    cursor: pointer;
    /* Changes cursor to a pointer to indicate it's clickable */
    width: 200px;
    /* Adjust the size of the thumbnail */
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
}


/* Style for the popup overlay */

.popup-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensures it appears on top of other content */
}


/* Style for the popup image */

.popup-image {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 10px;
}

.mobile-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensures it appears on top of other content */
}


/* Style for the popup image */

.mobile-image {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 10px;
}

.desktop-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensures it appears on top of other content */
}


/* Style for the popup image */

.desktop-image {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 10px;
}


/* Style for the close button */

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


/* --- AOS Animations --- */

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}


/* --- Hover Effects for Buttons --- */

.cta-button,
button {
    padding: 0.7em 1.2em;
    border: none;
    background: #0077cc;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 119, 204, 0.4);
}

.account-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 2rem auto;
    margin-top: 80px;
    padding: 1rem;
    gap: 2rem;
}

.account-content {
    flex: 1;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-box label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.form-box input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#profilePicPreview {
    margin-top: 1rem;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.notifications {
    margin: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.notification-item {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-left: 5px solid #1b9fda;
    position: relative;
}

.notification-meta {
    font-size: 0.9em;
    color: #666;
}

.notification-actions {
    position: absolute;
    top: 10px;
    right: 15px;
}

.btn-clear {
    background: #ff6666;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-clear:hover {
    background: #cc0000;
}


/* --- Blog Cards and Quote Layout --- */

.blog-list a {
    display: block;
    padding: 1em;
    margin: 0.5em 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.blog-list a:hover {
    background-color: #f7f7f7;
}


/* --- Quote Result Styling --- */

#quote-result {
    margin-top: 1em;
    font-size: 1.4em;
    font-weight: bold;
    color: #2a7;
}


/* Ensure .services section content is centered and consistent across all pages */

.services {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}


/* General background */

body {
    background-color: #f5f5f5;
}


/* Centered layout for all content in .services */

.services {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
    padding-top: 6rem;
    /* make room for fixed header */
}


/* Ensure headings are visible */

.services h1,
.services h2,
.services h3 {
    color: #222;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}


/* Match product content style */

.service-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.blog-list {
    list-style: none;
    padding-left: 0;
}

.blog-list li {
    margin-bottom: 1rem;
}

.blog-list a {
    display: block;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.blog-list a:hover {
    background-color: #f9f9f9;
}


/* Media Queries for Mobile */

@media (max-width: 768px) {
    .navbar-logo img {
        height: 50px;
        /* Further reduce logo size for mobile */
    }
    .dropdown-content {
        display: none;
        /* Hidden by default */
    }
    .image-float-left {
        float: none;
        display: block;
        margin: 0 auto 1rem auto;
        width: 90%;
        /* scale for mobile */
        max-width: 350px;
        /* optional cap */
    }
    .service-content {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
    .service-content p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
    }
    .dropbtn {
        color: white;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        padding: 0.5rem 1rem;
        display: inline-block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1b9fda;
        padding: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-icon {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: white;
        margin-right: auto;
        /* 👈 Pushes everything else to the right */
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    .dropdown-toggle {
        display: inline-block;
        padding: 0 10px;
        color: white;
        cursor: pointer;
    }
    .dropdown-content {
        display: none;
        position: static;
        background: #1b9fda;
        width: 100%;
        box-shadow: none;
    }
    .dropdown.show .dropdown-content {
        display: block;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown-content a {
        padding: 10px;
        display: block;
        text-align: left;
        background: #1b9fda;
    }
    .hero-content h1 {
        font-size: 2rem;
        /* Further reduce font size for mobile */
    }
    .hero-content p {
        font-size: 1rem;
        /* Further reduce font size for mobile */
    }
    .services-container,
    .features {
        grid-template-columns: 1fr;
        /* Stack cards vertically on mobile */
    }
    .tabs {
        flex-direction: column;
        /* Stack tabs vertically on mobile */
    }
    .navbar-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        padding: 0 1rem;
    }
    .navbar-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}