/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    background: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* For z-index context */
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is always on top */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #34c0eb;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-menu a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #34c0eb;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1001; /* Ensure hamburger is above nav-menu when open */
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        margin: 0.5rem 20px;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: block;
    }
}

/* Hero Section */
.hero {
    background-size: cover !important; /* Use !important to override inline styles if necessary */
    background-position: center !important;
    padding: 10rem 0;
    text-align: center;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Ensure a decent height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2; /* Ensure text is above overlay */
    max-width: 800px; /* Constrain width for better readability */
}

.hero-inner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-inner p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #34c0eb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
    background: #2a9ec6;
    transform: translateY(-3px);
}

/* General Sections */
section {
    padding: 4rem 0;
    background: #1a1a1a;
}

section:nth-child(even) {
    background: #222;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #34c0eb;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #34c0eb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2a9ec6;
    transform: translateY(-2px);
}

.btn.primary {
    background: #34c0eb;
}

.btn.primary:hover {
    background: #2a9ec6;
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #34c0eb;
    color: #34c0eb;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline:hover {
    background: #34c0eb;
    color: #fff;
    transform: translateY(-2px);
}

/* Featured Video Section (Homepage) */
.featured-video {
    background: #222;
    padding: 4rem 0;
    text-align: center;
}

.featured-video h2 {
    font-size: 2.5rem;
    color: #34c0eb;
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Max width for the video */
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Services Section (Homepage & Services Page) */
.services {
    padding: 4rem 0;
    background: #1a1a1a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(52, 192, 235, 0.2);
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #34c0eb;
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #34c0eb;
}

.service-item p {
    color: #ccc;
    flex-grow: 1; /* Allows paragraph to take up available space */
    margin-bottom: 1.5rem;
}

.service-item .learn-more {
    color: #34c0eb;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-item .learn-more:hover {
    color: #2a9ec6;
}

.cta-container {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-container p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* About Content (About Page) */
.about-content {
    padding: 4rem 0;
    background: #1a1a1a;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section.reversed {
    flex-direction: row-reverse;
}

.about-section img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent image from shrinking */
}

.about-section .text-content {
    flex: 1; /* Allow text content to take remaining space */
    min-width: 300px; /* Minimum width before wrapping */
}

.about-section h2 {
    font-size: 2.5rem;
    color: #34c0eb;
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.about-section ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2334c0eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 0.8rem;
    color: #ddd;
    font-size: 1.05rem;
}

.team-section {
    text-align: center;
    margin-top: 4rem;
}

.team-section h2 {
    font-size: 2.5rem;
    color: #34c0eb;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(52, 192, 235, 0.3);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid #34c0eb;
}

.team-member h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #ccc;
    font-size: 0.95rem;
}


/* Service Details (Services Page) */
.service-details {
    padding: 4rem 0;
    background: #222;
}

.service-details .service-item {
    background: #1a1a1a; /* Darker background for individual items */
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap; /* Allow wrapping */
}

.service-details .service-item:last-child {
    margin-bottom: 0;
}

.service-details .service-item.reversed {
    flex-direction: row-reverse;
}

.service-details .service-item img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: none; /* Remove circular border from service-item */
}

.service-details .service-item .text-content {
    flex: 1;
    min-width: 300px; /* Ensures text content has space */
}

.service-details .service-item h3 {
    font-size: 2.2rem;
    color: #34c0eb;
    margin-bottom: 1rem;
    text-align: left; /* Align text to left */
}

.service-details .service-item p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    text-align: left; /* Align text to left */
}

.service-details .service-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-details .service-item ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2334c0eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 0.8rem;
    color: #ddd;
    font-size: 1.05rem;
}

/* Portfolio Preview Section (Homepage) */
.portfolio-preview {
    background: #222;
    padding: 4rem 0;
    text-align: center;
}

.portfolio-preview h2 {
    font-size: 2.5rem;
    color: #34c0eb;
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    height: 300px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 192, 235, 0.8); /* Cyan overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.portfolio-overlay .view-project {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #34c0eb;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.portfolio-overlay .view-project:hover {
    background: #e0e0e0;
}

/* Portfolio Grid Section (Portfolio Page) */
.portfolio-grid-section {
    background: #1a1a1a;
    padding: 4rem 0;
}

.portfolio-grid-section .section-title {
    color: #34c0eb;
}

/* Testimonials Section */
.testimonials {
    background: #1a1a1a;
    padding: 4rem 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    color: #34c0eb;
    margin-bottom: 3rem;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px; /* Add padding for content */
}

.testimonial {
    background: #2a2a2a;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem; /* Spacing between testimonials if they stack */
}

.testimonial p {
    font-size: 1.3rem;
    font-style: italic;
    color: #ddd;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial cite {
    display: block;
    font-size: 1.1rem;
    color: #34c0eb;
    font-weight: bold;
}

/* Contact Section (All Pages) */
.contact-section {
    background: #222;
    padding: 4rem 0;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-info, .contact-form {
    flex: 1; /* Allow both to take equal space */
    min-width: 300px; /* Minimum width before stacking */
}

.contact-info h2, .contact-form h2 {
    font-size: 2.2rem;
    color: #34c0eb;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-details p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #ddd;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: #34c0eb;
    font-size: 1.8rem;
    margin-right: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    background: #333;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #34c0eb;
    box-shadow: 0 0 8px rgba(52, 192, 235, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start; /* Align button to the left */
}

/* Location Section (Contact Page) */
.location-section {
    background: #1a1a1a;
    padding: 4rem 0;
    text-align: center;
}

.location-section h2 {
    font-size: 2.5rem;
    color: #34c0eb;
    margin-bottom: 3rem;
}

.location-map {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.location-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}


/* Footer */
.footer {
    background: #0d0d0d;
    color: #ccc;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-column h4 {
    font-size: 1.3rem;
    color: #34c0eb;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #34c0eb;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #888;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-inner h1 {
        font-size: 3rem;
    }

    .hero-inner p {
        font-size: 1.2rem;
    }

    .about-section, .service-details .service-item, .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-section.reversed {
        flex-direction: column; /* Ensure it stays column on small screens */
    }

    .about-section img, .service-details .service-item img {
        max-width: 100%;
        margin: 0 auto 2rem auto;
    }

    .service-details .service-item .text-content {
        min-width: unset; /* Remove min-width for smaller screens */
    }

    .service-details .service-item h3,
    .service-details .service-item p,
    .service-details .service-item ul {
        text-align: center; /* Center text for stacked layout */
    }

    .service-details .service-item ul li {
        background-position: center left 10%; /* Adjust bullet position */
        padding-left: 50px; /* Adjust padding for centered text */
    }

    .contact-form .btn {
        align-self: center; /* Center button in form */
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0;
    }

    .hero-inner h1 {
        font-size: 2.5rem;
    }

    .hero-inner p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid, .team-grid, .portfolio-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-item, .team-member, .portfolio-item, .testimonial {
        padding: 1.5rem;
    }

    .service-details .service-item {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero-inner h1 {
        font-size: 2rem;
    }

    .hero-inner p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-item img {
        width: 80px;
        height: 80px;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }

    .service-details .service-item ul li {
        background-position: center left 5%; /* Further adjust bullet position */
        padding-left: 40px; /* Further adjust padding */
    }
}