/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: #0b0f19;
    color: #c9d1d9;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #79c0ff;
}

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

/* ===== Utility ===== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3fb8af;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #8b949e;
    max-width: 600px;
    line-height: 1.7;
}

/* ===== Header / Nav ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: #3fb8af;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #8b949e;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #e6edf3;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #c9d1d9;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3fb8af;
    background: rgba(63, 184, 175, 0.1);
    border: 1px solid rgba(63, 184, 175, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #e6edf3;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #3fb8af, #58a6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: #8b949e;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b0f19;
    background: #3fb8af;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.hero-cta:hover {
    background: #4ecdc4;
    color: #0b0f19;
    transform: translateY(-1px);
}

.hero-cta svg {
    width: 16px;
    height: 16px;
}

/* ===== About ===== */
.about {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
}

.about-text p {
    color: #8b949e;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    gap: 1.25rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(63, 184, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
    color: #3fb8af;
}

.highlight-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.25rem;
}

.highlight-card p {
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.6;
}

/* ===== Projects ===== */
.projects {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(63, 184, 175, 0.3);
    transform: translateY(-2px);
}

.project-card.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.project-badge.live {
    color: #3fb8af;
    background: rgba(63, 184, 175, 0.1);
    border: 1px solid rgba(63, 184, 175, 0.2);
}

.project-badge.soon {
    color: #8b949e;
    background: rgba(139, 148, 158, 0.1);
    border: 1px solid rgba(139, 148, 158, 0.15);
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: #8b949e;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3fb8af;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 0.65rem;
    color: #4ecdc4;
}

.project-link svg {
    width: 14px;
    height: 14px;
}

/* ===== Findjoy Card ===== */
.project-card-findjoy:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.project-badge.findjoy-badge {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.project-card-findjoy .project-link {
    color: #a78bfa;
}

.project-card-findjoy .project-link:hover {
    color: #c4b5fd;
}

/* ===== Unchained Card (Coming Soon) ===== */
.project-card-unchained {
    opacity: 0.7;
}

.project-card-unchained:hover {
    opacity: 0.85;
}

/* ===== Tech Stack ===== */
.tech {
    padding: 5rem 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.tech-item:hover {
    border-color: rgba(63, 184, 175, 0.25);
}

.tech-item-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #3fb8af;
}

.tech-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.25rem;
}

.tech-item p {
    font-size: 0.7rem;
    color: #8b949e;
}

/* ===== Contact ===== */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(63, 184, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    color: #3fb8af;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: #8b949e;
}

.contact-cta {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-cta h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 0.75rem;
}

.contact-cta p {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b0f19;
    background: #3fb8af;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    width: fit-content;
}

.contact-cta-btn:hover {
    background: #4ecdc4;
    color: #0b0f19;
}

/* ===== Footer ===== */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.8rem;
    color: #484f58;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.8rem;
    color: #484f58;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #8b949e;
}

/* ===== Divider ===== */
.section-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

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

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .hero p {
        font-size: 1rem;
    }

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