/* =========================
   RESET & BASIC SETTINGS
========================= */

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

html {
    scroll-behavior: smooth;
}

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

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

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


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #1e293b;

    z-index: 1000;
}

.navbar .container {
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo span {
    color: #38bdf8;
}

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

.nav-links a {
    color: #cbd5e1;
    font-size: 0.95rem;

    transition: color 0.3s ease;
}

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


/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 75px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.hero-text {
    max-width: 650px;
}

.greeting {
    color: #38bdf8;
    font-size: 1.2rem;
    font-weight: 600;

    margin-bottom: 10px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;

    margin-bottom: 15px;
}

.hero h2 {
    color: #94a3b8;
    font-size: 2rem;

    margin-bottom: 20px;
}

.hero-description {
    color: #cbd5e1;
    font-size: 1.05rem;

    max-width: 600px;

    margin-bottom: 30px;
}


/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    padding: 12px 24px;

    border-radius: 8px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.primary-btn {
    background: #38bdf8;
    color: #0f172a;
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.secondary-btn:hover {
    background: #38bdf8;
    color: #0f172a;
}


/* =========================
   PROFILE
========================= */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle {
    width: 300px;
    height: 300px;

    padding: 10px;

    border: 2px solid #38bdf8;
    border-radius: 50%;
}

.profile-placeholder {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    background: #1e293b;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
}


/* =========================
   COMMON SECTION HEADING
========================= */

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    color: #38bdf8;
    font-size: 1rem;
    font-weight: 600;

    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}


/* =========================
   ABOUT SECTION
========================= */

.about-section {
    padding: 100px 0;
    background: #111827;
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
}

.about-text {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text strong {
    color: #38bdf8;
}


/* =========================
   SKILLS SECTION
========================= */

.skills-section {
    padding: 100px 0;
    background: #0f172a;
}

.skills-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    max-width: 900px;

    margin: 0 auto;
}

.skill-card {
    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 16px;

    padding: 35px;

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

.skill-card:hover {
    transform: translateY(-6px);

    border-color: #38bdf8;
}

.skill-icon {
    font-size: 2.5rem;

    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.4rem;

    margin-bottom: 12px;
}

.skill-card p {
    color: #94a3b8;

    margin-bottom: 25px;
}

.skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.skill-tags span {
    padding: 6px 12px;

    border-radius: 20px;

    background: #0f172a;

    color: #38bdf8;

    font-size: 0.85rem;
}


/* =========================
   PROJECTS SECTION
========================= */

.projects-section {
    padding: 100px 0;
    background: #111827;
}

.projects-grid {
    max-width: 900px;

    margin: 0 auto;
}

.project-card {
    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 18px;

    overflow: hidden;

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

.project-card:hover {
    transform: translateY(-6px);

    border-color: #38bdf8;
}

.project-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 30px;

    border-bottom: 1px solid #334155;
}

.project-number {
    color: #38bdf8;

    font-weight: 700;
}

.project-type {
    color: #94a3b8;

    font-size: 0.9rem;
}

.project-content {
    padding: 35px;
}

.project-content h3 {
    font-size: 1.8rem;

    margin-bottom: 15px;
}

.project-content > p {
    color: #cbd5e1;

    margin-bottom: 30px;
}

.project-features h4 {
    margin-bottom: 15px;
}

.project-features ul {
    list-style: none;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 30px;
}

.project-features li {
    color: #94a3b8;
}

.project-features li::before {
    content: "✓";

    color: #38bdf8;

    font-weight: bold;

    margin-right: 8px;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;
}

.project-tech span {
    padding: 7px 13px;

    border-radius: 20px;

    background: #0f172a;

    color: #38bdf8;

    font-size: 0.85rem;
}

.project-links {
    display: flex;

    gap: 15px;
}

.project-link {
    padding: 10px 18px;

    border-radius: 7px;

    background: #38bdf8;

    color: #0f172a;

    font-weight: 600;

    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
}

.secondary-project-link {
    background: transparent;

    border: 1px solid #38bdf8;

    color: #38bdf8;
}


/* =========================
   EDUCATION SECTION
========================= */

.education-section {
    padding: 100px 0;
    background: #0f172a;
}

.education-list {
    max-width: 850px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 25px;
}

.education-card {
    display: grid;

    grid-template-columns: 180px 1fr;

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 16px;

    overflow: hidden;

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

.education-card:hover {
    transform: translateY(-5px);

    border-color: #38bdf8;
}

.education-year {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #172033;

    color: #38bdf8;

    font-weight: 600;

    text-align: center;
}

.education-content {
    padding: 25px 30px;
}

.education-content h3 {
    font-size: 1.4rem;

    margin-bottom: 5px;
}

.education-content h4 {
    color: #38bdf8;

    font-size: 1rem;

    margin-bottom: 12px;
}

.education-content p {
    color: #94a3b8;
}


/* =========================
   CURRENTLY LEARNING
========================= */

.learning-section {
    padding: 100px 0;

    background: #111827;
}

.learning-content {
    max-width: 900px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;
}

.learning-main {
    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 16px;

    padding: 35px;
}

.learning-main h3 {
    font-size: 1.6rem;

    margin-bottom: 15px;
}

.learning-main p {
    color: #94a3b8;
}

.learning-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.learning-item {
    display: flex;

    align-items: center;

    gap: 15px;

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 10px;

    padding: 16px 20px;

    transition: border-color 0.3s ease;
}

.learning-item:hover {
    border-color: #38bdf8;
}

.learning-item span {
    color: #38bdf8;

    font-weight: 700;
}

.learning-item p {
    color: #cbd5e1;
}


/* =========================
   BEYOND CODING
========================= */

.interests-section {
    padding: 100px 0;

    background: #0f172a;
}

.interests-content {
    max-width: 750px;

    margin: 0 auto;

    text-align: center;
}

.interests-content p {
    color: #cbd5e1;

    font-size: 1.1rem;
}


/* =========================
   CONTACT SECTION
========================= */

.contact-section {
    padding: 100px 0;

    background: #111827;
}

.contact-content {
    max-width: 900px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;
}

.contact-text h3 {
    font-size: 1.6rem;

    margin-bottom: 15px;
}

.contact-text p {
    color: #94a3b8;
}

.contact-details {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px 20px;

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 12px;

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

.contact-item:hover {
    transform: translateX(5px);

    border-color: #38bdf8;
}

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #0f172a;

    color: #38bdf8;

    font-size: 1.3rem;

    flex-shrink: 0;
}

.contact-item small {
    color: #38bdf8;
}

.contact-item p {
    color: #cbd5e1;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 50px 0 25px;

    background: #020617;

    border-top: 1px solid #1e293b;

    color: #94a3b8;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    padding-bottom: 30px;
}

.footer-name h3 {
    color: #f8fafc;

    font-size: 1.3rem;

    margin-bottom: 5px;
}

.footer-name p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;
}

.footer-links a {
    font-size: 0.9rem;

    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid #1e293b;

    font-size: 0.85rem;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {

    /* Navbar */

    .menu-toggle {
    display: block;
}

.nav-links {
    display: none;

    position: absolute;

    top: 75px;
    left: 0;

    width: 100%;

    flex-direction: column;

    gap: 0;

    background: #0f172a;

    border-bottom: 1px solid #1e293b;
}

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

.nav-links a {
    padding: 15px 5%;

    border-bottom: 1px solid #1e293b;
}


    /* Hero */

    .hero {
        padding-top: 110px;

        padding-bottom: 50px;
    }

    .hero-content {
        flex-direction: column-reverse;

        text-align: center;
    }

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-circle {
        width: 220px;
        height: 220px;
    }


    /* Skills */

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


    /* Projects */

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

    .project-header {
        align-items: flex-start;

        gap: 10px;
    }

    .project-content {
        padding: 25px;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        text-align: center;
    }


    /* Education */

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

    .education-year {
        justify-content: flex-start;

        padding: 15px 25px;
    }


    /* Currently Learning */

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


    /* Contact */

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

        gap: 30px;
    }


    /* Footer */

    .footer-content {
        flex-direction: column;

        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================
   SCROLL ANIMATION
========================= */

section {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

section.hidden {
    opacity: 0;
    transform: translateY(30px);
}

section.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: #f8fafc;

    font-size: 1.5rem;

    cursor: pointer;
}


/* =========================
   SCROLL REVEAL ANIMATION
========================= */

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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


/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: #f8fafc;

    font-size: 1.5rem;

    cursor: pointer;
}


/* =========================
   MOBILE RESPONSIVE MENU
========================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;

        gap: 0;

        background: #0f172a;

        border-bottom: 1px solid #1e293b;
    }

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

    .nav-links a {
        padding: 15px 5%;

        border-bottom: 1px solid #1e293b;
    }

}


/* =========================
   PROFILE PHOTO
========================= */

.profile-photo {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}