/* ===== CSS Variables ===== */
:root {
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #5341d6;
    --accent: #00D2FF;
    --accent-2: #7C4DFF;
    --bg: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a25;
    --text: #e4e4e7;
    --text-muted: #71717a;
    --text-heading: #fafafa;
    --border: rgba(255, 255, 255, 0.06);
    --gradient: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--accent-2) 100%);
    --gradient-text: linear-gradient(135deg, var(--accent), var(--primary-light), var(--accent-2));
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: var(--radius);
}

.btn-header {
    background: var(--gradient);
    color: #fff;
    padding: 10px 24px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
}

.btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.logo span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--text-heading);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content h1 {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--text-heading);
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description strong {
    color: var(--primary-light);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.3s both;
}

.avatar-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.15;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

.avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(108, 92, 231, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    box-shadow: var(--shadow);
    z-index: 3;
    backdrop-filter: blur(10px);
}

.card-flutter {
    top: 40px;
    right: 10px;
    animation: float 6s ease-in-out infinite;
}

.card-dart {
    bottom: 80px;
    left: 0;
    animation: float 6s ease-in-out infinite 1s;
}

.card-fire {
    bottom: 30px;
    right: 30px;
    animation: float 6s ease-in-out infinite 2s;
}

/* Background Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== About ===== */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.about-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Services ===== */
.services {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card-featured {
    border-color: rgba(108, 92, 231, 0.3);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.05) 0%, var(--bg-card) 100%);
    transform: scale(1.03);
}

.service-card-featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-price {
    margin-bottom: 20px;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-heading);
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.service-card > p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-features {
    margin-bottom: 28px;
}

.service-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

/* ===== Stack ===== */
.stack {
    padding: 120px 0;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: default;
}

.stack-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
}

.stack-icon {
    font-size: 32px;
    line-height: 1;
}

.stack-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
}

/* ===== Reviews ===== */
.reviews {
    padding: 120px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.review-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.review-stars {
    color: #FFD700;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-card > p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.review-author strong {
    display: block;
    font-size: 14px;
    color: var(--text-heading);
}

.review-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Contact ===== */
.contact {
    padding: 120px 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: var(--gradient);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
}

.contact-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 16px auto 40px;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.contact-socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-socials a:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.1); }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-overlay a {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.mobile-menu-overlay a:hover {
    color: var(--primary-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .service-card-featured {
        transform: none;
    }

    .service-card-featured:hover {
        transform: translateY(-4px);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav, .btn-header {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        letter-spacing: -1px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        order: -1;
    }

    .avatar-wrapper {
        width: 300px;
        height: 300px;
    }

    .avatar {
        width: 220px;
        height: 220px;
    }

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

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

    .contact-card {
        padding: 48px 24px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
