/* =========================================================
   JENNIFER UGWOKE — CLOUD SECURITY PORTFOLIO
   Premium • Interactive • Animated
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');


/* =========================================================
   COLOR SYSTEM
========================================================= */

:root {

    --bg: #10181b;
    --bg-deep: #0a1012;
    --bg-soft: #172226;

    --sand: #d6c6a8;
    --sand-light: #eee5d4;
    --sand-dark: #b9a88c;

    --teal: #8fc3b4;
    --teal-light: #b2d9cc;
    --teal-dark: #537f76;

    --white: #f7f3eb;
    --text-dim: #b9b8ae;

    --line: rgba(238, 229, 212, 0.14);

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   GLOBAL
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {

    margin: 0;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(83, 127, 118, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(214, 198, 168, 0.05),
            transparent 30%
        ),
        var(--bg);

    color: var(--sand-light);

    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}


/* =========================================================
   ANIMATED BACKGROUND GRID
========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: 0.035;

    background-image:
        linear-gradient(
            rgba(214,198,168,0.5) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(214,198,168,0.5) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );

    z-index: -1;
}


/* =========================================================
   BASIC ELEMENTS
========================================================= */

a {
    color: var(--teal-light);
    text-underline-offset: 0.25em;
    transition: 0.3s ease;
}

a:hover {
    color: var(--sand-light);
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.container {

    max-width: 70rem;

    margin: 0 auto;

    padding:
        0
        clamp(1.25rem, 5vw, 4rem);
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {

    position: sticky;
    top: 0;

    z-index: 100;

    background:
        rgba(10, 16, 18, 0.82);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid var(--line);
}

.nav-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 1rem;

    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {

    font-family: var(--serif);

    font-style: italic;

    font-size: 1.6rem;

    color: var(--sand-light);

    text-decoration: none;

    position: relative;
}

.logo::after {

    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    background: var(--teal);

    border-radius: 50%;

    right: -10px;
    bottom: 8px;

    animation: pulse 2s infinite;
}

.nav-links {

    display: flex;

    gap: 1.7rem;

    flex-wrap: wrap;
}

.nav-links a {

    position: relative;

    color: var(--text-dim);

    text-decoration: none;

    font-size: 0.9rem;

    transition: color 0.3s ease;
}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--teal);

    transition: width 0.3s ease;
}

.nav-links a:hover {

    color: var(--sand-light);
}

.nav-links a:hover::after {

    width: 100%;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: calc(100vh - 4rem);

    display: flex;

    align-items: center;

    padding: 5rem 0;

    position: relative;
}


/* glowing decorative circle */

.hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -160px;
    top: 10%;

    background:
        radial-gradient(
            circle,
            rgba(143,195,180,0.18),
            transparent 70%
        );

    filter: blur(10px);

    animation: floatingGlow 7s ease-in-out infinite;

    pointer-events: none;
}


/* second glow */

.hero::after {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    left: -120px;
    bottom: 0;

    background:
        radial-gradient(
            circle,
            rgba(214,198,168,0.08),
            transparent 70%
        );

    animation: floatingGlow 9s ease-in-out infinite reverse;

    pointer-events: none;
}


.hero-container {

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: clamp(2rem, 6vw, 5rem);

    align-items: center;

    width: 100%;

    position: relative;

    z-index: 2;
}


/* =========================================================
   HERO TEXT
========================================================= */

.hero-intro {

    color: var(--teal);

    text-transform: uppercase;

    letter-spacing: 0.18em;

    font-size: 0.75rem;

    font-weight: 600;

    margin-bottom: 0.8rem;

    animation: fadeUp 0.8s ease both;
}

.hero h1 {

    font-family: var(--serif);

    font-weight: 400;

    font-style: italic;

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1;

    letter-spacing: -0.025em;

    margin-bottom: 1rem;

    color: var(--sand-light);

    animation: fadeUp 0.9s ease 0.1s both;
}

.hero h2 {

    font-family: var(--serif);

    font-weight: 400;

    font-size: clamp(1.35rem, 2.6vw, 1.8rem);

    color: var(--sand);

    animation: fadeUp 0.9s ease 0.2s both;
}

.hero-role {

    color: var(--teal-light);

    font-weight: 600;

    letter-spacing: 0.04em;

    margin:
        0.5rem
        0
        1.5rem;

    animation: fadeUp 0.9s ease 0.3s both;
}

.hero-description {

    max-width: 32rem;

    color: var(--text-dim);

    font-size: 1.1rem;

    margin-bottom: 2rem;

    animation: fadeUp 0.9s ease 0.4s both;
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {

    display: flex;

    gap: 0.9rem;

    flex-wrap: wrap;

    animation: fadeUp 0.9s ease 0.5s both;
}

.btn {

    display: inline-block;

    padding:
        0.75rem
        1.5rem;

    border-radius: 999px;

    font-weight: 600;

    text-decoration: none;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.25);
}

.primary-btn {

    background:
        linear-gradient(
            135deg,
            var(--sand-light),
            var(--sand)
        );

    color: var(--bg);

    border: 1px solid var(--sand-light);
}

.primary-btn:hover {

    background:
        linear-gradient(
            135deg,
            var(--teal-light),
            var(--teal)
        );

    color: var(--bg);
}

.secondary-btn {

    background:
        rgba(255,255,255,0.02);

    color: var(--sand-light);

    border:
        1px solid
        rgba(214,198,168,0.3);

    backdrop-filter: blur(8px);
}

.secondary-btn:hover {

    border-color: var(--teal);

    color: var(--teal-light);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {

    justify-self: center;

    width: min(100%, 22rem);

    animation:
        imageReveal
        1.2s
        ease
        0.3s
        both;
}

.hero-image-frame {

    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: var(--bg-soft);

    border-radius:
        48%
        48%
        1.5rem
        1.5rem;

    outline:
        1px solid
        rgba(214,198,168,0.35);

    outline-offset: 1rem;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.hero-image-frame::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(143,195,180,0.15),
            transparent 45%,
            rgba(214,198,168,0.12)
        );

    z-index: 2;

    pointer-events: none;
}

.hero-image-frame::after {

    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    right: -35px;
    bottom: -35px;

    border:
        1px solid
        var(--teal);

    transform: rotate(45deg);

    z-index: 3;
}

.hero-image-frame:hover {

    transform:
        translateY(-10px)
        rotate(1deg);

    box-shadow:
        0 40px 100px
        rgba(0,0,0,0.55),
        0 0 50px
        rgba(143,195,180,0.12);
}

.hero-image-frame img {

    position: relative;

    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: 50% 18%;

    display: block;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.hero-image-frame:hover img {

    transform: scale(1.04);

    filter:
        saturate(1.05)
        contrast(1.05);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {

    padding: 6rem 0;

    border-top:
        1px solid var(--line);

    position: relative;
}

.section-heading {

    margin-bottom: 3rem;
}

.section-heading::after {

    content: "";

    display: block;

    width: 45px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--teal),
            var(--sand)
        );

    margin-top: 1.2rem;

    animation: lineGrow 1s ease both;
}

.section h2,
.contact-content h2 {

    font-family: var(--serif);

    font-weight: 500;

    font-size:
        clamp(
            2rem,
            4vw,
            2.8rem
        );

    color: var(--sand-light);
}

.section-heading p {

    max-width: 38rem;

    margin-top: 0.75rem;

    color: var(--text-dim);
}


/* =========================================================
   ABOUT
========================================================= */

.about-content {

    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap:
        clamp(
            2rem,
            5vw,
            4rem
        );

    align-items: start;
}

.about-quote {

    position: relative;

    padding: 1.5rem;

    background:
        warm cream(
            135deg,
            rgba(143,195,180,0.07),
            rgba(214,198,168,0.03)
        );

    border:
        1px solid
        var(--line);

    border-radius: 1rem;
}

.about-quote::before {

    content: "“";

    position: absolute;

    top: -30px;
    left: 15px;

    font-family: var(--serif);

    font-size: 5rem;

    color: var(--teal);

    opacity: 0.35;
}

.about-quote p {

    font-family: var(--serif);

    font-style: italic;

    font-weight: 300;

    font-size: 1.5rem;

    line-height: 1.5;

    color: var(--sand);
}

.about-text p {

    color: var(--text-dim);

    max-width: 40rem;
}

.about-text p + p {

    margin-top: 1.1rem;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1.5rem;

    align-items: stretch;
}

.project-card {

    background:
        linear-gradient(
            145deg,
            rgba(23,34,38,0.95),
            rgba(15,23,26,0.95)
        );

    border:
        1px solid
        var(--line);

    border-radius: 1.2rem;

    padding: 2rem;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.project-card::before {

    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -60px;
    top: -60px;

    background:
        radial-gradient(
            circle,
            rgba(143,195,180,0.16),
            transparent 70%
        );

    transition:
        transform 0.5s ease;
}

.project-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(143,195,180,0.45);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,0.3);
}

.project-card:hover::before {

    transform: scale(2);
}

.project-card h3 {

    font-family: var(--serif);

    font-weight: 500;

    font-size: 1.5rem;

    line-height: 1.3;

    margin-bottom: 1rem;

    color: var(--sand-light);
}

.project-summary {

    color: var(--text-dim);
}

.project-card h4 {

    font-family: var(--serif);

    font-weight: 500;

    font-size: 1.05rem;

    margin:
        1.5rem
        0
        0.6rem;

    color: var(--sand);
}

.project-done li {

    position: relative;

    padding-left: 1.1rem;

    color: var(--text-dim);

    font-size: 0.98rem;

    line-height: 1.6;
}

.project-done li + li {

    margin-top: 0.6rem;
}

.project-done li::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0.65em;

    width: 0.4rem;
    height: 0.4rem;

    border-radius: 50%;

    background: var(--teal);

    box-shadow:
        0 0 10px
        rgba(143,195,180,0.6);
}

.project-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;

    margin: 1.5rem 0;
}

.project-tags span {

    border:
        1px solid
        rgba(143,195,180,0.25);

    border-radius: 999px;

    padding:
        0.2rem
        0.8rem;

    font-size: 0.82rem;

    color: var(--teal-light);

    background:
        rgba(143,195,180,0.04);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.project-tags span:hover {

    background:
        rgba(143,195,180,0.12);

    border-color:
        var(--teal);
}

.project-links {

    display: flex;

    flex-wrap: wrap;

    gap:
        0.4rem
        1.5rem;

    font-weight: 500;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(14rem, 1fr)
        );

    gap: 2rem;
}

.skill-category {

    padding: 1.3rem;

    border:
        1px solid
        var(--line);

    border-radius: 1rem;

    background:
        rgba(255,255,255,0.015);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.skill-category:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(143,195,180,0.4);
}

.skill-category h3 {

    font-family: var(--serif);

    font-weight: 500;

    font-size: 1.2rem;

    padding-bottom: 0.75rem;

    margin-bottom: 0.5rem;

    border-bottom:
        1px solid
        var(--teal);

    color: var(--sand);
}

.skill-category li {

    padding: 0.45rem 0;

    border-bottom:
        1px solid
        var(--line);

    color: var(--text-dim);

    font-size: 0.98rem;

    transition:
        padding-left 0.3s ease,
        color 0.3s ease;
}

.skill-category li:hover {

    padding-left: 8px;

    color: var(--teal-light);
}


/* =========================================================
   CERTIFICATIONS
========================================================= */

.certifications-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(16rem, 1fr)
        );

    gap: 1.25rem;
}

.certification-card {

    background:
        linear-gradient(
            145deg,
            rgba(23,34,38,0.95),
            rgba(12,19,21,0.95)
        );

    border:
        1px solid
        var(--line);

    border-radius: 1rem;

    padding: 1.5rem;

    display: flex;

    flex-direction: column;

    gap: 0.35rem;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.certification-card::before {

    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    top: -40px;
    right: -40px;

    border-radius: 50%;

    background:
        var(--teal-dark);

    opacity: 0.2;

    transition:
        transform 0.5s ease;
}

.certification-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(143,195,180,0.4);
}

.certification-card:hover::before {

    transform:
        scale(2.5);
}

.certification-card h3 {

    font-family: var(--serif);

    font-weight: 500;

    font-size: 1.15rem;

    line-height: 1.3;

    color: var(--sand-light);
}

.certification-card p {

    color: var(--text-dim);

    font-size: 0.95rem;
}

.cert-year {

    margin-top: auto;

    padding-top: 0.75rem;

    color: var(--teal-light);

    font-variant-numeric: tabular-nums;

    font-weight: 600;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {

    background:
        linear-gradient(
            135deg,
            rgba(143,195,180,0.06),
            rgba(214,198,168,0.03)
        );
}

.contact-content {

    position: relative;
}

.contact-content h2 {

    font-size:
        clamp(
            2.5rem,
            6vw,
            4rem
        );
}

.contact-content p {

    max-width: 36rem;

    margin:
        0.9rem
        0
        2rem;

    color: var(--text-dim);
}

.contact-links {

    display: flex;

    flex-wrap: wrap;

    gap: 0.9rem;
}

.contact-link {

    display: inline-block;

    padding:
        0.7rem
        1.4rem;

    border:
        1px solid
        var(--line);

    border-radius: 999px;

    color: var(--sand-light);

    text-decoration: none;

    font-weight: 500;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.contact-link:hover {

    transform:
        translateY(-3px);

    border-color:
        var(--teal);

    color:
        var(--teal-light);
}


/* =========================================================
   FOOTER
========================================================= */

footer {

    border-top:
        1px solid
        var(--line);

    padding:
        1.75rem 0;

    color:
        var(--text-dim);

    font-size: 0.9rem;
}

.footer-content {

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 0.5rem;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(25px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes imageReveal {

    from {

        opacity: 0;

        transform:
            translateY(30px)
            scale(0.95);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes floatingGlow {

    0%,
    100% {

        transform:
            translate(0, 0);
    }

    50% {

        transform:
            translate(-25px, 20px);
    }
}


@keyframes pulse {

    0%,
    100% {

        transform: scale(1);

        opacity: 1;
    }

    50% {

        transform: scale(1.5);

        opacity: 0.5;
    }
}


@keyframes lineGrow {

    from {

        width: 0;
    }

    to {

        width: 45px;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 860px) {

    .projects-grid,
    .about-content {

        grid-template-columns: 1fr;
    }
}


@media (max-width: 760px) {

    .hero {

        min-height: 0;

        padding:
            3rem 0
            4rem;
    }

    .hero-container {

        grid-template-columns: 1fr;

        gap: 4rem;
    }

    .hero-image {

        order: -1;

        width:
            min(
                70%,
                18rem
            );
    }

    .navbar {

        position: static;
    }

    .nav-container {

        flex-direction: column;

        align-items: flex-start;

        gap: 0.6rem;
    }

    .nav-links {

        gap:
            0.4rem
            1rem;
    }

    .section {

        padding:
            4rem 0;
    }

    .project-card {

        padding:
            1.5rem;
    }
}
@media (max-width: 480px) {

    .hero h1 {

        font-size:
            2.8rem;
    }

    .hero-description {

        font-size:
            1rem;
    }

    .hero-image {

        width:
            65%;
    }

    .nav-links a {

        font-size:
            0.82rem;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}