:root {
    --background: #01150c;
    --background-deep: #001008;
    --surface: #081b12;
    --surface-light: #10271b;
    --primary: #18b65a;
    --primary-bright: #30e875;
    --primary-dark: #0f6f38;
    --text: #ffffff;
    --text-secondary: #a5b6ad;
    --border: rgba(87, 255, 150, 0.18);
    --glow: rgba(24, 182, 90, 0.35);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 22px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(24, 182, 90, 0.13), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(48, 232, 117, 0.08), transparent 28%),
        linear-gradient(145deg, var(--background-deep), var(--background));
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(1, 21, 12, 0.78);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* ==========================================
   BRAND
========================================== */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    text-decoration: none;

    font-family: "Montserrat", sans-serif;
    font-weight: 800;

    transition: all 0.3s ease;
}

.brand-logo 
{
    width: 62px;
    height: 62px;

    display: block;

    object-fit: contain;
    object-position: center;

    padding: 3px;

    border-radius: 50%;

    background: #001d0f;

    border: 1px solid rgba(203, 255, 209, 0.25);

    box-shadow: 0 0 18px rgba(24, 182, 90, 0.25);

    transition: all 0.3s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.05);

    box-shadow: 0 0 28px rgba(24, 182, 90, 0.45);
}

.brand-name {
    color: var(--text);

    letter-spacing: 0.01em;

    transition: color 0.3s ease;
}

.brand:hover .brand-name {
    color: var(--primary-bright);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.nav-links a,
.footer-content a {
    transition: color 0.25s ease;
}

.nav-links a:hover,
.footer-content a:hover {
    color: var(--primary-bright);
}

.nav-cta {
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(24, 182, 90, 0.1);
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: rgba(24, 182, 90, 0.18);
}

.hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    padding: 90px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-one {
    width: 340px;
    height: 340px;
    left: -120px;
    top: 20%;
    background: rgba(24, 182, 90, 0.12);
}

.hero-glow-two {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -80px;
    background: rgba(48, 232, 117, 0.08);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    color: var(--primary-bright);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
}

.hero h1,
.section-heading h2,
.about-section h2,
.contact-section h2 {
    font-family: "Montserrat", sans-serif;
    line-height: 1.1;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
    color: var(--primary-bright);
    text-shadow: 0 0 34px rgba(48, 232, 117, 0.22);
}

.hero-text {
    max-width: 670px;
    margin-top: 26px;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: #00190a;
    background: linear-gradient(135deg, var(--primary-bright), var(--primary));
    box-shadow: 0 14px 34px rgba(24, 182, 90, 0.24);
}

.button-primary:hover {
    box-shadow: 0 18px 42px rgba(24, 182, 90, 0.34);
}

.button-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
    border-color: rgba(48, 232, 117, 0.42);
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-notes div {
    display: grid;
    gap: 4px;
}

.hero-notes strong {
    font-size: 0.92rem;
}

.hero-notes span {
    max-width: 220px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.hero-visual {
    position: relative;
}

/* ==========================================
   HERO VIDEO
========================================== */

.hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 30px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.065),
        rgba(255, 255, 255, 0.018)
    );

    box-shadow:
        var(--shadow),
        0 0 70px rgba(24, 182, 90, 0.13);

    transform:
        perspective(1200px)
        rotateY(-5deg)
        rotateX(2deg);
}

.hero-video,
.hero-fallback {
    position: absolute;
    inset: 12px;

    width: calc(100% - 24px);
    height: calc(100% - 24px);

    object-fit: cover;
    display: block;

    border-radius: 21px;
}

.hero-fallback {
    z-index: 1;
}

.hero-video {
    z-index: 2;
}

.explore-section,
.about-section,
.contact-section {
    padding: 110px 0;
}

.explore-section {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-heading {
    max-width: 740px;
    margin-bottom: 50px;
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    letter-spacing: -0.04em;
}

.section-heading > p:last-child,
.about-copy,
.contact-box > div > p:last-child {
    margin-top: 18px;
    color: var(--text-secondary);
}

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

.explore-card {
    position: relative;
    min-height: 370px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 10%, rgba(48, 232, 117, 0.11), transparent 28%),
        linear-gradient(145deg, rgba(16, 39, 27, 0.9), rgba(8, 27, 18, 0.94));
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-8px);
    border-color: rgba(48, 232, 117, 0.45);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28), 0 0 34px rgba(24, 182, 90, 0.09);
}

.card-icon {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    margin: 12px 0 32px;

    border-radius: 20px;

    color: #00190a;

    background: linear-gradient(
        145deg,
        var(--primary-bright),
        var(--primary)
    );

    font-size: 1.7rem;
    font-weight: 900;

    box-shadow:
        0 14px 30px rgba(24,182,90,.22);

    transition: all .3s ease;
}

.explore-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.55rem;
}

.explore-card p {
    margin-top: 16px;
    color: var(--text-secondary);
}

.card-link {
    position: absolute;
    left: 34px;
    bottom: 32px;
    color: var(--primary-bright);
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.about-copy {
    display: grid;
    gap: 18px;
    font-size: 1.04rem;
}

.about-copy strong {
    color: var(--text);
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 10%, rgba(48, 232, 117, 0.13), transparent 30%),
        linear-gradient(135deg, var(--surface-light), var(--surface));
    box-shadow: var(--shadow);
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 940px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 70px;
    }

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

    .hero-grid {
        gap: 55px;
    }

   .hero-media {
    max-width: 760px;
    transform: none;
}

    .about-grid {
        gap: 30px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-name {
        display: none;
    }

    .nav-cta {
        padding: 10px 14px;
    }

    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
    }

    .hero-actions,
    .button {
        width: 100%;
    }

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

    .explore-card {
        min-height: 390px;
    }

    .contact-box {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px 24px;
    }

    .contact-box .button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }
}
/* =========================================
   BACK TO TOP BUTTON
========================================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: var(--text);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;

    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;

    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    box-shadow: 0 8px 25px var(--glow);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        background-color .3s ease;
}

.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.back-to-top:hover{
    background:var(--primary-dark);
    transform:translateY(-4px);
}

.back-to-top:focus-visible{
    outline:3px solid var(--primary-light);
    outline-offset:4px;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content,
    .hero-text,
    .hero-visual {
        width: 100%;
        max-width: 100%;
    }

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

    .portfolio-navbar {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .portfolio-nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .projects-grid,
    .skills-list {
        grid-template-columns: 1fr;
    }

}