/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-emerald: #10b981;
    --emerald-light: #34d399;
    --emerald-dark: #059669;
    --bg-primary: #e8ecef;
    --bg-secondary: #f5f7fa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --shadow-light: rgba(255, 255, 255, 0.9);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

.accent {
    color: var(--primary-emerald);
}

/* ===========================
   Neumorphism Utility Classes
   =========================== */
.neomorph {
    background: var(--bg-primary);
    box-shadow: 9px 9px 16px var(--shadow-dark),
                -9px -9px 16px var(--shadow-light);
    border-radius: 20px;
}

.neomorph-inset {
    background: var(--bg-primary);
    box-shadow: inset 6px 6px 12px var(--shadow-dark),
                inset -6px -6px 12px var(--shadow-light);
    border-radius: 20px;
}

.neomorph-flat {
    background: var(--bg-primary);
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
    border-radius: 15px;
}

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(163, 177, 198, 0.3);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-emerald);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: var(--bg-primary);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-emerald), var(--emerald-light));
    color: var(--white);
    box-shadow: 6px 6px 12px var(--shadow-dark),
                -6px -6px 12px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 4px 4px 8px var(--shadow-dark),
                -4px -4px 8px var(--shadow-light);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 6px 6px 12px var(--shadow-dark),
                -6px -6px 12px var(--shadow-light);
}

.btn-secondary:hover {
    color: var(--primary-emerald);
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
}

.btn-full {
    width: 100%;
}

/* ===========================
   Services Section
   =========================== */
.services {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0;
    width: 100%;
}

.services-carousel {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 1rem 2rem 2rem 0;
    scroll-snap-type: x mandatory;
}

.services-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.service-card {
    background: linear-gradient(145deg, #f0f3f6, #e8ecef);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 8px 8px 20px rgba(163, 177, 198, 0.4),
                -8px -8px 20px rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 360px;
    max-width: 450px;
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--emerald-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 30px rgba(163, 177, 198, 0.5),
                -12px -12px 30px rgba(255, 255, 255, 1);
}

.service-card:hover::before {
    opacity: 1;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3),
                inset 1px 1px 2px rgba(0, 0, 0, 0.2);
    transform: scale(1.3);
}

.service-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: 20px;
    position: relative;
}

.service-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-emerald), var(--emerald-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.service-icon-wrapper svg {
    width: 45px;
    height: 45px;
    color: var(--primary-emerald);
    stroke-width: 1.5;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon-wrapper svg {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0 auto;
}

/* ===========================
   Products Section
   =========================== */
.products {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.4),
                -9px -9px 16px rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 12px 12px 24px rgba(163, 177, 198, 0.5),
                -12px -12px 24px rgba(255, 255, 255, 1);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(5, 150, 105, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.product-overlay svg {
    width: 50px;
    height: 50px;
    color: white;
    animation: bounceIcon 0.6s ease;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.product-card:hover .product-content h3 {
    color: var(--primary-emerald);
}

.product-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.4),
                -9px -9px 16px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-emerald);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 9px 9px 16px var(--shadow-dark),
                -9px -9px 16px var(--shadow-light);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 15px;
    background: var(--bg-primary);
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
                inset -4px -4px 8px var(--shadow-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: inset 6px 6px 12px var(--shadow-dark),
                inset -6px -6px 12px var(--shadow-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 7px 7px 14px var(--shadow-dark),
                -7px -7px 14px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card svg {
    width: 40px;
    height: 40px;
    color: var(--primary-emerald);
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-emerald);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .services-carousel {
        padding-right: 2rem;
    }

    .service-card {
        min-width: 320px;
        max-width: 380px;
        padding: 2.5rem 1.8rem;
    }

    .service-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .service-icon-wrapper svg {
        width: 40px;
        height: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 8px 20px rgba(163, 177, 198, 0.4);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-carousel {
        padding-right: 1.5rem;
    }

    .service-card {
        min-width: 300px;
        max-width: 350px;
        padding: 2.5rem 1.5rem;
    }

    .service-icon-wrapper {
        width: 75px;
        height: 75px;
        margin-bottom: 1.5rem;
    }

    .service-icon-wrapper svg {
        width: 38px;
        height: 38px;
    }

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

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

    .contact-form {
        padding: 2rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-carousel {
        padding-right: 1.5rem;
    }

    .service-card {
        min-width: 280px;
        max-width: 320px;
        padding: 2rem 1.3rem;
    }

    .service-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1.3rem;
    }

    .service-icon-wrapper svg {
        width: 35px;
        height: 35px;
    }

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

    .service-card p {
        font-size: 0.88rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 1.5rem;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.stat-card,
.info-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}

.product-card:nth-child(5) {
    animation-delay: 0.4s;
}

.product-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* ===========================
   Landscape Tablets
   =========================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .services-carousel {
        padding-right: 2rem;
    }

    .service-card {
        min-width: 300px;
        max-width: 360px;
        padding: 2.5rem 1.8rem;
    }

    .service-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .service-icon-wrapper svg {
        width: 40px;
        height: 40px;
    }
}

/* ===========================
   Ultra Small Devices
   =========================== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-carousel {
        padding-right: 1rem;
    }

    .service-card {
        min-width: 260px;
        max-width: 300px;
        padding: 2rem 1.2rem;
    }

    .service-icon-wrapper {
        width: 65px;
        height: 65px;
        margin-bottom: 1.2rem;
    }

    .service-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

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

    .service-card p {
        font-size: 0.85rem;
    }
}
