/* =========================
   GENERAL STYLES
========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    color: #172033;
}


/* =========================
   NAVIGATION
========================= */

/* =========================
   NAVIGATION
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 8%;

    background-color: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);

    box-shadow: 0 2px 15px rgba(23, 32, 51, 0.05);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #315a8a;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    position: relative;

    text-decoration: none;

    color: #172033;

    font-size: 16px;

    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #315a8a;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background-color: #315a8a;

    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}



/* =========================
   HERO
========================= */

.hero {
    min-height: 90vh;

    display: flex;
    align-items: center;

    padding: 80px 8%;

    background: linear-gradient(
        135deg,
        #eef3f8,
        #ffffff
    );
}

.hero-text {
    max-width: 750px;
}

.intro {
    color: #315a8a;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;

    font-size: 80px;

    line-height: 0.95;

    margin-bottom: 25px;

    color: #172033;
}

.hero h2 {
    font-size: 25px;
    font-weight: normal;
    color: #526174;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.7;
    color: #5d6678;
    margin-bottom: 35px;
}


/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 15px;
}

.button {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: bold;
}

.primary-button {
    background-color: #315a8a;
    color: white;
}

.primary-button:hover {
    background-color: #244568;
}

.secondary-button {
    border: 2px solid #315a8a;
    color: #315a8a;
}

.secondary-button:hover {
    background-color: #315a8a;
    color: white;
}


/* =========================
   SECTIONS
========================= */

section:not(.hero) {
    padding: 100px 8%;
    min-height: 50vh;
}

section h2 {
    font-size: 40px;
    margin-bottom: 25px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* NAVIGATION */

    .navbar {
        padding: 20px 5%;
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        background-color: white;

        flex-direction: column;

        gap: 0;

        padding: 20px 8%;

        box-shadow: 0 10px 20px rgba(23, 32, 51, 0.08);
    }
}

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
    }


    /* HERO */

    .hero {
        min-height: auto;

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        padding: 60px 5%;
    }

    .hero-text {
        width: 100%;
    }

    .hero h1 {
        font-size: 55px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;

        width: 100%;
    }

    .button {
        text-align: center;
    }


    /* ALL SECTIONS */

    section:not(.hero) {
        padding: 70px 5%;
    }

    section h2 {
        font-size: 38px;
    }


    /* ABOUT */

    .about-section {
        display: grid;

        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-text h2 {
        font-size: 40px;
    }


    /* SKILLS */

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-heading h2 {
        font-size: 40px;
    }


    /* PROJECTS */

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-heading h2 {
        font-size: 40px;
    }


    /* EXPERIENCE */

    .timeline {
        width: 100%;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-content {
        padding: 22px;
    }


    /* CONTACT */

    .contact-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .contact-heading h2 {
        font-size: 40px;
    }


    /* FOOTER */

    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        gap: 15px;
    }

}
    .navbar {
        padding: 20px 5%;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
    position: relative;

    text-decoration: none;

    color: #172033;

    font-size: 16px;

    transition: color 0.3s ease;
}

    
}

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 55px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    /* =========================
   ABOUT SECTION
========================= */

.about-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.section-label {
    color: #315a8a;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 50px;
    margin-bottom: 30px;
}

.about-text > p:not(.section-label) {
    color: #5d6678;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}


/* ABOUT CARDS */

.about-card {
    background-color: #f5f7fa;
    padding: 35px;
    border-radius: 15px;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid #dce2e9;
}

.card-item:last-child {
    border-bottom: none;
}

.card-item > span {
    font-size: 30px;
}

.card-item strong {
    display: block;
    margin-bottom: 5px;
}

.card-item p {
    color: #5d6678;
}
/* =========================
   SKILLS SECTION
========================= */

.skills-section {
    background-color: #f5f7fa;
}

.skills-heading {
    max-width: 700px;
    margin-bottom: 50px;
}

.skills-heading h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.skills-heading > p:last-child {
    color: #5d6678;
    font-size: 17px;
    line-height: 1.7;
}


/* SKILL GRID */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


/* SKILL CARD */

.skill-card {
    background-color: white;

    padding: 35px;

    border-radius: 15px;

    border: 1px solid #e3e8ef;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 15px 35px rgba(23, 32, 51, 0.08);
}

.skill-icon {
    font-size: 35px;

    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 25px;

    margin-bottom: 15px;
}

.skill-card > p {
    color: #5d6678;

    line-height: 1.7;

    margin-bottom: 25px;
}


/* SKILL TAGS */

.skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skill-tags span {
    background-color: #eef3f8;

    color: #315a8a;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;
}
/* =========================
   PROJECTS SECTION
========================= */

.projects-section {
    background-color: white;

}

.projects-heading {
    max-width: 700px;
    margin-bottom: 50px;
}

.projects-heading h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.projects-heading > p:last-child {
    color: #5d6678;
    font-size: 17px;
    line-height: 1.7;
}


/* PROJECT GRID */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* PROJECT CARD */

.project-card {
    background-color: #f5f7fa;

    border-radius: 15px;

    overflow: hidden;

    border: 1px solid #e3e8ef;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 20px 40px rgba(23, 32, 51, 0.1);
}


/* PROJECT IMAGE */

.project-image {
    height: 220px;

    background: linear-gradient(
        135deg,
        #315a8a,
        #172033
    );

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 3px;
}


/* PROJECT CONTENT */

.project-content {
    padding: 30px;
}

.project-category {
    color: #315a8a;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.project-content h3 {
    font-size: 25px;

    margin-bottom: 15px;
}

.project-content > p:not(.project-category) {
    color: #5d6678;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* PROJECT TAGS */

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.project-tags span {
    background-color: white;

    color: #315a8a;

    padding: 6px 10px;

    border-radius: 15px;

    font-size: 12px;

    font-weight: bold;
}


/* PROJECT LINKS */

.project-links {
    display: flex;

    gap: 20px;
}

.project-link {
    color: #172033;

    text-decoration: none;

    font-weight: bold;

    font-size: 14px;
}

.project-link:hover {
    color: #315a8a;
}
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

/* =========================
   EXPERIENCE SECTION
========================= */

.experience-section {
    background-color: #f5f7fa;
    
}

.experience-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.experience-heading h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.experience-heading > p:last-child {
    color: #5d6678;
    font-size: 17px;
    line-height: 1.7;
}


/* TIMELINE */

.timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}


/* Vertical line */

.timeline::before {
    content: "";

    position: absolute;

    left: 10px;

    top: 0;

    bottom: 0;

    width: 2px;

    background-color: #d6dee8;
}


/* Timeline item */

.timeline-item {
    position: relative;

    padding-left: 55px;

    margin-bottom: 50px;
}


/* Timeline dot */

.timeline-dot {
    position: absolute;

    left: 0;

    top: 5px;

    width: 22px;

    height: 22px;

    border-radius: 50%;

    background-color: #315a8a;

    border: 5px solid #f5f7fa;
}


/* Timeline content */

.timeline-content {
    background-color: white;

    padding: 30px;

    border-radius: 15px;

    border: 1px solid #e3e8ef;
}

.timeline-date {
    color: #315a8a;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 25px;

    margin: 10px 0 5px;
}

.timeline-content h4 {
    color: #5d6678;

    font-weight: normal;

    margin-bottom: 15px;
}

.timeline-content p {
    color: #5d6678;

    line-height: 1.7;
}
/* =========================
   CONTACT SECTION
========================= */

.contact-section {
    background-color: white;
}

.contact-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.contact-heading h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-heading > p:last-child {
    color: #5d6678;
    font-size: 17px;
    line-height: 1.7;
}


/* CONTACT CONTAINER */

.contact-container {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    max-width: 1100px;

    margin: 0 auto;
}


/* CONTACT INFORMATION */

.contact-info h3 {
    font-size: 28px;

    margin-bottom: 15px;
}

.contact-info > p {
    color: #5d6678;

    line-height: 1.7;

    margin-bottom: 35px;
}

.contact-details {
    display: flex;

    flex-direction: column;

    gap: 25px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 20px;
}

.contact-item > span {
    font-size: 28px;
}

.contact-item strong {
    display: block;

    margin-bottom: 5px;
}

.contact-item p {
    color: #5d6678;
}


/* CONTACT FORM */

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.contact-form label {
    font-weight: bold;

    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 14px;

    border: 1px solid #d6dee8;

    border-radius: 6px;

    font-family: inherit;

    font-size: 15px;

    background-color: #f5f7fa;

    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #315a8a;
}

.contact-form button {
    margin-top: 15px;

    padding: 15px;

    border: none;

    border-radius: 6px;

    background-color: #315a8a;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}

.contact-form button:hover {
    background-color: #244568;
}
/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hero-text {
    animation: fadeUp 1s ease forwards;
}
/* =========================
   FOOTER
========================= */

.footer {
    background-color: #172033;

    color: white;

    padding: 60px 8% 25px;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;

    padding-bottom: 40px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    color: white;

    margin-bottom: 15px;
}

.footer-brand p {
    color: #b8c1cf;

    line-height: 1.6;
}

.footer-links {
    display: flex;

    gap: 25px;

    flex-wrap: wrap;
}

.footer-links a {
    color: #b8c1cf;

    text-decoration: none;

    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 25px;
}

.footer-bottom p {
    color: #8d99aa;

    font-size: 12px;
}
/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;

    background: none;

    border: none;

    font-size: 28px;

    color: #172033;

    cursor: pointer;
}

.hero-visual {
    display: flex;

    justify-content: center;

    align-items: center;
}

.hero-visual img {
    width: 350px;

    height: 450px;

    object-fit: cover;

    border-radius: 20px;

    box-shadow: 0 20px 40px rgba(23, 32, 51, 0.2);
}

.hero-visual:hover {
    transform: translateY(-5px);

    box-shadow: 0 25px 50px rgba(23, 32, 51, 0.25);
}


.hero-icon {
    font-size: 50px;

    margin-bottom: 20px;
}


.hero-visual h3 {
    font-size: 30px;

    margin-bottom: 25px;

    color: #7da7d9;
}



html {
    scroll-behavior: smooth;
}

.about-image {
    display: flex;

    justify-content: center;

    align-items: center;
}

.about-image img {
    width: 320px;

    height: 400px;

    object-fit: cover;

    border-radius: 20px;

    box-shadow: 0 20px 40px rgba(23, 32, 51, 0.15);
}
@media (max-width: 768px) {

    .contact-section {
        display: block !important;
        width: 100% !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
        overflow: hidden;
    }

    .contact-container {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .contact-info {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 40px !important;
    }

    .contact-form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

}
