/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00A79D;
    /* Your Brand Teal */
    --secondary-accent-color: #ffec00;
    /* Your Brand Yellow */
    --background-color: #ffffff;
    /* White background */
    --surface-color: #f8f9fa;
    /* A very light, clean grey for alternate sections */
    --text-color: #212529;
    /* Dark text for readability */
    --text-muted-color: #5a6268;
    /* A professional medium grey */
        /* Dark text for readability */
    --text-color-dark-background: #c8cfd4;
    --main-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

h1,
h2,
h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    color: var(--text-color);
}

p {
    color: var(--text-muted-color);
}

footer p {
    color: var(--text-color-dark-background);
}

section {
    padding: 6rem 0;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--background-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 40px;
    /* Adjust this value to fit your logo's dimensions */
    width: auto;
    display: block;
    /* Removes any extra space below the image */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* New wrapper for right-side nav elements */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Style for the new WhatsApp button */
.nav-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1da950;
    /* Official WhatsApp green */
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.nav-whatsapp-btn i {
    font-size: 1.2rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    /* <-- new full-screen value */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Offset for fixed header */
    background-image: linear-gradient(rgba(25, 30, 45, 0.6), rgba(25, 30, 45, 0.9)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    /* Ensures text is light and readable */
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 167, 157, 0.4);
}

/* --- Styles for Dynamic Text --- */
.dynamic-text-wrapper {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1.5rem 0;
    height: 3rem;
    /* Prevents layout shift as text changes */
    color: rgba(255, 255, 255, 0.8);
}

#dynamic-text {
    color: #fff;
    border-bottom: 3px solid var(--primary-color);
}

.cursor {
    display: inline-block;
    color: var(--secondary-accent-color);
    /* Using the yellow for high impact */
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid #e0e0e0;
    /* Added transition for the icon */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* This is the content wrapper */
.service-card-content {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    /* Added transition for the icon hover effect */
    transition: transform 0.4s ease;
}

/* New hover effect for the icon */
.service-card:hover i {
    transform: scale(1.1);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

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

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Contact Section --- */
.contact {
    background-color: var(--surface-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-text h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.contact-text .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-features {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.contact-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    /* Aligns icons neatly */
    text-align: center;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-muted-color);
}

blockquote footer {
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-color);
}

/* Form Styles */
.contact-form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--main-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 167, 157, 0.25);
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.form-helper-text {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted-color);
}

/* --- Footer --- */
footer {
    color: rgba(255, 255, 255, 0.7);
    /* A light, readable grey */
}

.footer-main {
    background-color: #1e1e1e;
    /* Dark surface color for contrast */
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    text-decoration: none;
    color: inherit;
    /* Inherits the new light grey from the footer */
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-col p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-col p i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background-color: #121212;
    /* Even darker for the bottom bar */
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Scroll Animation --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stats Section --- */
.stats {
    background-color: var(--primary-color);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    color: #fff;
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card h2 {
    font-size: 3rem;
    margin: 0.5rem 0;
}

.stat-card p {
    font-size: 1rem;
    color: #fff;
    opacity: 0.9;
    font-weight: 300;
}

/* --- Showcase Slider Section --- */
.showcase {
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--surface-color);
}

.showcase-wrapper {
    background: var(--primary-color);
    padding: 4rem 0;
    /* Provides spacing inside the purple area */
}

.showcase h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
}

.slider {
    position: relative;
    width: 100%;
    height: 380px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

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

.slide {
    position: absolute;
    width: 65%;
    max-width: 700px;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    /* <-- Updated for a smoother, slower effect */
}

/* States for slides */
.slide.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
}

.slide.left {
    transform: translateX(-45%) scale(0.8);
    opacity: 0.7;
    filter: blur(2px) brightness(0.7);
    z-index: 5;
}

.slide.right {
    transform: translateX(45%) scale(0.8);
    opacity: 0.7;
    filter: blur(2px) brightness(0.7);
    z-index: 5;
}

.slide.hidden {
    transform: scale(0.5);
    opacity: 0;
    z-index: 1;
}

.slide-content {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.slide-content h3,
.slide-content p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    margin: 0;
}

.slide-content h3 {
    font-size: 1.5rem;
    padding-bottom: 2.5rem;
}

.slide-content p {
    font-size: 1rem;
    font-weight: 300;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 5%;
}

.next-btn {
    right: 5%;
}

/* Lower Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.pause-btn {
    background: none;
    border: 2px solid var(--background-color);
    color: var(--background-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.pause-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.slider-indicators {
    display: flex;
    gap: 15px;
    /* <-- new, larger value */
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--text-muted-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--surface-color);
    border-color: var(--background-color);
}

/* --- Status Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1);
}

#modalIcon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Success and Fail Icons */
#modalIcon .fa-check-circle {
    color: #28a745;
}

#modalIcon .fa-times-circle {
    color: #dc3545;
}

#modalTitle {
    margin-bottom: 0.5rem;
}

#modalMessage {
    margin-bottom: 1.5rem;
    color: var(--text-muted-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav ul {
        display: none;
    }

    /* For a full mobile menu, you'd need more JS to handle a hamburger icon toggle */

    section {
        padding: 4rem 0;
    }

    /* --- Contact Section Responsiveness --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-text h2 {
        font-size: 2rem;
    }

    /* --- WhatsApp Button on Mobile --- */
    .nav-whatsapp-btn span {
        display: none;
        /* Hide the "WhatsApp" text */
    }

    .nav-whatsapp-btn {
        padding: 0;
        width: 42px;
        height: 42px;
        justify-content: center;
        /* Center the icon */
        gap: 0;
    }

    .nav-whatsapp-btn i {
        font-size: 1.5rem;
        margin: 0;
    }
}