
/* =====================================================
   RIYAD ZEYNE PORTFOLIO
   Midnight Purple + Neon Mint
===================================================== */


/* ================= ROOT ================= */

:root {
    --bg: #100b1f;
    --bg-light: #17102d;
    --card: #1c1435;
    --card-light: #241a43;

    --mint: #5cffc5;
    --mint-dark: #32dca4;

    --white: #ffffff;
    --text: #eee9fa;
    --muted: #aaa1c2;

    --border: rgba(92, 255, 197, 0.16);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --transition: 0.3s ease;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body::selection {
    background: var(--mint);
    color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
}


/* ================= GENERAL ================= */

.container {
    width: min(1120px, 90%);
    margin: auto;
}

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-label {
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-heading h2 span {
    color: var(--mint);
}

.section-heading > p:last-child {
    color: var(--muted);
}


/* ================= BUTTON ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 23px;

    border-radius: 8px;

    font-weight: 700;

    transition: var(--transition);

    cursor: pointer;
}

.primary-btn {
    background: var(--mint);
    color: #0d1017;
}

.primary-btn:hover {
    background: var(--mint-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(92, 255, 197, 0.2);
}

.secondary-btn {
    border: 1px solid var(--border);
    color: var(--white);
}

.secondary-btn:hover {
    border-color: var(--mint);
    color: var(--mint);
    transform: translateY(-3px);
}


/* ================= NAVBAR ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(16, 11, 31, 0.82);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid transparent;

    transition: var(--transition);
}

.header.scrolled {
    border-color: var(--border);
}

.navbar {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span,
.footer-logo span {
    color: var(--mint);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    position: relative;

    color: var(--muted);

    font-size: 0.88rem;
    font-weight: 600;

    transition: var(--transition);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--mint);

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--mint);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: var(--white);
    font-size: 1.4rem;

    cursor: pointer;
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 140px;

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: 5%;
    right: -150px;

    background: rgba(92, 255, 197, 0.06);

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.hero-intro {
    color: var(--mint);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--mint);
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content h2 span {
    color: var(--mint);
}

.hero-description {
    max-width: 620px;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-socials {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.hero-socials a,
.contact-socials a,
.footer-socials a {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--muted);

    transition: var(--transition);
}

.hero-socials a:hover,
.contact-socials a:hover,
.footer-socials a:hover {
    color: var(--mint);
    border-color: var(--mint);
    transform: translateY(-4px);
}


/* ================= HERO IMAGE ================= */

.hero-image-wrapper {
    position: relative;

    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;

    width: 330px;
    height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--card-light),
            var(--card)
        );

    border: 1px solid var(--border);
    border-radius: 30px;

    box-shadow: var(--shadow);

    transform: rotate(2deg);

    transition: var(--transition);
}

.profile-card:hover {
    transform: rotate(0deg) translateY(-8px);
}

.profile-image {
    width: 245px;
    height: 300px;

    border-radius: 20px;

    overflow: hidden;

    border: 2px solid rgba(92, 255, 197, 0.3);

    background: var(--bg);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glow {
    position: absolute;

    width: 280px;
    height: 280px;

    background: var(--mint);

    opacity: 0.12;

    border-radius: 50%;

    filter: blur(80px);
}

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    background: rgba(28, 20, 53, 0.9);

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow: var(--shadow);

    font-size: 0.78rem;
    font-weight: 700;
}

.floating-card i {
    color: var(--mint);
}

.card-one {
    top: 40px;
    left: -20px;
}

.card-two {
    right: -20px;
    top: 130px;
}

.card-three {
    bottom: 50px;
    left: -30px;
}


/* ================= ABOUT ================= */

.about {
    background: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-box {
    width: 310px;
    height: 360px;

    position: relative;

    display: grid;
    place-items: center;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #281c49,
            #130d27
        );

    border: 1px solid var(--border);
}

.big-letter {
    font-size: 12rem;
    font-weight: 900;
    color: var(--mint);
    opacity: 0.85;
}

.about-decoration {
    position: absolute;

    width: 100px;
    height: 100px;

    border: 2px solid var(--mint);

    right: -20px;
    bottom: -20px;

    border-radius: 20px;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--muted);
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    color: var(--mint);
    font-size: 1.8rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.8rem;
}


/* ================= SKILLS ================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 18px;

    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(92, 255, 197, 0.4);
}

.skill-icon {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: rgba(92, 255, 197, 0.08);

    color: var(--mint);

    font-size: 1.7rem;

    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.skill-bar {
    height: 5px;

    background: #30274a;

    border-radius: 10px;

    overflow: hidden;

    margin-bottom: 8px;
}

.skill-progress {
    height: 100%;
    background: var(--mint);
    border-radius: inherit;
}

.skill-level {
    color: var(--muted);
    font-size: 0.75rem;
}


/* ================= PROJECTS ================= */

.projects {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 18px;

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(92, 255, 197, 0.4);
}

.project-image {
    height: 190px;

    display: grid;
    place-items: center;

    font-size: 4rem;

    color: var(--mint);
}

.project-one {
    background: linear-gradient(135deg, #241344, #102e36);
}

.project-two {
    background: linear-gradient(135deg, #321653, #102b2b);
}

.project-three {
    background: linear-gradient(135deg, #21133f, #173b3b);
}

.project-content {
    padding: 25px;
}

.project-category {
    color: var(--mint);

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content h3 {
    margin: 8px 0 12px;
}

.project-content p {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 22px;
}

.project-tech span {
    padding: 5px 9px;

    border-radius: 5px;

    background: rgba(92, 255, 197, 0.07);

    color: var(--mint);

    font-size: 0.7rem;
    font-weight: 700;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--white);

    font-size: 0.82rem;
    font-weight: 700;

    transition: var(--transition);
}

.project-link:hover {
    color: var(--mint);
}


/* ================= EDUCATION ================= */

.timeline {
    max-width: 800px;
    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 27px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: var(--border);
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 55px 1fr;

    gap: 25px;

    margin-bottom: 40px;
}

.timeline-dot {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--card);

    border: 1px solid var(--mint);

    color: var(--mint);

    z-index: 2;
}

.timeline-content {
    padding: 25px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;
}

.timeline-date {
    color: var(--mint);

    font-size: 0.75rem;
    font-weight: 800;
}

.timeline-content h3 {
    margin-top: 6px;
}

.timeline-content h4 {
    color: var(--muted);

    font-size: 0.85rem;

    margin: 4px 0 12px;
}

.timeline-content p {
    color: var(--muted);
    font-size: 0.9rem;
}


/* ================= RESUME ================= */

.resume {
    background: var(--bg-light);
}

.resume-box {
    display: flex;
    align-items: center;
    gap: 30px;

    padding: 45px;

    background:
        linear-gradient(
            135deg,
            #21153e,
            #132b31
        );

    border: 1px solid var(--border);

    border-radius: 22px;
}

.resume-icon {
    min-width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: rgba(92, 255, 197, 0.1);

    color: var(--mint);

    font-size: 1.8rem;
}

.resume-content {
    flex: 1;
}

.resume-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.resume-content h2 span {
    color: var(--mint);
}

.resume-content p:last-child {
    color: var(--muted);
}


/* ================= CONTACT ================= */

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: rgba(92, 255, 197, 0.08);

    color: var(--mint);
}

.contact-card span {
    display: block;

    color: var(--muted);

    font-size: 0.75rem;
}

.contact-card a,
.contact-card p {
    color: var(--white);

    font-size: 0.9rem;
}

.contact-card a:hover {
    color: var(--mint);
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.contact-form {
    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 0.78rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    background: #130d27;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    color: var(--white);

    resize: vertical;

    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(92, 255, 197, 0.06);
}

.form-message {
    margin-top: 15px;

    color: var(--mint);

    font-size: 0.85rem;
}


/* ================= FOOTER ================= */

.footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);

    background: #0c0818;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
}


/* ================= SCROLL REVEAL ================= */

.section {
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        max-width: 700px;
    }

    .hero-image-wrapper {
        margin-top: 30px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .resume-box {
        flex-wrap: wrap;
    }
}


@media (max-width: 700px) {

    .section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 76px;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 0;

        background: rgba(16, 11, 31, 0.98);

        border-bottom: 1px solid var(--border);

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.4s ease;
    }

    .nav-links.show {
        max-height: 500px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(92, 255, 197, 0.05);
    }

    .nav-link {
        display: block;
        padding: 15px 5%;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-content h1 {
        letter-spacing: -2px;
    }

    .profile-card {
        width: 280px;
        height: 350px;
    }

    .profile-image {
        width: 210px;
        height: 260px;
    }

    .card-one {
        left: -5px;
    }

    .card-two {
        right: -5px;
    }

    .card-three {
        left: 0;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .resume-box {
        padding: 30px;
        text-align: center;
        justify-content: center;
    }

    .resume-icon {
        margin: auto;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

}


@media (max-width: 450px) {

    .container {
        width: 92%;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .profile-card {
        width: 250px;
        height: 320px;
    }

    .profile-image {
        width: 185px;
        height: 235px;
    }

    .floating-card {
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    .timeline-item {
        grid-template-columns: 45px 1fr;
        gap: 15px;
    }

    .timeline-dot {
        width: 45px;
        height: 45px;
    }

    .timeline::before {
        left: 22px;
    }

}
