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

:root {
    --bg-color: #050505;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --primary-accent: #00f2ff;
    --secondary-accent: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-primary: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-accent);
}

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

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.centered-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Header & Hero */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero_background.svg?v=1.3');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    /* Optimize painting */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.header-logo-area {
    margin-bottom: 2rem;
}

.header-logo-area img {
    max-width: 300px;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-accent);
    box-shadow: 0 12px 40px rgba(0, 242, 255, 0.15);
}

.card ul {
    list-style: none;
    margin-top: 1rem;
}

.card li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.card li strong {
    color: var(--text-primary);
}

.card li::before {
    content: '→';
    color: var(--primary-accent);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.5);
}

.collapsible {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    margin-top: auto;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.collapsible:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Collapsible Content */
.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-top: 0;
    /* Changed from 1rem to avoid gap when hidden */
}

.content.active {
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Blockquote / Promo */
blockquote {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

blockquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

blockquote * {
    position: relative;
    z-index: 1;
    color: white !important;
}

blockquote p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--surface-border);
    margin-top: 4rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Animations - Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.carousel-track {
    display: flex;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--primary-accent);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-accent);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: auto;
        padding: 6rem 1rem;
    }

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

    .carousel {
        aspect-ratio: 4 / 3;
    }
}