/* =========================
   Global Styles
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
    color: #0f172a;
}

p {
    font-size: 17px;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   Section Headings
   ========================= */

.section {
    padding: 100px 0;
}

.section h2 {
    position: relative;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 30px;
}

.section h2::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background-color: #2563eb;
    margin-top: 10px;
    border-radius: 2px;
}

/* =========================
   General Sections
   ========================= */

.section {
    padding: 80px 0;
}


/* =========================
   Navigation
   ========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo {
    color: #2563eb;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links a {
    position: relative;
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* =========================
   Hero
   ========================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 20px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-title {
    color: #0f172a;
    margin: 0 0 15px 0;
    font-size: 52px;
    line-height: 1.1;
}

.hero-subtitle {
    color: #334155;
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 20px 0;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 30px;
}

.hero-buttons a {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}


/* Primary Button */

.hero-buttons a:first-child {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.hero-buttons a:first-child:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.30);
}


/* Secondary Button */

.hero-buttons a:last-child {
    background-color: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.hero-buttons a:last-child:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}



/* =========================
   Hero Image
   ========================= */

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


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

    border-radius: 50%;
    object-fit: cover;

    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   Hero Label
   ========================= */

.hero-label {
    color: #2563eb;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* =========================
   Responsive Design
   ========================= */

@media (max-width: 768px) {

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

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin: 0 auto;
    }

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

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .navbar-content {
        overflow-x: auto;
    }

    .nav-links {
        flex-shrink: 0;
        gap: 20px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

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

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

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

}

/* =========================
   Mobile Layout
   ========================= */

@media (max-width: 768px) {

    .navbar-content {
        overflow-x: auto;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links {
        flex-shrink: 0;
        gap: 20px;
    }
    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

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

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

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

}

/* =========================
   Sections
   ========================= */

.section {
    padding: 80px 0;
}

/* =========================
   About
   ========================= */

.about-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

/* =========================
   About Information
   ========================= */

.about-info {
    flex: 1;
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.about-info p {
    margin: 0 0 18px 0;
    color: #64748b;
}

.about-info p:last-child {
    margin-bottom: 0;
}

.about-info strong {
    color: #0f172a;
}

 /* =========================
   Education
   ========================= */

.education-item {
    margin-top: 30px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.education-item h3 {
    margin: 0 0 10px 0;
    font-size: 23px;
    color: #0f172a;
}

.education-university {
    margin: 0 0 15px 0;
    color: #2563eb;
    font-weight: 600;
}

.education-description {
    margin: 0;
    color: #64748b;
}

/* =========================
   Skills
   ========================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background-color: #ffffff;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #0f172a;
}

.skill-card p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.project-card {
    position: relative;
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2563eb;
}

.project-card h3 {
    margin: 0 0 15px 0;
    font-size: 21px;
    line-height: 1.4;
    color: #0f172a;
}

.project-card p {
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.project-card .project-tech {
    margin: 0 0 20px 0;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

/* =========================
   Contact
   ========================= */

.contact-section {
    background-color: #f8fafc;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 45px;
}

.section-heading span {
    color: #2563eb;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 10px 0 15px 0;
    font-size: 38px;
}

.section-heading p {
    color: #64748b;
    margin: 0;
}

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

.contact-card {
    background-color: white;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card h3 {
    margin-top: 0;
    font-size: 20px;
}

.contact-card p {
    color: #64748b;
}

.contact-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

/* =========================
   Footer
   ========================= */

.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 25px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 14px;
}


/* =========================
   Experience Timeline
   ========================= */

.experience-item {
    position: relative;
    margin-top: 30px;
    padding: 25px 30px 25px 35px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 30px;
    width: 14px;
    height: 14px;
    background-color: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #2563eb;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.experience-item h3 {
    margin: 0 0 8px 0;
    font-size: 23px;
    color: #0f172a;
}

.experience-role {
    margin: 0 0 15px 0;
    color: #2563eb;
    font-weight: 600;
}

.experience-description {
    margin: 0;
    color: #64748b;
}