/* ==========
    TOP
   ==========
*/
html {
    scroll-behavior: smooth;
}

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

body {
    background: #2C2C2C;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    margin: 0;
}

/* ===============
    NAVIGATION
   ===============
*/
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2C2C2C;
    border-bottom: 1px solid #444444;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #9999AA;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {

    color: #ffffff;
}

/* ===================== 
    MAIN LAYOUT
   =====================
*/
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 80px 0 40px;
}

/* =========================
    LANDING / ABOUT SECTION
   =========================
*/
.landing {
    padding-top: 140px;
    padding-bottom: 60px;
}

.greeting {
    font-size: 0.85rem;
    color: #3763b5;
    margin-bottom: 16px;
}

.landing h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    color: #ffffff;
}

.subtitle {
    font-size: 1.15rem;
    color: #ffffff;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 32px;
}

.landing-links {
    display: flex;
    gap: 16px;
}

.btn-primary {
    text-decoration: none;
    padding: 10px 20px;
    background: #2C2C2C;
    color: white;
    border: 1px solid #fffcfc;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #444444;
    transform: translateY(-1px);
}

.btn-secondary {
    text-decoration: none;
    padding: 10px 20px;
    background: #2C2C2C;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #444444;
    transform: translateY(-1px);
}

/* ================================== 
SECTION HEADERS (projects/skills/contact)
   ==================================
*/
.section-label {
    font-size: 0.78rem;
    color: #3763b5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.section-description {
    color: #9999AA;
    font-size: 0.95rem;
    margin-bottom: 36px;
}

/* ==========================
    PROJECTS 
   ==========================
*/
.projects-grid {
    display: grid;
    gap: 20px;
}

.project-card {
    background: #363636;
    border: 1px solid #444444;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.25s;
}

.project-card:hover {
    border-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-card h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #ffffff;
}

.project-arrow {
    color: #8A8A8A;
    transition: all 0.2s;
}

.project-card:hover .project-arrow {
    transform: translate(3px, -3px);
    color: #3763b5;
}

.project-card p {
    color: #9999AA;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: #444444;
    color: #B0B0C0;
    border-radius: 6px;
}

.placeholder {
    border-style: dashed;
    opacity: 0.6;
}

.placeholder:hover {
    transform: none;
    box-shadow: none;
}

/* ====================
    SKILLS
   ====================
*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-group {
    background: #363636;
    border: 1px solid #444444;
    border-radius: 16px;
    padding: 24px;
}

.skill-group h3 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8A8A8A;
    margin-bottom: 14px;
}

.skill-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-group li {
    font-size: 0.92rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3763b5;
    flex-shrink: 0;
}

/* ============================
    CONTACT
   ============================= */
.contact-box {
    background: #363636;
    border: 1px solid #444444;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.contact-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-box p {
    color: #9999AA;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-links a {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 16px;
    background: #2C2C2C;
    color: #ffffff;
    border: 1px solid #444444;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-links a:hover {
    border-color: #3763b5;
    color: #3763b5;
    transform: translateY(-1px);
}

/* ==========================
   FOOTER
   ==========================
*/
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    color: #8A8A8A;
    font-size: 0.82rem;
}

/* ==========================
   REVEAL
   ==========================
*/

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   MOBILE RESPONSIVE
   ==========================
*/
@media (max-width: 640px) {
    .landing h1 {
        font-size: 2rem;
    }

    .logo {
        font-size: 0.85rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .landing {
        padding-top: 110px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    main {
        padding: 0 20px;
    }

    .landing-links {
        flex-wrap: wrap;
    }

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

    .contact-box {
        padding: 28px 20px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}