/* =================================
   FADIA PERSONAL PORTFOLIO
   Black & Cyan Theme
================================= */

:root {
    --bg: #070b12;
    --surface: #0d1420;
    --surface-light: #111d2b;
    --cyan: #00d9ff;
    --blue: #168bff;
    --text: #f1f7ff;
    --muted: #9aabc0;
    --border: rgba(0, 217, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--cyan);
    color: #07101a;
}

/* ===== Navigation ===== */

.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 18, 0.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 17px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
}

.logo span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--muted);
    font-size: 13px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

/* ===== General Sections ===== */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 25px;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading span {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 700;
}

.section-heading h2 {
    font-size: 32px;
    margin: 8px 0;
    color: var(--text);
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}

/* ===== Hero ===== */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--blue);
    filter: blur(180px);
    opacity: 0.12;
    top: 80px;
    left: 10%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.welcome {
    color: var(--cyan);
    font-size: 18px;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: clamp(35px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
}

.hero h2 {
    color: var(--cyan);
    font-size: 23px;
    margin-bottom: 22px;
    direction: ltr;
    text-align: right;
}

.hero h2 span {
    color: var(--muted);
    padding: 0 5px;
}

.hero-description {
    color: var(--muted);
    max-width: 600px;
    font-size: 15px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.main-btn,
.outline-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.main-btn {
    background: var(--cyan);
    color: #07101a;
}

.main-btn:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

.outline-btn {
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.outline-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-4px);
}

/* ===== AI Circle ===== */

.hero-visual {
    flex: 0 0 330px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-circle {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.2),
        inset 0 0 30px rgba(0, 217, 255, 0.08);
    animation: float 4s ease-in-out infinite;
    position: relative;
}

.ai-circle::before,
.ai-circle::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
}

.ai-circle::before {
    inset: -18px;
}

.ai-circle::after {
    inset: -35px;
    border-style: dashed;
}

.circle-inner {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.circle-inner span {
    font-size: 65px;
    color: var(--cyan);
    font-weight: 800;
    text-shadow: 0 0 25px var(--cyan);
}

.circle-inner small {
    color: var(--muted);
    letter-spacing: 5px;
    font-size: 12px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== About ===== */

.about-card,
.goals-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 35px;
    max-width: 900px;
    margin: auto;
    transition: 0.3s;
}

.about-card:hover,
.goals-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
}

.about-card p,
.goals-card p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.about-card p:last-child,
.goals-card p:last-child {
    margin-bottom: 0;
}

/* ===== Skills ===== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 25px 15px;
    text-align: center;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.08);
}

.skill-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.skill-card h3 {
    color: var(--cyan);
    font-size: 16px;
    margin-bottom: 5px;
}

.skill-card p {
    color: var(--muted);
    font-size: 12px;
}

/* ===== Projects ===== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.project-card {
    background: linear-gradient(
        145deg,
        var(--surface-light),
        var(--surface)
    );
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 28px 23px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 12px 35px rgba(0, 217, 255, 0.08);
}

.project-number {
    position: absolute;
    top: 15px;
    left: 18px;
    color: rgba(0, 217, 255, 0.3);
    font-size: 25px;
    font-weight: 800;
}

.project-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.project-card h3 {
    color: var(--cyan);
    font-size: 19px;
    margin-bottom: 12px;
}

.project-card > p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.project-tags span {
    font-size: 10px;
    color: var(--cyan);
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 20px;
}

/* ===== Project Buttons ===== */

.project-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.project-actions .project-link {
    padding: 9px 15px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 7px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.project-actions .project-link:hover {
    background: var(--cyan);
    color: #07101a;
}

.source-link {
    color: var(--muted);
    font-size: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    transition: 0.3s;
}

.source-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* ===== Goals ===== */

.goals-card {
    text-align: center;
}

/* ===== Contact ===== */

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-links a {
    min-width: 150px;
    text-align: center;
    padding: 12px 25px;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.contact-links a:hover {
    background: var(--cyan);
    color: #07101a;
    transform: translateY(-4px);
}

/* ===== Footer ===== */

footer {
    border-top: 1px solid var(--border);
    background: #05080e;
    text-align: center;
    padding: 25px 15px;
}

footer p {
    color: var(--muted);
    font-size: 12px;
}

.footer-note {
    color: var(--cyan);
    margin-top: 5px;
    font-size: 11px;
}

/* ===== JavaScript Reveal Animation ===== */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */

@media (max-width: 950px) {

    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-visual {
        flex-basis: 260px;
    }

    .ai-circle {
        width: 220px;
        height: 220px;
    }

    .circle-inner {
        width: 155px;
        height: 155px;
    }

    .circle-inner span {
        font-size: 50px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .section {
        padding: 70px 18px;
    }

    .navbar {
        padding: 14px 12px;
    }

    .nav-links {
        gap: 10px 15px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 65px;
        gap: 45px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 18px;
        text-align: center;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        flex: none;
    }

    .ai-circle {
        width: 190px;
        height: 190px;
    }

    .circle-inner {
        width: 135px;
        height: 135px;
    }

    .circle-inner span {
        font-size: 42px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .goals-card {
        padding: 23px;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-links a {
        width: 100%;
        max-width: 280px;
    }
}