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

html {
    scroll-padding-top: 68px;
}

section[id] {
    scroll-margin-top: 68px;
}

/* header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 40px;
    font-family: "Roboto", sans-serif;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
} */


/* header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 40px;
    font-family: "Roboto", sans-serif;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
} */

/* HOME SECTION ENTRANCE ANIMATION */
/* .home {
    padding-top: 100px;
    opacity: 1;
    transform: translateY(0);
    animation: homeSlideUp 1.3s cubic-bezier(.25, 1, .5, 1);
}

@keyframes homeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(90px);
    }

    60% {
        opacity: 1;
        transform: translateY(-12px);
    }

    80% {
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 40px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* body {
    padding-top: 50px;
}

.home {
    min-height: calc(100vh - 70px);
    opacity: 1;
    transform: translateY(0);
    animation: homeSlideUp 1.3s cubic-bezier(.25, 1, .5, 1);
} */
 /* Global layout fix for all pages */
/* Global compact layout */
body {
    padding-top: 64px;
    background: #fff;
}

.home {
    min-height: calc(100vh - 64px);
}

.about,
.project,
.contact {
    min-height: auto;
}

/* Section spacing */
.about,
.project,
.contact {
    padding: 34px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Home tweaks */
/* .home {
    padding-bottom: 40px;
    animation: homeSlideUp 1.3s cubic-bezier(.25, 1, .5, 1);
} */




@keyframes homeSlideUp {
    0% { opacity: 0; transform: translateY(90px); }
    60% { opacity: 1; transform: translateY(-12px); }
    80% { transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* HIDE SLIDE MENU */
.slide-menu {
    display: none;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.logo span {
    color: rgb(0, 213, 255);
}

.header-list,
.header-list-icon {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-list li,
.header-list-icon li {
    list-style: none;
}

.header-list a,
.header-list-icon a {
    text-decoration: none;
    color: black;
    position: relative;
    transition: color 0.3s ease;
}

.header-list-icon {
    border-left: 3px solid rgb(0, 179, 255);
    padding: 0 10px;
}

.header-list a:hover,
.header-list a.active {
    color: #00bbff;
}

.header-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00bbff;
    transition: width 0.3s ease;
}

.header-list a:hover::after,
.header-list a.active::after {
    width: 100%;
}

.home {
    padding: 2rem 5rem 0 18rem;
    width: 100%;
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
    font-family: "Poppins", sans-serif;
    background: #fff;
}

.home-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e1e24;
    text-shadow: none;
}


.home-text h3 {
    position: relative;
    padding-left: 6rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #010105;
    text-shadow: none;
}


.home-text h3::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 2px;
    background-color: #1e1e24;
    box-shadow: none;
    left: 0;
    top: 1rem;
}

.home-text p {
    margin-bottom: 2rem;
    color: #1e1e24;
    max-width: 620px;
    text-shadow: none;
}

.home-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== BUTTON ===== */
.home-btn a {
    text-decoration: none;
}

.btn {
    display: inline-block;
    width: fit-content;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: #f7f7f2;
    border: 1px solid #1e1e24;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    background: #1e1e24;
    transition: all 0.5s;
}

.btn:hover {
    background: #f7f7f2;
    color: #1e1e24;
    transform: translateY(5px);
}

.socials-icon {
    position: absolute;
    top: 40%;
    padding: 0 8rem;
}

.socials-icon a {
    text-decoration: none;
}

.socials-icon i {
    display: block;
    margin: 25px 0;
    color: #1e1e24;
    font-size: 1.5rem;
    transition: all 0.6s;
    text-shadow: none;
}

.socials-icon i:hover {
    transform: rotate3d(0, 0, 1, 90deg);
}

.scroll-btn {
    position: absolute;
    bottom: 7%;
    left: 9%;
    color: #1e1e24;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.home-img img {
    width: 100%;
    height: auto;
}

/* ===== ABOUT PAGE ===== */
.about {
    margin: 90px auto;
    font-family: "Poppins", sans-serif;
    background: #fff;
}

.about-info {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 4rem;
}

.img-about img {
    width: 50px;
    border-radius: 50%;
}

.info-text {
    position: relative;
    bottom: -7px;
}

.info-text p {
    color: #1e1e2495;
    font-size: 15px;
}

.info-text h5 {
    margin-bottom: 4px;
}

.about h3 {
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-family: "Montserrat", sans-serif;
    color: #1e1e24;
}

.about-text span {
    color: #ffcc00;
    font-weight: bold;
    margin-right: 4px;
}

.about-info2 {
    display: flex;
}

.photo-container {
    position: relative;
    display: inline-block;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.photo-container img {
    width: 260px;
    border-radius: 8px;
    display: block;
}

.tape {
    position: absolute;
    width: 90px;
    height: 30px;
    background: linear-gradient(145deg, #111 0%, #222 40%, #000 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    opacity: 0.9;
    transform-origin: center;
    z-index: 2;
}

.tape::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05));
    mix-blend-mode: overlay;
    pointer-events: none;
}

.tape1 {
    top: -18px;
    left: 25px;
    transform: rotate(-10deg);
}

.tape2 {
    bottom: -18px;
    right: 25px;
    transform: rotate(10deg);
}

/* ===== PROJECTS ===== */
.project {
    margin: 90px auto;
    font-family: "Poppins", sans-serif;
    background: #fff;
}

.title-project {
    text-align: center;
    margin-bottom: 2rem;
}

.title-project h4 {
    margin-bottom: 0.5rem;
}

.title-project p {
    color: #1e1e24;
}

.tools {
    display: flex;
    justify-content: center;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.list-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    max-width: 800px;
    justify-content: center;
}

.list-tools li {
    flex: 0 0 140px;
}

.list-tools a {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: #222;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.list-tools a:hover {
    background: linear-gradient(135deg, #fff, #ccc);
    color: #000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.skills-showcase {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 30px 30px;
    margin: 0 auto 2rem;
    max-width: 980px;
}

.skill-strip {
    position: relative;
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 24px;
    background: transparent;
    color: #111;
    border-bottom: 1px solid rgba(30, 30, 36, 0.14);
    padding: 18px 0;
    transition: all 0.35s ease;
}

.skill-strip::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: #1e90ff;
    transition: width 0.35s ease;
}

.skill-strip:hover {
    transform: translateX(8px);
}

.skill-strip:hover::before {
    width: 100%;
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.skill-title i {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    background: #1e1e24;
    border-radius: 50%;
    color: #1e90ff;
    font-size: 1.25rem;
    transition: all 0.35s ease;
}

.skill-strip:hover .skill-title i {
    background: #1e90ff;
    color: #fff;
    transform: rotate(8deg) scale(1.08);
}

.skill-title h3 {
    color: #1e90ff;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    display: inline-block;
    background: #f7f7f2;
    color: #111;
    border: 1px solid rgba(30, 30, 36, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background: #222;
    color: #fff;
    transform: translateY(-2px);
}

/* Extracurriculars & Achievements */
.achievements {
    margin: 70px auto;
    padding: 28px 20px;
    max-width: 1100px;
    font-family: "Poppins", sans-serif;
    background: #fff;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.achievement-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #1e90ff;
}

.achievement-icon {
    font-size: 2.2rem;
    color: #ffb703;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.15);
}

.achievement-card h3 {
    font-size: 1.15rem;
    color: #111;
    margin-bottom: 10px;
}

.achievement-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 30px;
}

.project-card {
    background: linear-gradient(135deg, #f5f5f5, #ddd);
    color: #111;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card h3 {
    margin: 15px 0 5px;
    font-size: 1.2rem;
    color: #1e90ff;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: #0d6efd;
}

.project-card p {
    font-size: 0.9rem;
    margin: 0 10px 15px;
}

.tech-buttons a {
    display: inline-block;
    margin: 5px 5px;
    padding: 5px 10px;
    background: #fff;
    color: #111;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-buttons a:hover {
    background: linear-gradient(135deg, #fff, #ccc);
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #fff, #ccc);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.filter-btn,
.project-detail-btn,
.assistant-actions button,
.modal-links a {
    border: none;
    background: #222;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active,
.project-detail-btn:hover,
.assistant-actions button:hover,
.modal-links a:hover {
    background: linear-gradient(135deg, #fff, #ccc);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
}

.tech-buttons button {
    margin: 5px 5px;
}

.stats-grid,
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.stat-card,
.assistant-panel {
    background: linear-gradient(135deg, #f5f5f5, #ddd);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-card strong {
    display: block;
    color: #1e90ff;
    font-size: 2rem;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.stat-card:hover strong {
    transform: scale(1.1);
}

.stat-card span {
    color: #1e1e2495;
    font-weight: 700;
    font-size: 0.85rem;
}

.certifications,
.timeline-section,
.portfolio-assistant {
    margin: 70px auto;
    padding: 28px 20px;
    max-width: 1100px;
    font-family: "Poppins", sans-serif;
    background: #fff;
}

/* Enhanced Certifications Card */
.cert-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    text-align: center;
    padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e90ff, #00d5ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.15);
    border-color: transparent;
}

.cert-card:hover::before {
    transform: scaleX(1);
}

.cert-card i {
    color: #1e90ff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(30, 144, 255, 0.08);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.cert-card:hover i {
    transform: rotateY(180deg);
}

.cert-card h3 {
    color: #1e1e24;
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cert-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cert-card span {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f8ff;
    color: #1e90ff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Enhanced Timeline */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: #f0f0f0;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: calc(50% - 40px);
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    text-align: right;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    text-align: left;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 144, 255, 0.1);
    border-color: #1e90ff;
}

/* Connectors */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 35px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #1e90ff;
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:nth-child(odd)::before {
    right: -52px;
}

.timeline-item:nth-child(even)::before {
    left: -52px;
}

.timeline-item:hover::before {
    background: #1e90ff;
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(30, 144, 255, 0.2);
}

/* Date badge */
.timeline-item span {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f8ff;
    color: #1e90ff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
}

.timeline-item h3 {
    color: #1e1e24;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Arrow/Triangle pointing to timeline */
.timeline-item::after {
    content: "";
    position: absolute;
    top: 38px;
    width: 0;
    height: 0;
    border-style: solid;
    transition: all 0.4s ease;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #eaeaea;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #eaeaea transparent transparent;
}

.timeline-item:hover:nth-child(odd)::after {
    border-left-color: #1e90ff;
}
.timeline-item:hover:nth-child(even)::after {
    border-right-color: #1e90ff;
}


.assistant-panel {
    max-width: 850px;
    margin: 0 auto;
    padding: 30px;
}

.assistant-chat {
    background: #fff;
    border-radius: 10px;
    min-height: 180px;
    max-height: 280px;
    overflow-y: auto;
    padding: 18px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.assistant-message {
    width: fit-content;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    line-height: 1.45;
}

.assistant-message.bot {
    background: #1e1e24;
    color: #fff;
}

.assistant-message.user {
    margin-left: auto;
    background: #e9f6ff;
    color: #111;
}

.assistant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.assistant-form {
    display: flex;
    gap: 12px;
}

.assistant-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.project-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
}

.project-modal.active {
    display: flex;
}

.project-modal-content {
    position: relative;
    width: min(650px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #f5f5f5, #ddd);
    color: #111;
    border-radius: 12px;
    padding: 34px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.project-modal-content h3 {
    color: #1e90ff;
    margin-bottom: 18px;
}

.project-modal-content p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: #111;
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contact {
    margin: 90px auto;
    background: #fff;
}

.contact h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 25px;
}

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

.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #111;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 1.5rem;
    color: #1e1e24;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item:hover i {
    transform: translateY(-3px);
    color: #4a4546;
}

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links-contact a {
    font-size: 1.5rem;
    color: #1e1e24;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #505050;
}

.contact-form {
    flex: 1;
    min-width: 350px;
    background: linear-gradient(135deg, #f5f5f5, #ddd);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 8px #1e90ff;
}

.contact-form button.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form button.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #ff1744, #ff5252);
}

@media (max-width: 1024px) {
    .about,
    .project,
    .contact {
        margin: 40px auto;
    }
}

@media (max-width: 900px) {
    .about,
    .project,
    .contact {
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .about,
    .project,
    .contact {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .about,
    .project,
    .contact {
        margin: 20px auto;
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
}



.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #111;
}

/* Slide-in menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background-color: #111;
    color: #fff;
    transition: 0.3s ease;
    z-index: 2000;
    padding-top: 60px;
}

.slide-menu ul {
    list-style: none;
    padding: 0;
}

.slide-menu ul li {
    margin: 20px 0;
    text-align: center;
}

.slide-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.slide-menu ul li a:hover {
    color: #00bfff;
}

.slide-menu.active {
    right: 0;
}

@media screen and (max-width: 768px) {

    .header-list,
    .header-list-icon {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}



@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .home {
        padding: 2rem 3rem 0 3rem;
    }

    .about,
    .project,
    .contact,
    .certifications,
    .timeline-section,
    .portfolio-assistant {
        margin: 70px 50px;
    }

    .stats-grid,
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Tablets / iPad Portrait ===== */
@media (max-width: 900px) {
    .home {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .home-btn {
        justify-content: center;
    }

    .home-img img {
        width: 80%;
        margin: 0 auto;
    }

    .socials-icon {
        display: none;
    }

    .about-info2,
    .contact-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about,
    .project,
    .contact,
    .certifications,
    .timeline-section,
    .portfolio-assistant {
        margin: 60px 30px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        align-self: stretch;
        text-align: left;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: -28px;
        right: auto;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent #eaeaea transparent transparent;
    }

    .timeline-item:hover:nth-child(odd)::after,
    .timeline-item:hover:nth-child(even)::after {
        border-right-color: #1e90ff;
        border-left-color: transparent;
    }
}



/* ===== Small Tablets / Large Phones ===== */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .home {
        padding: 1.5rem 1rem;
    }

    .socials-icon {
        display: none;
    }

    .home-text h2 {
        font-size: 2.2rem;
    }

    .home-text h3 {
        font-size: 1.2rem;
        padding-left: 3rem;
    }

    .about,
    .project,
    .contact,
    .certifications,
    .timeline-section,
    .portfolio-assistant {
        margin: 50px 20px;
    }

    .skills-showcase {
        padding: 10px 10px 25px;
    }

    .skill-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cert-card {
        padding: 25px 15px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 25px;
    }

    .photo-container img {
        width: 200px;
    }

    .contact-info,
    .contact-form {
        min-width: 100%;
    }

    .contact-form {
        padding: 30px;
    }

    .assistant-form {
        flex-direction: column;
    }

    .assistant-form .btn {
        width: 100%;
    }
}

/* ===== Phones ===== */
@media (max-width: 480px) {
    header {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .logo {
        font-size: 18px;
    }

    .home-text h2 {
        font-size: 1.8rem;
    }

    .home-text h3 {
        font-size: 1rem;
        padding-left: 1.5rem;
    }

    .home {
        padding: 1rem 1rem 0 1rem;
        margin: 60px 0 0 0;
    }

    .socials-icon {
        display: none;
    }

    .home-img img {
        width: 100%;
    }

    .projects-container {
        gap: 15px;
    }

    .photo-container img {
        width: 150px;
    }

    .about,
    .project,
    .contact,
    .certifications,
    .timeline-section,
    .portfolio-assistant {
        margin: 45px 15px;
    }

    .contact-form {
        padding: 20px;
    }

    .scroll-btn {
        left: 5%;
        bottom: 5%;
    }

    .stats-grid,
    .cert-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .cert-card,
    .achievement-card {
        padding: 20px 15px;
    }

    .timeline {
        padding-left: 15px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 20px 15px;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: -23px;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: -8px;
    }

    .assistant-panel,
    .project-modal-content {
        padding: 22px;
    }

    .assistant-message {
        max-width: 100%;
    }
    /* ================= FOOTER ================= */



}
