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

/* Prevent horizontal scrolling across the entire document */
html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary: #4ecdc4;
    --secondary: #2b3442;
    --accent: #f7b733;
    --text: #e8e8e8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(247, 183, 51, 0.1));
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    filter: blur(40px);

    /* Keep shapes from forcing horizontal scroll on small screens */
    max-width: 60vw;
    max-height: 60vh;
    will-change: transform;
}

.shape1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape3 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.8rem clamp(1rem, 4vw, 3rem);
    background: rgba(43, 52, 66, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: clamp(35px, 8vw, 50px);
    height: clamp(35px, 8vw, 50px);
    background: linear-gradient(135deg, var(--primary), #3498db);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.3);
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(100px, 15vh, 120px) clamp(1rem, 4vw, 3rem) clamp(2rem, 8vh, 3rem);
    position: relative;
    overflow: hidden; /* clip particles and other absolute children */
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 8vw, 5rem);
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1.25rem);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(0.8rem, 2vh, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3498db);
    color: white;
    box-shadow: 0 10px 40px rgba(78, 205, 196, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(78, 205, 196, 0.6);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

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

/* Carousel Styles */
.hero-visual {
    position: relative;
    height: clamp(300px, 50vh, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    perspective: 1000px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: clamp(20px, 4vw, 30px);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vh, 1.5rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.carousel-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
    pointer-events: auto;
    border-color: var(--primary);
    box-shadow: 0 25px 80px rgba(78, 205, 196, 0.4);
}

.carousel-card.prev {
    opacity: 0.3;
    transform: translateY(-120%) scale(0.85);
    z-index: 5;
}

.carousel-card.next {
    opacity: 0.3;
    transform: translateY(120%) scale(0.85);
    z-index: 5;
}

.carousel-icon {
    font-size: clamp(3rem, 10vw, 5rem);
    filter: drop-shadow(0 8px 16px rgba(78, 205, 196, 0.5));
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.carousel-text {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    text-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

.carousel-desc {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text);
    text-align: center;
    opacity: 0.8;
    max-width: 350px;
    line-height: 1.5;
}

.carousel-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

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

.indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.6);
}

/* Features Section */
.features {
    padding: clamp(3rem, 10vh, 6rem) clamp(1rem, 4vw, 3rem);
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(2rem, 6vh, 4rem);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.3);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: linear-gradient(135deg, var(--primary), #3498db);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
    animation: float 3s infinite ease-in-out;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

.feature-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: clamp(0.8rem, 2vh, 1rem);
    color: var(--primary);
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Stats Section */
.stats {
    padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(52, 152, 219, 0.1));
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.stat-card {
    padding: clamp(1.5rem, 4vh, 2rem);
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.8;
}

/* Presets Section */
.presets {
    padding: clamp(3rem, 10vh, 6rem) clamp(1rem, 4vw, 3rem);
    background: rgba(0, 0, 0, 0.3);
}

.presets-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.preset-card {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(52, 152, 219, 0.1));
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.preset-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary), transparent);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.preset-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3);
}

.preset-card:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

.preset-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: clamp(1rem, 3vh, 1.25rem);
    filter: drop-shadow(0 5px 15px rgba(78, 205, 196, 0.5));
}

.preset-name {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    margin-bottom: clamp(0.5rem, 1vh, 0.625rem);
    color: var(--primary);
}

.preset-desc {
    opacity: 0.8;
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.5;
}

/* Footer */
footer {
    padding: clamp(2rem, 6vh, 3rem) clamp(1rem, 4vw, 3rem);
    background: var(--secondary);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(1rem, 3vh, 2rem);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

footer p {
    font-size: clamp(0.85rem, 2vw, 1rem);
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(43, 52, 66, 0.98);
        padding: 2rem;
        border-radius: 20px 0 0 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.5);
        box-sizing: border-box;
        width: min(360px, 85vw);
        right: -110%; /* hide fully offscreen */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .carousel-card.prev {
        transform: translateX(-120%) scale(0.85);
    }

    .carousel-card.next {
        transform: translateX(120%) scale(0.85);
    }

    .carousel-indicators {
        flex-direction: row;
        left: 50%;
        top: auto;
        bottom: -50px;
        transform: translateX(-50%);
    }
}

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

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

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

@media (max-width: 480px) {
    .hero-visual {
        height: 350px;
    }

    .carousel-container {
        height: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}