@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #007bff;
    --hero-bg: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --features-bg: #e3f2fd;
    --card-bg: #fff;
    --pricing-bg: #fff;
    --footer-bg: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --shadow: rgba(0, 0, 0, 0.1);
    --cta-bg: linear-gradient(135deg, #4dabf7 0%, #2196f3 100%);
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: rgba(18, 18, 18, 0.95);
    --header-text: #4dabf7;
    --hero-bg: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    --features-bg: #1e1e1e;
    --card-bg: #2a2a2a;
    --pricing-bg: #121212;
    --footer-bg: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    --shadow: rgba(0, 0, 0, 0.3);
    --cta-bg: linear-gradient(135deg, #4dabf7 0%, #2196f3 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    color: var(--header-text);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

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

#logo {
    height: 40px;
    width: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

nav ul li {
    margin-left: 30px;
}

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

nav ul li a:hover {
    color: #0056b3;
}

.menu-toggle, .theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--header-text);
    display: none;
}

.theme-toggle {
    margin-left: 20px;
    display: block;
}

.hero {
    background: var(--hero-bg);
    color: #fff;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero-image img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 1s ease-out 0.5s both;
}

.cta-button {
    background: var(--cta-bg);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 171, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::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: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.5);
}

.features {
    padding: 100px 0;
    background-color: var(--features-bg);
    animation: fadeIn 1s ease-out 0.5s both;
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    font-size: 2.5rem;
    color: #007bff;
}

body.dark-mode .features h2 {
    color: #4dabf7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    animation: slideIn 0.8s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.7s; }
.feature-item:nth-child(2) { animation-delay: 0.8s; }
.feature-item:nth-child(3) { animation-delay: 0.9s; }
.feature-item:nth-child(4) { animation-delay: 1.0s; }
.feature-item:nth-child(5) { animation-delay: 1.1s; }
.feature-item:nth-child(6) { animation-delay: 1.2s; }
.feature-item:nth-child(7) { animation-delay: 1.3s; }
.feature-item:nth-child(8) { animation-delay: 1.4s; }
.feature-item:nth-child(9) { animation-delay: 1.5s; }
.feature-item:nth-child(10) { animation-delay: 1.6s; }
.feature-item:nth-child(11) { animation-delay: 1.7s; }
.feature-item:nth-child(12) { animation-delay: 1.8s; }

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.feature-item h3 {
    margin-top: 0;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
}

body.dark-mode .feature-item h3 {
    color: #4dabf7;
}

.feature-item p {
    color: var(--text-color);
    font-weight: 400;
}

.pricing {
    padding: 100px 0;
    background-color: var(--pricing-bg);
    animation: fadeIn 1s ease-out 1s both;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    font-size: 2.5rem;
    color: #007bff;
}

body.dark-mode .pricing h2 {
    color: #4dabf7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pricing-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    animation: slideIn 0.8s ease-out both;
}

.pricing-card:nth-child(1) { animation-delay: 1.2s; }
.pricing-card:nth-child(2) { animation-delay: 1.3s; }

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.pricing-card.premium {
    border: 2px solid #007bff;
    position: relative;
}

body.dark-mode .pricing-card.premium {
    border: 2px solid #4dabf7;
}

.pricing-card.premium::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hero-bg);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    margin-top: 20px;
    font-weight: 700;
    color: #007bff;
}

body.dark-mode .pricing-card h3 {
    color: #4dabf7;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #4dabf7;
    margin: 20px 0;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-card ul li {
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    padding-left: 25px;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

body.dark-mode .pricing-card ul li::before {
    color: #4dabf7;
}

footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 50px 0 30px;
    text-align: center;
    animation: fadeIn 1s ease-out 1.5s both;
}

footer h2 {
    margin-top: 0;
    font-weight: 700;
    margin-bottom: 20px;
}

footer p {
    font-weight: 300;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-image img {
        max-width: 90%;
    }
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--header-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
    }
    nav ul li {
        margin: 20px 0;
    }
    nav ul li a {
        font-size: 1.2rem;
    }
    .menu-toggle {
        display: block;
    }
    .theme-toggle {
        display: block;
    }
    header .container {
        position: relative;
    }
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .menu-toggle {
        position: absolute;
        left: 20px;
    }
    .theme-toggle {
        position: absolute;
        right: 20px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }
}

nav.open ul {
    left: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px var(--shadow);
    animation: slideIn 0.3s ease;
}

.close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #007bff;
}

.modal h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.modal p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.modal form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.modal input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.modal button {
    margin-top: 20px;
    width: 100%;
}