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

body {
    font-family: Arial, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background-color: #111c32;

     position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #f8fafc;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.logo span {
    color: #38bdf8;
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #38bdf8;
}

/* Hero Section */
.home {
    min-height: 85vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 50px 8%;
}

.home-content {
    max-width: 550px;
}

.home-content h1 {
    font-size: 48px;
    margin-bottom: 12px;
}

.home-content h2 {
    color: #38bdf8;
    font-size: 25px;
    margin-bottom: 20px;
}

.home-content p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    background-color: #7dd3fc;
}


/* Profile Image */
.home-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #38bdf8;
    box-shadow: 0 0 25px #38bdf844;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .navbar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 6%;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-image img {
        width: 220px;
        height: 220px;
    }
}


/* About Webpage */

.navbar a.active {
    color: #38bdf8;
}

.about-page {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 70px 8%;
}

.about-image img {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid #38bdf8;
    box-shadow: 0 0 25px #38bdf833;
}

.about-content {
    max-width: 600px;
}

.about-content .intro {
    color: #38bdf8;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.about-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.about-content h1 span {
    color: #38bdf8;
}

.about-content h2 {
    color: #38bdf8;
    font-size: 24px;
    margin-bottom: 22px;
}

.about-content p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-content .btn {
    margin-top: 10px;
}

/* Responsive layout */
@media (max-width: 768px) {
    .about-page {
        flex-direction: column;
        text-align: center;
        gap: 35px;
        padding: 45px 6%;
    }

    .about-image img {
        width: 230px;
        height: 280px;
    }

    .about-content h1 {
        font-size: 36px;
    }

    .about-content h2 {
        font-size: 20px;
    }
}


/* Skills Page */
.skills-page {
    min-height: 90vh;
    padding: 70px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-content {
    width: 100%;
    max-width: 1000px;
}

.skills-content .intro {
    color: #38bdf8;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.skills-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.skills-content h1 span {
    color: #38bdf8;
}

.skills-content h2 {
    color: #38bdf8;
    font-size: 24px;
    margin-bottom: 20px;
}

.skills-content > p:not(.intro) {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 30px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.skill {
    background-color: #111c32;
    border: 1px solid #263751;
    border-radius: 12px;
    padding: 22px;
    transition: border-color 0.3s, transform 0.3s;
}

.skill:hover {
    border-color: #38bdf8;
    transform: translateY(-4px);
}

.skill h3 {
    color: #38bdf8;
    margin-bottom: 10px;
}

.skill p {
    color: #cbd5e1;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .skills-page {
        padding: 45px 6%;
    }

    .skills-content h1 {
        font-size: 36px;
    }

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


/* Shared page layout */
.page {
    min-height: 90vh;
    padding: 70px 8%;
    text-align: center;
}

.page h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.page h1 span {
    color: #38bdf8;
}

.subtitle {
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 35px;
    text-align: left;
}

.card {
    background-color: #111c32;
    border: 1px solid #263751;
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.card h2 {
    color: #38bdf8;
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 12px;
}

.tech {
    color: #38bdf8 !important;
    font-size: 14px;
}

.project-link,
.contact-card a {
    color: #38bdf8;
    text-decoration: none;
}

.project-link:hover,
.contact-card a:hover {
    text-decoration: underline;
}

/* Contact */
.contact-card {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
}

.contact-card h2 {
    margin-bottom: 20px;
}

/* Responsive pages */
@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .navbar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .page {
        padding: 45px 6%;
    }

    .page h1 {
        font-size: 34px;
    }

    .card-container {
        grid-template-columns: 1fr;
    }
}



/* ===== Projects Page ===== */

.projects-page {
    min-height: 100vh;
    padding: 75px 8%;
}

.projects-intro {
    max-width: 720px;
    margin-bottom: 45px;
}

.projects-intro .intro {
    color: #38bdf8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.projects-intro h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.projects-intro h1 span {
    color: #38bdf8;
}

.projects-intro .description {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
}

/* Project grid */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #111c32;
    border: 1px solid #263751;
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
}

.project-number {
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.project-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: #1e3350;
    border-radius: 14px;
    font-size: 28px;
    margin-bottom: 22px;
}

.project-card h2 {
    color: #f8fafc;
    font-size: 24px;
    margin-bottom: 15px;
}

.project-card > p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 22px;
}

/* Technology labels */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.tech-stack span {
    color: #7dd3fc;
    background: #172b43;
    border: 1px solid #294762;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Project links */

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
}

.project-links a {
    color: #38bdf8;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.project-links a:hover {
    color: #bae6fd;
}

/* GitHub call to action */

.github-cta {
    text-align: center;
    margin-top: 65px;
    padding: 40px 20px;
    background: #111c32;
    border: 1px solid #263751;
    border-radius: 16px;
}

.github-cta h2 {
    font-size: 27px;
    margin-bottom: 12px;
}

.github-cta p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 25px;
}

.github-button {
    display: inline-block;
    background: #38bdf8;
    color: #0f172a;
    padding: 13px 22px;
    border-radius: 7px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.github-button:hover {
    background: #7dd3fc;
}

/* Responsive design */

@media (max-width: 768px) {
    .projects-page {
        padding: 45px 6%;
    }

    .projects-intro h1 {
        font-size: 36px;
    }

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

    .project-card {
        padding: 24px;
    }

    .project-card h2 {
        font-size: 21px;
    }

    .github-cta h2 {
        font-size: 23px;
    }
}
