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

body {
    font-family: "Inter", sans-serif;
    background: #f4f1fc;
    color: #2c2340;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}


/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
.navbar {
    background: #3c3852;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: 600;
}

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

.nav-links a {
    color: #f2eaff;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
    color: #d4c7ff;
}


/* --------------------------------------------------
   PAGE WRAPPER
-------------------------------------------------- */
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    flex: 1;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #3b2f88;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #6d5fae;
    font-size: 16px;
    margin-bottom: 30px;
}


/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero-section {
    padding: 80px 40px;
}

.hero-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    width: 55%;
}

.hero-name {
    font-size: 46px;
    font-weight: 700;
}

.hero-title {
    font-size: 20px;
    color: #675ca8;
}

.hero-subtitle {
    font-size: 16px;
    color: #8a7dd6;
    margin-bottom: 10px;
}

.hero-description {
    margin-bottom: 18px;
}

.hero-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-links a {
    background: #ece6ff;
    padding: 10px 16px;
    border-radius: 8px;
    color: #3d2d7a;
}

.hero-image img {
    width: 300px;
    border-radius: 50%;
    border: 4px solid #d7ccff;
}


/* --------------------------------------------------
   EXPERIENCE
-------------------------------------------------- */
.xp-card {
    background: #ffffff;
    padding: 24px;
    margin-bottom: 28px;
    border-radius: 12px;
    border-left: 6px solid #8d78ea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.xp-role {
    font-size: 22px;
}

.xp-meta {
    font-size: 14px;
    color: #6d5fae;
}

.xp-list {
    padding-left: 20px;
}


/* --------------------------------------------------
   PROJECTS (🔥 FIXED)
-------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border-left: 6px solid #8d78ea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    background: #faf7ff;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 14.5px;
    color: #4b3f72;
    margin-bottom: 12px;
}

.tech-stack {
    font-size: 18px;
    margin-bottom: 12px;
}

.github-btn {
    display: inline-block;
    background: #ece6ff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #3d2d7a;
    transition: 0.2s ease;
}

.github-btn:hover {
    background: #ddd0ff;
}


/* --------------------------------------------------
   NEWS
-------------------------------------------------- */
.news-section {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 20px;
}

.news-title {
    font-size: 36px;
    text-align: center;
}

.news-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e4dfff;
}

.news-date {
    width: 70px;
    text-align: center;
}

.news-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #8d78ea;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.news-content p {
    font-size: 14.5px;
    color: #4b3f72;
    margin-bottom: 12px;
}

.news-tag {
    display: inline-block;
    background-color: #e8e3ff;
    color: #3b2f88;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
    background: #3c3852;
    color: #f2eaff;
    text-align: center;
    padding: 18px;
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */
@media (max-width: 768px) {

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

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

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-image img {
        width: 180px;
        margin-top: 20px;
    }

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

    .news-item {
        flex-direction: column;
    }

    .news-date {
        width: auto;
        margin-bottom: 10px;
    }

    .page-wrapper {
        padding: 40px 15px;
    }
}

/* --------------------------------------------------
   CONTACT SECTION (FIXED)
-------------------------------------------------- */

.contact-section {
    padding: 60px 20px;
}

.contact-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #3b2f88;
}

.section-subtitle {
    font-size: 15px;
    color: #6d5fae;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    border-left: 5px solid #8d78ea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: #faf7ff;
}

.contact-icon {
    font-size: 26px;
    margin-bottom: 10px;
    color: #6b5bd6;
}

.contact-card p,
.contact-card a {
    font-size: 14px;
    color: #2c2340;
    word-break: break-word;
}
