/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    background: #070b2a;
    color: #fff;
    overflow-y: scroll;
}

/* =========================
   NAVBAR
========================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7,11,42,0.65);
    backdrop-filter: blur(14px);
    padding: 18px 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #ddd;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    transition: 0.3s ease;
}

/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(12px, 12px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(11px, -11px);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #ff2c2c, #ff6a6a);
    transition: width 0.35s ease;
}

nav a:hover {
    color: #fff;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #ff2c2c;
}

nav a.active::after {
    width: 100%;
    box-shadow: 0 0 12px rgba(255,44,44,0.7);
}

/* =========================
   PAGE SYSTEM
========================= */
.page {
    height: 100vh;
    scroll-snap-align: start;
    padding: 120px;
    display: flex;
    align-items: center;
}

/* HERO */
.hero {
    justify-content: space-between;
}

.hero-text {
    max-width: 620px; /* MASTER WIDTH */
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 800;
}

.hero-text span {
    color: #ff2c2c;
}

/* SOCIAL ICONS */
.socials {
    margin: 25px 0;
}

.socials i {
    font-size: 22px;
    margin-right: 22px;
    color: #fff;
    transition: 0.3s;
}

.socials i:hover {
    color: #ff2c2c;
}

/* IMAGE */
.hero-image {
    position: relative;
}

.image-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255,44,44,0.6), transparent 70%);
    filter: blur(40px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image img {
    width: 460px;
    position: relative;
    z-index: 1;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

/* WORK PAGE */
.work {
    flex-direction: column;
    align-items: flex-start;
}

/* =========================
   ABOUT (PERFECT MATCH)
========================= */
.about-box {
    max-width: 620px; /* SAME AS HERO */
    width: 100%;
}

/* =========================
   SKILLS
========================= */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 25px;
    width: 100%;
}

.skill-card {
    padding: 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    transition: 0.35s ease;
    text-decoration: none;
    color: #fff;
}

.skill-card:hover {
    transform: translateY(-15px);
    border-color: #ff2c2c;
}

/* =========================
   PROJECTS
========================= */
.project-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 25px;
    width: 100%;
}

.project-card {
    padding: 25px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
}

.project-card a {
    display: inline-block;
    margin-top: 14px;
    color: #ff2c2c;
    text-decoration: none;
}

/* =========================
   BUTTONS
========================= */
.btn-red,
.btn-dark {
    padding: 14px 34px;
    border-radius: 30px;
}

.btn-red {
    background: #ff2c2c;
    color: white;
    text-decoration: none;
}

.btn-dark {
    background: transparent;
    border: 1px solid #555;
    color: white;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

    /* NAVBAR */
    header {
        padding: 14px 16px;
        gap: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        left: 0;
        top: 60px;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(7, 11, 42, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 99;
    }

    nav.active {
        transform: translateX(0);
    }

    nav a {
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
        width: 100%;
    }

    nav a::after {
        display: none;
    }

    nav a.active {
        background: rgba(255, 44, 44, 0.1);
    }

    /* PAGE LAYOUT */
    .page {
        padding: 100px 20px 40px;
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    /* HERO SECTION */
    .hero {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .hero-text {
        max-width: 100%;
        width: 100%;
    }

    .hero-text h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hero-text h1 {
        font-size: 48px;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* SOCIAL ICONS */
    .socials {
        margin: 20px 0;
    }

    .socials i {
        font-size: 20px;
        margin-right: 20px;
    }

    /* HERO IMAGE */
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        width: 280px;
        height: auto;
    }

    .image-glow {
        width: 260px;
        height: 260px;
    }

    /* BUTTONS */
    .buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }

    .btn-red,
    .btn-dark {
        padding: 12px 24px;
        font-size: 14px;
        flex: 1;
        min-width: 140px;
        text-align: center;
    }

    /* SECTION TITLES */
    .page h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    /* ABOUT PAGE */
    .about-box {
        max-width: 100%;
        width: 100%;
    }

    /* SKILLS */
    .skill-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .skill-card {
        padding: 20px;
        font-size: 14px;
    }

    /* PROJECTS */
    .project-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .project-card {
        padding: 20px;
        font-size: 14px;
    }

    .project-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .project-card p {
        font-size: 14px;
    }

    /* SCROLL INDICATOR */
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 12px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        top: 50px;
        height: calc(100vh - 50px);
    }

    nav a {
        padding: 14px 16px;
        font-size: 15px;
    }

    .page {
        padding: 80px 16px 30px;
    }

    .hero {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 36px;
        line-height: 1;
    }

    .hero-text h4 {
        font-size: 14px;
    }

    .hero-text p {
        font-size: 13px;
    }

    .hero-image img {
        width: 240px;
    }

    .image-glow {
        width: 220px;
        height: 220px;
    }

    .socials i {
        font-size: 18px;
        margin-right: 16px;
    }

    .buttons {
        gap: 8px;
    }

    .btn-red,
    .btn-dark {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 120px;
    }

    .page h2 {
        font-size: 26px;
    }

    .skill-card {
        padding: 16px;
        font-size: 13px;
    }

    .project-card {
        padding: 16px;
    }

    .project-card h3 {
        font-size: 16px;
    }

    .project-card p {
        font-size: 13px;
    }
}
