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

/* ===== VARIABLES ===== */
:root {
    --primary: #0ff;
    --primary-rgb: 0, 255, 255;
    --secondary: #00d4ff;
    --accent: #7b61ff;
    --bg-dark: #050a0f;
    --bg-gradient: linear-gradient(135deg, #0a1015 0%, #0d1a22 50%, #0a0f15 100%);
    --glass-bg: rgba(15, 25, 35, 0.6);
    --glass-border: rgba(0, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0b4c0;
    --text-muted: #6a7d8a;
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.bg-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 97, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%);
    animation: bgFloat 20s ease-in-out infinite;
}

.bg-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* ===== GLASS CARD ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 40px;
    background: rgba(5, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.8s ease-out;
}

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

.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;
}

.logo span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* ===== 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: 10px 20px;
    border-radius: 12px;
    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(123, 97, 255, 0.1));
    opacity: 0;
    transition: var(--transition);
}

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

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

nav ul li a.external {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(123, 97, 255, 0.15));
    border: 1px solid var(--glass-border);
}

nav ul li a.external:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero h1 {
    font-size: clamp(2.5em, 6vw, 4.5em);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25em;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(var(--primary-rgb), 0.4);
}

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

.hero-cta svg {
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

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

/* ===== SECTIONS GRID ===== */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

/* ===== SECTION CARDS ===== */
.section-card {
    padding: 50px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal 0.8s ease-out forwards;
    transition: var(--transition);
}

.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; }
.section-card:nth-child(7) { animation-delay: 0.7s; }

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

/* Grid layouts */
.section-card.full { grid-column: span 12; }
.section-card.half { grid-column: span 6; }
.section-card.third { grid-column: span 4; }

/* Hover glow effect */
.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.section-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-5px);
}

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

h2 .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(123, 97, 255, 0.2));
    border-radius: 14px;
    font-size: 1.2em;
}

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

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

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

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

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

ol li, ul li {
    position: relative;
    padding: 12px 0 12px 36px;
    color: var(--text-secondary);
    font-size: 1.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--bg-dark);
}

ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 20px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

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

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(5, 10, 15, 0.8) 100%);
    pointer-events: none;
}

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

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

/* ===== CTA BUTTON ===== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 32px;
    margin-top: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    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.3), transparent);
    transition: left 0.5s ease;
}

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

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.5);
}

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

.feature-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-5px);
}

.feature-item .feature-icon {
    font-size: 2em;
    margin-bottom: 12px;
}

.feature-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95em;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
}

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

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

.faq-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.5em;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
    color: var(--bg-dark);
    transform: rotate(45deg);
}

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

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
}

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

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-8px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 10, 15, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--primary);
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 0;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.03);
    border-style: dashed;
}

.gallery-placeholder span {
    color: var(--text-muted);
    font-size: 1.1em;
}

.gallery-placeholder .plus-icon {
    font-size: 2.5em;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 8px;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(123, 97, 255, 0.2));
    border-radius: 12px;
    font-size: 1.2em;
}

.contact-item span {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95em;
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 40px;
    background: rgba(5, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

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

.footer-logo {
    font-size: 1.5em;
    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.9em;
    margin-bottom: 8px;
}

.footer-keywords {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8em;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .section-card.half,
    .section-card.third {
        grid-column: span 12;
    }
}

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

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

    nav ul {
        justify-content: center;
    }

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

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

    .section-card {
        padding: 30px 24px;
    }

    h2 {
        font-size: 1.6em;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    nav ul li a {
        padding: 8px 14px;
        font-size: 0.85em;
    }

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

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