:root {
    --bg: #0f0f0f;
    --card: #161616;
    --text: #f5f5f5;
    --muted: #b3b3b3;
    --accent: #00ff99;
} 

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

/* ---------- HEADER (MOBILE FIRST) ---------- */
header {
    grid-template-columns: 1fr; /* mobile: single column */
    gap: 2rem;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--muted);
    max-width: 600px;
}

.header-row {
    display: flex;
    flex-direction: column; /* mobile stack */
    gap: 0.75rem;
}

.header-info {
    max-width: 520px;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-icons a {
    color: var(--text);
    font-size: 1.4rem;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    color: var(--accent);
    opacity: 1;
}

.header-image {
    width: 100%;
    position: relative;
    aspect-ratio: 1.25 / 1;
    overflow: hidden;
    border-radius: 14px;
    justify-self: start; /* mobile */
    display: flex;
    align-items: center;
    object-fit: cover;
    object-position: center;
    margin-block: 1em;
}

.header-image img {
    display: flex;
    width: 100%;
    transform: translate(0,15%);
}

.header-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.95),
    rgba(15,15,15,0.0)
    );
    border-radius: 14px;
    pointer-events: none;
}

.tagline {
    margin-top: 0.5rem;
    color: var(--accent);
    font-weight: 500;
}

/* ---------- DESKTOP HEADER ---------- */
@media (min-width: 768px) {
    header {
        display: grid;
        grid-template-columns: 1.5fr 0.5fr;
        align-items: center;
        margin-bottom: 3rem;
    }

    .container{
        text-align: left;
    }
    .header-row {
        flex-direction: row;
        align-items: center;
    }

    .header-image {
        justify-self: end;
        aspect-ratio: 1 / 1;
    }
    .header-image img{
        transform: scale(1.25) translate(0,10%);
    }
    .header-image::after {
        background: linear-gradient(
        90deg,
        rgba(15, 15, 15, 0.95),
        rgba(15,15,15,0.0)
        );
        border-radius: 14px;
        pointer-events: none;
    }
}

/* ---------- SECTIONS ---------- */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skills,
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--card);
    padding: 1.2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

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

/* ---------- VIDEO GRID ---------- */
.background {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
}

.bg-text {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.bg-grid {
    display: grid;
    grid-template-columns: 1fr; /* mobile */
    gap: 1rem;
}

@media (min-width: 700px) {
    .bg-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-width: 260px;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.banner-wide {
    grid-column: 1 / -1;
}

.wide-wrapper img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, #00ff99, #00ccff);
    color: #000;
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
}

.cta a {
    display: inline-block;
    margin-top: 0.75rem;
    background: #000;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
}

footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
