:root {
    --bg-color: #ffffff;
    --text-color: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --primary-color: #25AC88;
    /* User's Green */
    --secondary-color: #005065;
    /* User's Teal */
    --accent-color: #4cdbc0;
    --glass-bg: rgba(255, 255, 255, 0.75);
    /* White frosted glass */
    --glass-border: rgba(0, 80, 101, 0.1);
    /* Subtle teal border */
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.4s;
    --shadow-soft: 0 10px 30px -10px rgba(0, 80, 101, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at top right, rgba(37, 172, 136, 0.05) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 80, 101, 0.05) 0%, transparent 40%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mouse Follower Glow */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 172, 136, 0.15), transparent 70%);
    /* User's Green with low opacity */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: transform 0.1s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Inverting colors if necessary for dark mode, or handled by the image itself */
    /* filter: brightness(0) invert(1); Uncomment if logo is black text */
    /* Assuming provided logo has colored text, we might need a background if it's dark text on transp background */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

/* Nav Links Updated Hover */
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .btn-primary {
    padding: 0.8rem 1.7rem;
    /* Increased padding slightly */
    background: var(--secondary-color);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 80, 101, 0.2);
}

.nav-links .btn-primary:hover {
    color: #ffffff;
    /* Ensure text stays contrasting */
    transform: translateY(-2px);
    background: var(--primary-color);
    box-shadow: 0 8px 15px -3px rgba(37, 172, 136, 0.3);
}

/* Hamburger Menu (Desktop Default) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 10%;
    position: relative;
    overflow: hidden;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 80, 101, 0.25);
}

.btn-secondary {
    border: 1px solid var(--text-muted);
    color: var(--secondary-color);
    background: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    box-shadow: 0 10px 20px rgba(37, 172, 136, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 80, 101, 0.05);
    border-color: var(--secondary-color);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    /*box-shadow: 0 30px 60px -15px rgba(0, 80, 101, 0.2);*/
    animation: float 6s ease-in-out infinite;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Services / Cards */
.services {
    padding: 8rem 10%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--glass-bg);
    border: 1px solid white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px -5px rgba(0, 80, 101, 0.15);
    border-color: var(--primary-color);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle sheen */
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    svg {
        fill: var(--primary-color);
        width: 60px;
    }
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.card p {
    color: var(--text-muted);
}

/* Read More Button in Cards */
.btn-read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-read-more:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
}

/* Service Details Container */
.service-details-container {
    margin-top: 6rem;
    border-top: 1px solid #e2e8f0;
}

.service-detail {
    padding: 6rem 10%;
    /* Increased padding for better spacing */
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 5rem;
    /* Generous spacing between text and image */
}

/* Alternating Layout */
.service-detail:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-content {
    flex: 1;
    text-align: left;
    /* Align text to left for better readability in this layout */
}

.service-detail h3 {
    font-size: 2.5rem;
    /* Larger Title */
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-detail p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.detail-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    /* Soft, deep shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.detail-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -10px rgba(0, 80, 101, 0.2);
}

.detail-image:hover img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Call to Action Button */
.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px -5px rgba(37, 172, 136, 0.4);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 80, 101, 0.3);
}

/* About Section */
.about {
    padding: 8rem 10%;
    display: flex;
    align-items: center;
    gap: 6rem;
    background: linear-gradient(180deg, transparent, rgba(37, 172, 136, 0.05), transparent);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 4rem;
}

.stat-item .count {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-item .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-mask {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 80, 101, 0.2);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.about-image-mask:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-image-mask img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact-section {
    padding: 8rem 10%;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid white;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-header p {
    color: var(--text-muted);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    /* Lighter gray border */
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color var(--transition-speed);
    outline: none;
    resize: vertical;
}

.form-group textarea {
    min-height: 100px;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Floating Label Logic */
.form-group input:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:focus,
.form-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--primary-color);
}

.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: -20px;
    left: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Submit Button with Glow */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
}

.btn-submit:hover .btn-glow {
    opacity: 1;
    transform: scale(1);
}

/* Footer */
footer {
    padding: 5rem 10% 2rem;
    border-top: none;
    /* Removing border as background change separates it */
    margin-top: 0;
    background-color: #000000;
    /* Black Background */
    color: #ffffff;
    /* White text */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    /* Gradient text for logo in footer remains nice */
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: #fff;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    /*gap: 1.5rem;*/
a,
    span {
        display: flex;
        align-items: center;
        gap: .5em;
    }

    svg {
        width: 20px;
        fill: #94a3b8;
    }
}

.social-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    /* Slate 500 */
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle white border */
}

/* Utility Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.3s;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations classes (toggled by JS) */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    /* Hero Responsive */
    .hero {
        flex-direction: column-reverse;
        /* Image on top, text below? Or Content top, image bottom? Let's do Content Top */
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 6rem 5% 4rem;
        /* Adjusted padding */
        height: auto;
        min-height: auto;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin: 0 auto 2rem;
        /* Center align paragraph */
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        position: relative;
        /* Reset position */
        width: 100%;
        height: auto;
        top: auto;
        left: auto;
        opacity: 1;
        /* Reset opacity */
        margin-top: 2rem;
    }

    .hero-image-container {
        max-width: 100%;
        /* Allow full width on mobile */
        border-radius: 20px;
    }

    /* About Responsive */
    .about {
        flex-direction: column;
        gap: 4rem;
        padding: 6rem 5%;
        text-align: center;
    }

    .stats {
        justify-content: center;
        gap: 2rem;
    }

    .about-image-mask {
        max-width: 100%;
        transform: rotate(0deg);
        /* Reset rotation on mobile for cleanliness */
    }

    /* Service Details Responsive */
    .service-detail {
        flex-direction: column !important;
        /* Force stack */
        padding: 4rem 5%;
        gap: 3rem;
        text-align: center;
    }

    .service-details-container {
        margin-top: 3rem;
    }

    .detail-content {
        text-align: center;
        /* Center text on mobile */
    }

    .service-detail h3 {
        font-size: 2rem;
    }

    .detail-image {
        width: 100%;
        box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    }

    /* Navigation */
    .nav-links {
        display: none;
        /* Mobile menu hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        z-index: 1001;
        /* Above hamburger */
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        z-index: 1002;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
}
