/* Reset & Variables */
:root {
    /* User Provided Color Palette */
    --primary-color: #14b86a; /* Primary - Green */
    --primary-dark: #0f9152;
    --primary-light: #34d399;
    --secondary-color: #4b6b5c;
    --accent-color: #22c55e; /* Success - Light Green */
    --accent-light: #34d399;
    --text-dark: #0f1f17;
    --text-light: #4b6b5c;
    --text-muted: #4b6b5c;
    --bg-light: #f3fbf6;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #14b86a 0%, #0f9152 100%);
    --hero-gradient: linear-gradient(135deg, #14b86a 0%, #0f9152 100%);
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #e8f6ee 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(20, 184, 106, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Dynamic light effect based on mouse position */
.btn-primary::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: calc(var(--y, 0) - 150px);
    left: calc(var(--x, 0) - 150px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Dynamic light effect for secondary button */
.btn-secondary::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: calc(var(--y, 0) - 150px);
    left: calc(var(--x, 0) - 150px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-secondary:hover::after {
    opacity: 1;
}

.btn-primary.large, .btn-secondary.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-glow {
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.5);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    }
    50% {
        box-shadow: 0 0 35px rgba(79, 70, 229, 0.7);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.99);
    padding: 0.75rem 0;
    transform: translateY(0);
}

/* Add entrance animation */
.navbar {
    animation: slideDown 0.8s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo .dot {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-text p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 550px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards 0.8s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(30px);
    animation: pulse 3s ease-in-out infinite;
}

.hero-mockup {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 3;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Features Section */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

/* Responsive adjustments for feature cards */
@media (max-width: 768px) {
    .features-grid {
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2.5rem 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
    
    .icon-box {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

.feature-card {
    background: var(--card-gradient);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(20, 184, 106, 0.2);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), rgba(20, 184, 106, 0.1));
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .icon-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}



/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(20, 184, 106, 0.3);
    animation: pulse 2s infinite;
}

.cta .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(20, 184, 106, 0.4);
    animation: none;
}

/* Responsive adjustments for CTA section */
@media (max-width: 768px) {
    .cta {
        padding: 4rem 1.5rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta .btn-primary {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}