/* =========================
   RESET
   ========================= */

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

html {
    scroll-behavior: smooth;
}


/* =========================
   BODY
   ========================= */

body {
    font-family: Inter, Arial, sans-serif;

    color: #e6edf3;

    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;

    line-height: 1.7;

    background: linear-gradient(
        -45deg,
        #170d0d,
        #271111,
        #541717,
        #4b1b1b,
        #170d0d
    );

    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================
   HEADINGS
   ========================= */

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.6rem;

    margin-top: 50px;
    margin-bottom: 15px;

    padding-bottom: 8px;

    border-bottom: 1px solid #30363d;
}


/* =========================
   TEXT
   ========================= */

p {
    color: #b1bac4;
    margin-bottom: 15px;
}

strong {
    color: #ffffff;
}


/* =========================
   LINKS
   ========================= */

a {
    color: #58a6ff;
    text-decoration: none;

    transition: color 0.2s ease;
}

a:hover {
    color: #79c0ff;
    text-decoration: underline;
}


/* Link with icon */

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}


/* =========================
   LISTS
   ========================= */

ul,
ol {
    margin-left: 25px;
    margin-top: 10px;
}

li {
    margin: 7px 0;
    color: #c9d1d9;
}


/* =========================
   CODE
   ========================= */

code {
    font-family: "JetBrains Mono", Consolas, monospace;

    background: #161b22;
    color: #79c0ff;

    padding: 3px 7px;

    border: 1px solid #30363d;
    border-radius: 6px;
}


/* =========================
   PROJECT CARDS
   ========================= */

.project {
    background: #161b22;

    border: 1px solid #30363d;
    border-radius: 12px;

    padding: 20px;
    margin: 15px 0;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project:hover {
    transform: translateY(-3px);
    border-color: #58a6ff;
}

.project h3 {
    margin-bottom: 8px;
}


/* =========================
   BUTTONS
   ========================= */

.button {
    display: inline-block;

    background: #238636;
    color: white;

    padding: 9px 16px;

    border-radius: 7px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: #2ea043;

    color: white;
    text-decoration: none;

    transform: translateY(-2px);
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    body {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    left: -150px;
    top: -150px;

    background: rgba(255, 50, 50, 0.12);

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}

.hero-small {
    color: #ff6b6b;
    font-family: "JetBrains Mono", Consolas, monospace;
    margin-bottom: 5px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 0;
}

.hero h1 span {
    color: #ff5c5c;
}

.hero-description {
    font-size: 1.2rem;
    margin-top: 15px;
}

.hero-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.primary-button,
.secondary-button {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.primary-button {
    background: #e5484d;
    color: white;
}

.secondary-button {
    border: 1px solid #444;
    color: #ddd;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* =========================
   SKILLS
   ========================= */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);

    padding: 7px 13px;
    border-radius: 8px;

    font-family: monospace;
    font-size: 0.9rem;

    transition: 0.2s ease;
}

.skills span:hover {
    border-color: #e5484d;
    transform: translateY(-2px);
}

/* =========================
    SOCIALS
    ========================= */

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 15px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    color: #e6edf3;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.social-link span {
    color: #b1bac4;
}

.social-link strong {
    color: #58a6ff;
}

.social-link:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.07);
    border-color: #e5484d;

    text-decoration: none;
}

/* =========================
    PROJECTS
    ========================= */

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.project-card {
    display: block;

    padding: 20px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);

    border-color: rgba(255, 90, 90, 0.6);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(255, 60, 60, 0.05);

    text-decoration: none;
}

.project-card:hover * {
    text-decoration: none;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-header img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.project-header h3 {
    margin: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 15px;
}

.project-tags span {
    padding: 4px 8px;

    font-family: monospace;
    font-size: 0.75rem;

    color: #ff8a8a;
    background: rgba(255, 90, 90, 0.08);

    border: 1px solid rgba(255, 90, 90, 0.15);
    border-radius: 6px;
}

.project-role {
    display: block;
    margin-bottom: 8px;

    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    color: #ff7777;
    opacity: 0.8;
}

/* =========================
    FOOTER
    ========================= */

footer {
    display: flex;
    justify-content: space-between;

    margin-top: 100px;
    padding: 25px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: #777;
    font-size: 0.85rem;
}