/* ========================= VARIABLE INITIALISATION ========================= */
:root {
    /* COLORS */
    --bg-main: #ffffff;
    --bg-section: #f3f4f6;
    --bg-card: #ffffff;
    --text-primary: #222;
    --text-secondary: #555;
    --text-light: #f5f5f5;
    --accent-pink: #df4881;
    --accent-purple: #c430d7;
    --border-light: rgba(0, 0, 0, 0.05);
    /* DARK MODE COLORS */
    --dark-bg: #121212;
    --dark-section: #1a1a1a;
    --dark-card: #242424;
    /* SHADOWS */
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, .12);
    --shadow-hover: 0 16px 35px rgba(0, 0, 0, .16);
    --shadow-glow: 0 16px 35px rgba(0, 0, 0, .35), 0 0 18px rgba(223, 72, 129, .18);
    /* RADIUS */
    --radius-large: 20px;
    --radius-medium: 12px;
    --radius-pill: 30px;
    /* TRANSITIONS */
    --transition-fast: .3s;
    --transition-slow: .5s;
    /* GRADIENT */
    --primary-gradient: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
}

/* =========================   DARK MODE VARIABLES========================= */
.dark-mode {
    --bg-main: #121212;
    --bg-section: #1a1a1a;
    --bg-card: #242424;
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --border-light: rgba(255, 255, 255, 0.06);
    background: var(--bg-main);
    color: var(--text-primary);
}

/* =========================   RESET========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    transition: background var(--transition-fast), color var(--transition-fast);
}

/* =========================   GLOBAL TRANSITIONS========================= */
.project-card,
.skill-card,
section,
nav a,
.theme-btn,
.contact-links a {
    transition: var(--transition-fast);
}

/* =========================   HERO SECTION========================= */
.hero {
    width: 100%;
    min-height: 100vh;
    background-image: url("../assets/background.png");
    background-position: center;
    background-size: cover;
    padding: 10px 10%;
}

.dark-mode .hero {
    background-image: url("../assets/background-dark.png");
    background-position: center;
    background-size: cover;
}

/* =========================   NAVBAR========================= */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0px 4px 1px rgba(0, 0, 0, .16);
}

/* =========================   BRAND========================= */
.brand {
    display: flex;
    align-items: center;
    /* gap: 5px; */
}

.logo {
    width: 180px;
}

/* =========================   WEBSITE TITLE========================= */
nav h1 {
    font-size: 32px;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
}

/* =========================   NAV LINKS========================= */
nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

nav ul li a:hover {
    color: var(--accent-purple);
}

/* =========================   THEME BUTTON========================= */
.theme-btn {
    border: none;
    background: var(--bg-card);
    border-radius: 20px;
    cursor: pointer;
    padding: 12px 16px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.theme-btn:hover {
    transform: scale(1.1);
}

.dark-mode .theme-btn {
    background: var(--dark-card);
    color: white;
    box-shadow: 0 4px 10px rgba(223, 72, 129, .25);
}

/* =========================   HERO CONTENT========================= */
.content {
    margin-top: 80px;
    max-width: 80%;
}

.content h1 {
    font-size: 64px;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* =========================   HERO BUTTONS  ========================= */
.hero-buttons {
    display: flex;
    gap: 20px;
}

/* =========================   PROJECT BUTTON ========================= */
.project-btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 40px;
    color: white;
    background-image: var(--primary-gradient);
    font-size: 14px;
    border-radius: var(--radius-pill);
    border-top-right-radius: 0;
    transition: var(--transition-slow);
}

.project-btn:hover {
    border-top-right-radius: var(--radius-pill);
}

.github-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    text-decoration: none;

    color: var(--text-primary);
    background: var(--bg-card);

    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);

    transition: var(--transition-fast);
}

.github-btn:hover {
    transform: translateY(-3px);
    background: #24292f;
    color: white;
}

.hero-focus {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.focus-card {
    padding: 20px 25px;
    min-width: 200px;

    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-soft);

    transition: var(--transition-fast);
}

.dark-mode .focus-card {
    background: rgba(36, 36, 36, 0.65);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.focus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.focus-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.focus-card p {
    margin: 0;
    color: var(--text-secondary);
}

/* =========================   COMMON SECTION========================= */
.section {
    padding: 80px 10%;
}

/* =========================   SECTION HEADINGS========================= */
section h2 {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* =========================   PROJECT SECTION========================= */
.project {
    padding: 100px 10%;
    background: var(--bg-section);
}

.project-container {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* =========================   PROJECT CARD========================= */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    padding: 25px;
    border: 1px solid var(--border-light);
    width: 420px;
    min-height: 180px;
    transition: var(--transition-fast);
    text-decoration: none;
    cursor: pointer;

    border-top: 4px solid var(--accent-pink);
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.dark-mode .project-card:hover {
    box-shadow: var(--shadow-glow);
}

/* =========================   ABOUT SECTION========================= */
.about {
    padding: 100px 10% 60px;
}

/* =========================   SKILLS SECTION========================= */
.skills {
    padding: 60px 10% 40px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* =========================   SKILL CARD========================= */
.skill-card {
    padding: 15px 25px;
    background: var(--bg-section);
    border-radius: var(--radius-medium);
    font-weight: 600;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--primary-gradient);
    color: white;
}

.dark-mode .skill-card {
    box-shadow: 0 10px 25px rgba(223, 72, 129, .25);
}

.learning {
    padding: 100px 10%;
    background: var(--bg-main);
}

.learning h2 {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.learning-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.learning-card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.learning-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.learning-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.learning-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* =========================   ABOUT & CONTACT TEXT========================= */
.about p,
.contact p {
    max-width: 800px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 18px;
}

/* =========================   CONTACT SECTION========================= */
.contact {
    padding: 60px 10%;
}

.contact-links {
    margin: 70px;
    display: grid;
    height: 100px;
    gap: 20px;
    grid-template-columns: 80px 100px;
    grid-template-rows: .5fr .5fr .5fr;
}

/* =========================   CONTACT BUTTONS========================= */
.contact-links a {
    text-decoration: none;
    color: white;
    background: var(--dark-card);
    padding: 12px 24px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.contact-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-4px);
}

/* =========================   FOOTER========================= */
footer {
    text-align: center;
    padding: 25px;
    background: #0d0d0d;
    color: #888;
    font-size: 14px;
}

/* =========================   SECTION DIVIDERS========================= */
.about,
.skills,
.contact,
.learning {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


@media (max-width: 750px) {

    .learning-container {
        grid-template-columns: 1fr;
    }

    body {
        overflow-x: hidden;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        width: 140px;
    }

    .brand h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-focus {
        flex-direction: column;
    }

    .focus-card {
        width: 100%;
    }

    .content {
        max-width: 100%;
        margin-top: 50px;
    }

    .content h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .project-container {
        flex-direction: column;
    }

    .project-card {
        width: 100%;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

}