/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.75);
    /* Darkened slightly for better contrast */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* Background Animation */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #4c1d95;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: #2563eb;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 35vw;
    height: 35vw;
    background: #0ea5e9;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(8%, 12%) scale(1.1);
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 0.8rem 5%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    z-index: 1001;
}

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

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

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

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.profile-icon:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    z-index: 1001;
    transition: transform 0.3s;
}

.hamburger svg {
    width: 28px;
    height: 28px;
}

.hamburger line {
    transition: all 0.3s ease;
    transform-box: fill-box;
    transform-origin: center;
}

/* Hero Section */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    perspective: 1000px;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    transform-style: preserve-3d;
    animation: slideUp 1s ease-out;
    margin-top: 5rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h1 span {
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    display: inline-block;
    min-height: 1.2em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

.btn {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform: translateZ(20px);
}

.btn:hover {
    transform: translateY(-5px) translateZ(30px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
    background: var(--primary-hover);
}

/* SEO Content Sections */
.content-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse>* {
    direction: ltr;
}

.text-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.text-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.text-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.text-content ul li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-content ul li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.image-placeholder:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
}

/* FAQs */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-question {
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    /* Removed for the simple full-screen menu */
}

/* Responsive */
@media (max-width: 992px) {

    .two-column,
    .two-column.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-placeholder {
        transform: none;
    }

    .image-placeholder:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {

    /* Solid background for navbar on scroll */
    nav.scrolled {
        background: var(--bg-color);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: var(--bg-color);
        /* Solid background, no glass */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        justify-content: flex-start;
        transition: right 0.3s ease;
        border-left: none;
        box-shadow: none;
        z-index: 1000;
        padding-top: 6rem;
        /* Push links below navbar */
    }

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

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 500;
        margin: 0.6rem 0;
        width: 100%;
        text-align: center;
        color: var(--text-main);
        /* Plain text color */
    }

    /* Remove the hover underline effect for simplicity on mobile */
    .nav-links a::after {
        display: none;
    }

    /* Profile icon visibility and centering */
    .nav-links a.profile-icon {
        display: flex;
        width: 45px;
        height: 45px;
        margin: 1rem auto;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    /* Transform hamburger into X */
    .hamburger.active line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    h1 {
        font-size: 2.5rem;
    }

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