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

:root {
    --bg-1: #0b1220;
    --bg-2: #0f1724;
    --card: rgba(255, 255, 255, 0.04);
    --accent: #00aaff;
    --accent-2: #7c3aed;
    --muted: #9aa6b2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
    color: #e6eef6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a.fancy-a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    position: relative; /* for underline */
}

/* Fancy underline using ::after */
a.fancy-a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px; /* adjust spacing */
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

/* Animate underline on hover */
a.fancy-a:hover::after {
    width: 100%;
}

/* Optional: change text color on hover */
a.fancy-a:hover {
    color: var(--accent-2);
}

.center {
    text-align: center;
    align-items: center;
    align-content: center;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand-link {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.6px;
    text-decoration: none;
}

.brand-link .accent {
    color: var(--accent);
    margin-left: 6px;
}

.nav-list {
    display: flex;
    gap: 22px;
    align-items: center;
    list-style: none;
}

.nav-list.open {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    position: absolute;
    right: 18px;
    top: 64px;
    padding: 12px;
    border-radius: 10px;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

.nav a {
    color: #dfe9f2;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 0;
    display: inline-block;
    transition: all 0.2s;
}

.nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

.nav a.cta {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    padding: 8px 14px;
    border-radius: 10px;
    color: #031024;
}

/* HERO SECTION */
.hero {
    padding: 84px 0 40px;
}

.hero-inner {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.1rem;
    line-height: 1.05;
    color: #fff;
    font-weight: 700;
}

.hero-sub {
    color: var(--muted);
    margin-top: 12px;
    font-weight: 400;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #001122;
    box-shadow: 0 10px 30px rgba(12, 85, 150, 0.14);
    transition: transform 0.18s;
}

.btn.primary:hover {
    transform: translateY(-4px);
}

.btn.outline {
    background: transparent;
    color: #cfe6ff;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* HERO STATS */
.hero-stats {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 28px;
    list-style: none;
    padding: 0;
}

.hero-stats li {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 10px 16px;
    border-radius: 12px;
    color: #cfe6ff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* SECTIONS */
.section {
    padding: 56px 0;
}

.section.alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
}

.section-title {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-lead {
    color: var(--muted);
    margin-bottom: 20px;
}

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(4, 6, 12, 0.6);
    transition: transform 0.18s;
}

.card:hover {
    transform: translateY(-8px);
}

.card-media {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.card-text {
    color: var(--muted);
    font-size: 0.95rem;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

#hobbies .card-video {
    width: 100%;
    height: 160px; /* same height for all videos */
    object-fit: cover; /* ensures videos fill the container without distortion */
    display: block;
    border-radius: 8px 8px 0 0; /* optional: rounded top corners like card */
}

.link-btn {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #cfe6ff;
    text-decoration: none;
    font-weight: 700;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.skill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 18px;
    border-radius: 12px;
    text-align: left;
}

.skill strong {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.pricing-card {
    background: var(--card);
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(4, 6, 12, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card.featured {
    transform: scale(1.06);
    border: 1px solid rgba(0, 170, 255, 0.12);
}

.pricing-card h3 {
    font-size: 1rem;
    color: #fff;
}

.price {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.6rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
    color: var(--muted);
}

/* CONTACT */
.contact-section .contact-form {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 20px;
    border-radius: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: #eaf6ff;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 10px;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 28px 0;
    margin-top: 24px;
    color: var(--muted);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

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

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

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

@media (max-width: 720px) {
    #nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
    }

    .nav-list.open {
        display: flex;
        flex-direction: column;
        right: 14px;
        top: 64px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .cards-grid,
    .skills-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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