/* =========================
   FADIA PERSONAL CV
   Beige & Gold Theme
========================= */

:root {
    --cream: #faf7f0;
    --beige: #eee5d6;
    --gold: #b99a61;
    --gold-dark: #967747;
    --brown: #514435;
    --text: #40382f;
    --muted: #857b6d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.9;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

/* Header */

.header {
    background: rgba(250, 247, 240, 0.96);
    border-bottom: 1px solid #e8decd;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    color: var(--brown);
    font-size: 27px;
    font-weight: 800;
    text-decoration: none;
    direction: ltr;
}

.logo span {
    color: var(--gold);
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--gold-dark);
}

/* Hero */

.hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 12% 30%, #eee3cf 0, transparent 35%),
        var(--cream);
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 55px;
    padding-top: 75px;
    padding-bottom: 75px;
}

.hero-text {
    flex: 1;
}

.welcome {
    color: var(--gold-dark);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 47px;
    font-weight: 800;
    color: var(--brown);
    margin: 12px 0;
}

.hero h2 {
    font-size: 20px;
    color: var(--gold-dark);
    direction: ltr;
    text-align: right;
    letter-spacing: 0.5px;
}

.intro {
    max-width: 580px;
    color: var(--muted);
    font-size: 16px;
    margin: 22px 0 30px;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}

/* Hero Card */

.hero-card {
    width: 350px;
    min-height: 340px;
    background: linear-gradient(145deg, #f0e6d6, #e4d5be);
    border: 1px solid #dfceb0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(101, 79, 45, 0.09);
}

.initials {
    width: 150px;
    height: 150px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-dark);
    font-size: 53px;
    font-weight: 700;
    font-family: Georgia, serif;
    direction: ltr;
    margin-bottom: 25px;
}

.hero-card h3 {
    font-size: 17px;
    color: var(--brown);
    direction: ltr;
}

.hero-card p {
    color: var(--muted);
    font-size: 12px;
    direction: ltr;
    margin-top: 5px;
}

/* Sections */

.section {
    padding: 85px 0;
}

.soft-section {
    background: var(--beige);
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: var(--brown);
    margin-bottom: 42px;
}

.section-title span {
    color: var(--gold-dark);
}

/* About */

.about-box {
    max-width: 850px;
    margin: auto;
    background: var(--white);
    padding: 35px;
    border: 1px solid #e8dfd1;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(85, 67, 43, 0.04);
}

.about-box p {
    color: var(--muted);
    font-size: 16px;
    text-align: justify;
}

.about-box p + p {
    margin-top: 18px;
}

/* Skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill {
    background: var(--white);
    color: var(--brown);
    border: 1px solid #e5d9c5;
    border-radius: 9px;
    padding: 20px 10px;
    text-align: center;
    font-weight: 700;
    direction: ltr;
    transition: 0.3s;
}

.skill:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(125, 98, 52, 0.08);
}

/* Education */

.education-box {
    max-width: 850px;
    margin: 18px auto;
    background: var(--white);
    padding: 28px;
    border: 1px solid #e8dfd1;
    border-right: 4px solid var(--gold);
    border-radius: 10px;
}

.small-label {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.education-box h3 {
    color: var(--brown);
    font-size: 19px;
    margin-bottom: 8px;
}

.education-box p {
    color: var(--muted);
    font-size: 15px;
}

/* Contact */

.contact-text {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-links a {
    color: var(--gold-dark);
    border: 1px solid var(--gold);
    background: var(--cream);
    padding: 11px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.contact-links a:hover {
    background: var(--gold);
    color: var(--white);
}

/* Footer */

footer {
    text-align: center;
    padding: 25px;
    background: var(--brown);
    color: #eee5d6;
    font-size: 13px;
}

/* Reveal Animation */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 768px) {

    .nav {
        flex-direction: column;
        padding: 15px 0;
    }

    nav {
        justify-content: center;
        gap: 13px;
    }

    nav a {
        font-size: 12px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero h2 {
        text-align: center;
        font-size: 17px;
    }

    .hero-card {
        width: 100%;
        max-width: 350px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 25px;
    }

    .about-box {
        padding: 23px;
    }
}

@media (max-width: 380px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 29px;
    }
}