@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: #f22f54;
    --primary-rgb: 242, 47, 84;
    --secondary: #ff6b8a;
    --accent: #3aa8d0;
    --accent-rgb: 58, 168, 208;
    --bg-dark: #0d0d1a;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    --glass-bg: rgba(26, 26, 46, 0.6);
    --glass-border: rgba(242, 47, 84, 0.15);
    --glass-shadow: 0 8px 32px rgba(242, 47, 84, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b8c5d0;
    --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.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%);
    animation: bgFloat 25s 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(13, 13, 26, 0.85);
    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 {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* ===== 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(var(--accent-rgb), 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(var(--accent-rgb), 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, 4em);
    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: #fff;
    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-image {
    margin-top: 50px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 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; }
.section-card:nth-child(8) { animation-delay: 0.8s; }

@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(var(--accent-rgb), 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;
}

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

.feature-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    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: 2.5em;
    margin-bottom: 16px;
    display: block;
}

.feature-item h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* ===== STEPS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

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

.step-number {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
}

.step-item h3 {
    margin-bottom: 16px;
}

.step-item p {
    font-size: 0.95em;
    margin: 0;
}

/* Connector lines */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* ===== IMAGE WRAPPER ===== */
.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(13, 13, 26, 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);
}

/* ===== PHOTO SHOWCASE (NEW) ===== */
.photo-showcase {
    position: relative;
    margin: 30px 0;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    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.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

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

.photo-showcase .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 13, 26, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.photo-showcase:hover .photo-overlay {
    opacity: 1;
}

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

.photo-showcase .photo-overlay p {
    color: var(--text-secondary);
    margin: 0;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.photo-placeholder .icon {
    font-size: 4em;
    margin-bottom: 16px;
    opacity: 0.5;
}

.photo-placeholder span {
    font-size: 1.2em;
}

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

.testimonial-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
}

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

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.8;
}

.testimonial-text::before {
    content: '"';
    font-size: 3em;
    color: var(--primary);
    opacity: 0.3;
    line-height: 0;
    display: block;
    margin-bottom: -10px;
}

.testimonial-author {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 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: #fff;
    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;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.cta-section h2 {
    justify-content: center;
    font-size: 2.2em;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    color: #fff;
    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);
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 40px 30px;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--primary);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.footer-column p {
    color: var(--text-muted);
    font-size: 0.95em;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9em;
}

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

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

    .step-item:not(:last-child)::after {
        display: none;
    }
}

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

    .cta-section {
        padding: 40px 24px;
    }
}

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

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