:root {
    --background: #0d0d0d;
    --surface: #151515;
    --surface-light: #1e1e1e;
    --text: #f5f5f5;
    --text-muted: #999999;
    --accent: #8ab4f8;
    --border: #292929;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-family: "Inter", sans-serif;
    font-weight: 400;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

nav a {
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-muted);
    transition: 0.2s;
}

nav a:hover {
    color: var(--text);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 500;
}

.quote-author {
    margin-top: 20px;
    color: var(--text-muted);
}

.hero-intro {
    max-width: 650px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: 0.3s;
}

.button:hover {
    background: var(--text);
    color: var(--background);
}

.section {
    padding: 120px 0;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 40px;
}

.about-text {
    max-width: 750px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 50px 0;
}

.photo-preview img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s;
}

.photo-preview img:hover {
    transform: scale(1.02);
}

.section-description {
    max-width: 600px;
    color: var(--text-muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.project-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 20px 0;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.project-card a {
    color: var(--accent);
}

.project-status {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--accent);
}

.contact {
    text-align: center;
}

.contact p {
    color: var(--text-muted);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-links a {
    padding: 12px 25px;
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: 0.3s;
}

.contact-links a:hover {
    background: var(--text);
    color: var(--background);
}

footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-content p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.achievement-list {
    list-style: none;
    max-width: 800px;
}

.achievement-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.achievement-list strong {
    color: var(--text);
}

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

.skill {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.skill h3 {
    margin-bottom: 5px;
}

.skill p {
    color: var(--text-muted);
}

.strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.strengths span {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-muted);
}

.large-project {
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
}

.large-project h2 {
    font-size: 3rem;
    margin: 15px 0;
}

.large-project p {
    max-width: 700px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.large-project h3 {
    margin-bottom: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tags span {
    padding: 7px 14px;
    background: var(--surface);
    border-radius: 20px;
    color: var(--text-muted);
}

.gallery {
    columns: 3;
    column-gap: 15px;
}

.gallery img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    break-inside: avoid;
    transition: 0.4s;
}

.gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 800px) {

    nav {
        gap: 15px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-preview {
        grid-template-columns: 1fr;
    }

    .photo-preview img {
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
    }

    .copyright {
        flex-direction: column;
        gap: 10px;
    }

    .gallery {
        columns: 2;
    }

}

@media (max-width: 500px) {

    .section {
        padding: 80px 0;
    }

    nav {
        gap: 10px;
        font-size: 0.85rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        columns: 1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

}

.page-header {
    padding: 160px 0 100px;
}

.page-header h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    margin: 20px 0;
}

.page-header p:last-child {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 50px;
}

.interest-card {
    position: relative;
    min-height: 230px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;

    overflow: hidden;

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

.interest-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;

    top: -80px;
    right: -80px;

    background: var(--accent);
    opacity: 0.08;

    border-radius: 50%;

    transition: transform 0.4s ease;
}

.interest-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.interest-card:hover::before {
    transform: scale(1.8);
}

.interest-icon {
    position: absolute;
    top: 25px;
    left: 30px;

    font-size: 1.5rem;
    color: var(--accent);
}

.interest-card h3 {
    position: relative;
    margin-bottom: 10px;

    font-size: 1.35rem;
    font-weight: 600;
}

.interest-card p {
    position: relative;

    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 800px) {

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 500px) {

    .interests-grid {
        grid-template-columns: 1fr;
    }

}

.about-preview {
    position: relative;
    max-width: 750px;
    max-height: 330px;
    overflow: hidden;

    transition: max-height 0.8s ease;
}

.about-preview p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.fade {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 130px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--background)
    );

    opacity: 1;

    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hidden-about {
    opacity: 0;
    transform: translateY(15px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.about-preview.expanded {
    max-height: 1500px;
}

.about-preview.expanded .fade {
    opacity: 0;
}

.about-preview.expanded .hidden-about {
    opacity: 1;
    transform: translateY(0);
}

.read-more {
    margin-top: 20px;

    padding: 0;
    background: none;
    border: none;

    color: var(--accent);

    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.7;
}

.read-more span {
    display: inline-block;

    margin-left: 5px;

    transition: transform 0.4s ease;
}

.read-more:hover span {
    transform: translateX(5px);
}