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

/* ===== VARIABLES ===== */
:root {
    --primary: #a855f7;
    --primary-rgb: 168, 85, 247;
    --secondary: #6366f1;
    --secondary-rgb: 99, 102, 241;
    --accent: #ec4899;
    --accent-rgb: 236, 72, 153;
    --aurora-1: #7c3aed;
    --aurora-2: #a855f7;
    --aurora-3: #6366f1;
    --aurora-4: #8b5cf6;
    --bg-dark: #0c0515;
    --bg-card: rgba(20, 10, 35, 0.7);
    --text-primary: #f5f3ff;
    --text-secondary: #c4b5fd;
    --text-muted: #8b7fb5;
    --border-color: rgba(168, 85, 247, 0.2);
    --glow: 0 0 30px rgba(168, 85, 247, 0.3);
    --border-radius: 28px;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== AURORA BACKGROUND ===== */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at 40% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 70% at 70% 60%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    animation: auroraFlow 15s ease-in-out infinite;
}

.aurora-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100% 40% at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: auroraPulse 8s ease-in-out infinite alternate;
}

@keyframes auroraFlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(2%, 3%) rotate(2deg) scale(1.02);
    }
    50% {
        transform: translate(-1%, 2%) rotate(-1deg) scale(1.01);
    }
    75% {
        transform: translate(1%, -2%) rotate(1deg) scale(1.03);
    }
}

@keyframes auroraPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Stars overlay */
.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.25), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 400px 60px, rgba(255,255,255,0.35), transparent);
    background-size: 500px 200px;
    animation: starsMove 100s linear infinite;
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 500px; }
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 40px;
    background: rgba(12, 5, 21, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)); }
}

/* ===== NAVIGATION ===== */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav ul li a {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--text-primary);
}

nav ul li a:hover::before {
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 40px 100px;
    text-align: center;
    position: relative;
}

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

.hero h1 {
    font-size: clamp(2.8em, 7vw, 5em);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -2px;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(50px);
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--aurora-1) 0%, var(--primary) 25%, var(--accent) 50%, var(--secondary) 75%, var(--aurora-4) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero p {
    font-size: 1.3em;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 45px;
    line-height: 1.9;
    animation: heroFadeIn 1.2s ease-out 0.2s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 45px;
    font-size: 1.15em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.4);
    animation: heroFadeIn 1.2s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.hero-cta::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.6s ease;
}

.hero-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(var(--primary-rgb), 0.5);
}

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

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

/* ===== SECTION CARDS ===== */
.section-card {
    padding: 60px;
    margin-bottom: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: cardReveal 0.8s ease-out forwards;
}

.section-card:nth-child(1) { animation-delay: 0.1s; }
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.3s; }
.section-card:nth-child(4) { animation-delay: 0.4s; }
.section-card:nth-child(5) { animation-delay: 0.5s; }
.section-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Aurora glow on cards */
.section-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--accent));
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.section-card:hover::before {
    opacity: 0.5;
}

.section-card:hover {
    border-color: transparent;
    box-shadow: var(--glow);
}

/* ===== TYPOGRAPHY ===== */
h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 18px;
}

h2 .icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
    border-radius: 18px;
    font-size: 1.3em;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

h3 {
    font-size: 1.35em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

p {
    color: var(--text-secondary);
    font-size: 1.08em;
    margin-bottom: 18px;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===== LISTS ===== */
ol, ul {
    padding-left: 0;
    list-style: none;
    margin: 28px 0;
}

ol li, ul li {
    position: relative;
    padding: 14px 0 14px 45px;
    color: var(--text-secondary);
    font-size: 1.08em;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

ol li:last-child, ul li:last-child {
    border-bottom: none;
}

ol {
    counter-reset: item;
}

ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 14px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
}

ul li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
}

/* ===== IMAGES ===== */
.image-wrapper {
    margin: 35px 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(12, 5, 21, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.image-wrapper:hover img {
    transform: scale(1.08);
}

/* ===== CTA BUTTON ===== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 45px;
    margin-top: 35px;
    font-family: 'Sora', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.4);
    position: relative;
    overflow: hidden;
}

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

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

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(var(--primary-rgb), 0.5);
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.feature-item {
    padding: 35px;
    background: rgba(168, 85, 247, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.feature-item:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
}

.feature-item .feature-icon {
    font-size: 2.8em;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    margin-bottom: 14px;
}

.feature-item p {
    font-size: 0.98em;
    margin: 0;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(168, 85, 247, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.faq-question {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 20px;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 500;
}

.faq-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.6em;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer-inner {
    padding: 0 28px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

/* ===== PHOTO SHOWCASE ===== */
.photo-showcase {
    margin: 40px 0;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
}

.photo-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    animation: photoGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes photoGlow {
    from { opacity: 0.3; }
    to { opacity: 0.8; }
}

.photo-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.photo-showcase:hover img {
    transform: scale(1.1);
}

.photo-showcase .photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(12, 5, 21, 0.95));
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.photo-showcase:hover .photo-caption {
    transform: translateY(0);
}

.photo-caption h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.4em;
}

.photo-caption p {
    margin: 0;
    font-size: 1em;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    padding: 18px 24px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 1em;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

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

.submit-btn {
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.4);
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 40px;
    background: rgba(12, 5, 21, 0.95);
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--secondary), transparent);
}

.footer-logo {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
}

footer p {
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 10px;
}

.footer-keywords {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    font-size: 0.85em;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 20px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

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

    .container {
        padding: 0 20px 60px;
    }

    .section-card {
        padding: 35px 28px;
    }

    h2 {
        font-size: 1.7em;
    }

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

@media (max-width: 480px) {
    nav ul li a {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.1em;
    }
}