/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --secondary-color: #6c757d;
    --text-color: #333;
    --light-bg: #ffffff;
    --dark-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(90deg, #0d6efd, #6610f2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

li {
    list-style-type: none;
}

section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: rgb(6,130,102);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(12,13,14,0.976);
}

.btn-secondary {
    background-color: transparent;
    color: #fff; /* Changed for hero section */
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* --- HEADER & NAVBAR --- */
.header {
    background-color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hamburger active state */
.hamburger.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: calc(100vh - 80px); /* Adjust for header height */
    background: url('image/Hero.png') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 40px 0;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- ABOUT SECTION --- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

.about-text {
    flex: 1 1 60%;
    text-align: left;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-color);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.values-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Counters Styling */
.about-counters {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}
.counter {
    background: var(--light-bg);
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.counter h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.counter p {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-text, .about-counters {
        text-align: left;
        width: 100%;
    }
    .about-counters {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }
    .counter {
        flex: 1 1 100%;
    }
}
.about-counters {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bar-counter {
    position: relative;
    height: 80px;
    background-color: #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.fill-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-color), #339dff);
    z-index: 1;
    border-radius: 10px;
    transition: width 3s ease;
}

.counter-text {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: #fff;
}

.counter-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.counter-text p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-text i {
    color: #fff;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .about-counters {
        gap: 20px;
    }
    .bar-counter {
        height: 70px;
    }
    .counter-text h3 {
        font-size: 1.6rem;
    }
    .counter-text p {
        font-size: 0.95rem;
    }
}
/* --- ABOUT SECTION

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 1 1 55%;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text p {
    margin-bottom: 25px;
}

.values-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.about-counters {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bar-counter {
    position: relative;
    height: 80px;
    background-color: #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.fill-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: 200% 200%;
}

.bar-counter:hover .wave-fill {
    animation: waveFlow 4s infinite linear;
}

@keyframes waveFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.blue-wave { background: linear-gradient(to right, #0d6efd, #339dff, #0d6efd); }
.green-wave { background: linear-gradient(to right, #198754, #20c997, #198754); }
.purple-wave { background: linear-gradient(to right, #6f42c1, #8c68d3, #6f42c1); }

.counter-text {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.counter-text h3 { font-size: 2rem; }
.counter-text p { font-size: 1rem; }
.counter-text i { font-size: 1.2rem; } */


/* --- SERVICES SECTION --- */
/* 💻 Default Desktop View (already present) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-bg);
  padding: 40px 30px;
  text-align: center;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(4, 4, 4, 0.967);
}

.service-card i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover i {
  color: #dc3545;
  transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 📱 Mobile View (Below 768px) */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card i {
    font-size: 2.5rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* 🧩 Medium Tablets (768px to 1068px) */
@media (max-width: 1068px) and (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .service-card {
    padding: 35px 25px;
  }

  .service-card i {
    font-size: 2.8rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.5rem;
  }
}
/* --- PORTFOLIO SECTION --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,80,67,0.947);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.btn-view-project {
    background: #fff;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    border: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.portfolio-card:hover .btn-view-project {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 4px 8px rgb(0,0,0);
}

.btn-view-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0,0,0);
}

/* --- PORTFOLIO MODAL --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.is-visible {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: modal-fade-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    color: red;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #dc3545;
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-description {
    font-size: 1rem;
    margin-bottom: 20px;
}

#modal-link {
    margin-top: 15px;
}


/* --- TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

.testimonial-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 380px;
    perspective: 1500px;
}

.testimonial-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.testimonial-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90%;
    max-width: 400px;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.6s ease, opacity 0.6s ease;
    z-index: 1;
    opacity: 0;
}

.review-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 5px 10px rgba(0, 0, 0, 0.04);
    height: 100%;
    box-sizing: border-box;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.reviewer-info span {
    font-size: 0.85rem;
    color: #777;
    margin-top: 2px;
}
.rating {
    margin-top: 6px;
    color: #fbbc04;
    font-size: 1rem;
    letter-spacing: 2px;
}
.review-text {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

/* Carousel positioning classes */
.testimonial-slide.active { transform: translate(-50%, -50%) translateZ(0) scale(1); opacity: 1; z-index: 5; }
.testimonial-slide.prev { transform: translate(-50%, -50%) translateX(-45%) translateZ(-180px) rotateY(30deg); opacity: 0.5; z-index: 4; }
.testimonial-slide.next { transform: translate(-50%, -50%) translateX(45%) translateZ(-180px) rotateY(-30deg); opacity: 0.5; z-index: 4; }
.testimonial-slide.far-prev { transform: translate(-50%, -50%) translateX(-90%) translateZ(-300px) rotateY(45deg); opacity: 0; z-index: 3; }
.testimonial-slide.far-next { transform: translate(-50%, -50%) translateX(90%) translateZ(-300px) rotateY(-45deg); opacity: 0; z-index: 3; }

.carousel-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}


/* --- CONTACT SECTION --- */
.contact-content {
    display: flex;
    gap: 50px;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.contact-form-container { flex: 2 1 400px; }
.contact-info { flex: 1 1 300px; }

.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.contact-info h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}
.contact-info .social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.contact-info .social-icons a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.contact-info .social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* --- FOOTER --- */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 20px 20px;
}
.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    flex: 1 1 60%;
    gap: 30px;
}
.footer-map {
    flex: 1 1 35%;
    min-width: 280px;
    min-height: 250px;
}
.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--primary-color); }

.footer .social-icons a {
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}
.footer .social-icons a:hover { transform: scale(1.2); }
.footer .social-icons .youtube:hover { color: #FF0000; }
.footer .social-icons .instagram:hover { color: #E1306C; }
.footer .social-icons .linkedin:hover { color: #0A66C2; }

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 1s ease-in forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: transform, opacity;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .testimonial-carousel { height: 420px; }

    /* Mobile Navigation */
    .hamburger { display: flex; z-index: 1001; }
    .nav-menu {
        position: fixed;
        top: 80px; /* Match header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: black;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.is-active {
        transform: translateX(0);
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .footer-main { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .contact-content { padding: 25px; }
    .testimonial-carousel { height: 480px; }
    .modal-content { padding: 20px; }
    .modal-title { font-size: 1.5rem; }
}