* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-attachment: fixed;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(#F5ebe1, #E3d4ca, #D4bcaf);
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    padding: 15px 0;
    z-index: 100000;
}

/* Container */
.container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo h2 {
    color: #544349;
    font-size: 22px;
}

/* Navbar */
.navbar {
    background-color: white;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
    z-index: 10000;
    display: flex;
    justify-content: center;
}

.navbar ul {
    position: relative;
    list-style: none;
    display: flex;
    margin: 0;
    border-radius: 12px;
    justify-content: center;
    gap: 4px;
}

/* equal width items */
.navbar ul li {
    width: 100px;
    text-align: center;

}

/* center text inside link */
.navbar ul li a {
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    text-decoration: none;
    color: black;
    position: relative;
    z-index: 1;
}

/* sliding background */
.navbar ul .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 40px;
    border: 1px solid gray;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 200, 150, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: left 0.4s cubic-bezier(.34, 1.56, .64, 1), width 0.4s;
    z-index: 0;
}

.navbar ul li:nth-child(1):hover ~ .slider {
    left: 0;
    width: 100px;
}

.navbar ul li:nth-child(2):hover ~ .slider {
    left: 94px;
    width: 120px;
}

.navbar ul li:nth-child(3):hover ~ .slider {
    left: 198px;
    width: 120px;
}

.navbar ul li:nth-child(4):hover ~ .slider {
    left: 312px;
}

.navbar ul li:nth-child(5):hover ~ .slider {
    left: 411px;
    width: 110px;
}

.navbar ul li:nth-child(6):hover ~ .slider {
    left: 520px;
}

/* Button */
.btn {
    padding: 12px 22px;
    color: #544349;
    text-decoration: none;
    border: 1px solid gray;
    border-radius: 50px;
    transition: 0.3s;
    z-index: 10000;
}

.btn img {
    margin-left: 5px;
    width: 14px;
    height: 14px;
}

.btn:hover {
    background: white;
    box-shadow: 0 4px 15px rgb(255, 255, 255);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger div {
    height: 3px;
    background-color: #544349;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Different widths (normal state) */
.hamburger div:nth-child(1) {
    width: 25px;
}

.hamburger div:nth-child(2) {
    width: 20px;
}

.hamburger div:nth-child(3) {
    width: 15px;
}

.hamburger img {
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

/* Mobile Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 500px;
    width: 250px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    z-index: 999999;
}

/* Mobile menu links */
.mobile-nav a {
    padding: 10px;
    color: #544349;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Hover effect */
.mobile-nav a:hover {
    padding: 8px 25px;
    border: 1px solid gray;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgb(248, 226, 188);
    transition: padding 0.3s ease,
    border 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

/* Optional: add a smooth fade effect when opening menu */
.mobile-nav {
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
}

.nav-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: #544349;
}

.nav-link img {
    width: 16px;
    height: 16px;
}

.mobile-btn {
    margin-top: 4px;
    padding: 10px;
    text-align: center;
    border: 1px solid white;
    background: #f3e7d9;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(128, 128, 128, 0.2);

}

.mobile-btn:hover {
    background: #F5ebe1;
}

@media (max-width: 950px) {

    .btn {
        display: none;
    }

    .container-home {
        padding-top: 40px;
    }


}

@media (max-width: 800px) {
    .navbar {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-image {
        justify-content: center;
        margin-top: 30px;
    }


    .bio-container {
        flex-direction: column;
        align-items: center;
        /*text-align: center;*/
    }

    .bio-text h2 {
        text-align: center;
    }

    .bio-image {
        justify-content: center; /* horizontal center */
    }

    .bio-image img {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .card {
        flex-direction: column; /* stack vertically */
        text-align: center;
    }

    .card-content {
        width: 100%;
    }

    .card-image {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

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

    .click-here {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    img.cv-image,
    div.photo-wrapper {
        width: 100%;
    }

    .container-contact {
        flex-direction: column;
    }
}

@media (max-width: 1000px) {
    .team-card {
        flex-direction: column;
        gap: 20px;
    }


    .member {
        flex: 1 1 100%;
    }

    .parent {
        justify-content: flex-start;
    }
}

@media (min-width: 800px) {
    .mobile-nav {
        display: none;
    }

}

.main {
    display: flex;
    align-items: center;
}

.container-home {
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.right img {
    max-width: 100%;
}

.hero-text {
    max-width: 50%;
    margin-top: 40px;
}

.intro {
    color: #a86f44;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-size: 22px;
}

h1 {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2a0800;
}

.subtitle {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: white;
    margin-bottom: 30px;
}


.hero-image {
    flex: 1;
    display: flex;
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 80%;
    object-fit: cover;
    transform: scale(1.1);
    margin-top: -20px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    transition: transform 0.3s ease;

}

.hero-image img:hover {
    transform: scale(1.15);
}


.btn-more {
    padding: 10px 20px;
    border: none;
    background: #f4a261;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: transform 0.3s, background 0.3s;
}

.btn-more:hover {
    transform: scale(1.1) translateX(10px);
    box-shadow: 0 8px 20px rgb(255, 255, 255);
}

.btn-more .btn-icon {
    margin-left: 10px;
    width: 16px;
    height: 16px;
    align-content: center;

}

.btn-icon-outside {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

a {
    text-decoration: none;
}

.more {
    display: flex;
    align-items: center; /* vertical center */
    gap: 15px; /* space between items */
    margin-top: 20px;
}

.icon-know {
    text-align: center;
}

.btn-icon-outside:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgb(255, 255, 255);
}


/*about Me Page*/
.bio {
    padding: 0 20px;
}

.bio-container {
    padding-top: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 85%;
    margin: 0 auto;
    gap: 40px;
}

.bio-image img {
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgb(255, 255, 255);
    transition: transform 0.3s ease;
}

.bio-image img:hover {
    transform: scale(1.05); /* zoom in */
}

.bio-text {
    flex: 1;
    min-width: 250px;
}

.bio-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2a0800;
}

.bio-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #544349;
}


/*Education Page*/
.education-section {
    width: 85%;
    margin: 0 auto;
    padding-top: 80px;

}

.title {
    margin-bottom: 40px;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(90deg, #2a0800, #b18b8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    gap: 40px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgb(255, 255, 255);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
}

.card-content {
    justify-content: center;
}

.card-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2a0800;
}

.year {
    color: #a86f44;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.card-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.text {
    color: #544349;
    font-size: 16px;
}


.card-image img {
    max-width: 350px;
    border-radius: 15px;
    border: 3px solid #ffffff;
    transition: transform 0.3s ease;
}

.card-image img:hover {
    transform: scale(1.05);
}


/*Skill Page*/
.container-skill {
    max-width: 85%;
    margin: 0 auto;
    padding-top: 80px;
    /*padding: 50px 20px;*/
    text-align: center;
}

.languages-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.languages {
    width: 25px;
    height: 25px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gradient-bg {
    background: linear-gradient(90deg, #2a0800, #b18b8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 20px;
}

p.subtitle {
    font-size: 1.1rem;
    color: #2a0800;
    margin-bottom: 40px;
}

h2.languages-heading {
    color: #a86f44;
    margin-bottom: 30px;
}

/* Tech Stack Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 60px;
    max-width: 90%;
    margin: 0 auto 70px;

}

.tech-grid-design {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 60px;
    max-width: 90%;
    margin: 0 auto;

}

.tech-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 10px rgb(255, 255, 255);
}

.tech-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.tech-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.tech-item span {
    font-size: 16px;
    color: #544349;

}

body::before {
    content: '0101010101010101010101010';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
    white-space: pre-wrap;
}


/*Project Page*/
.section-project {
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

.team-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    width: 85%;
    margin: 0 auto;

}

.member {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 300px;
    padding: 30px 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 30px rgb(255, 255, 255);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2d3d;
}

.member-info p {
    margin-top: 8px;
    font-size: 16px;
    color: #544349;
    line-height: 1.5;
}

.divider {
    width: 1px;
    height: 80px;
    background: rgba(0, 0, 0, 0.1);
}

img.project {
    width: 30px;
    height: 30px;
}

.project-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

h2.project-heading {
    color: #a86f44;
}


.github-wrapper {
    position: relative;
    display: inline-block;
    gap: 50px;
}

.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #f4a261;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.github-wrapper:hover .tooltip {
    opacity: 1;
}

.parent {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.view {
    width: 60px;
    height: 60px;
    background-color: #1e1e1e;
    border: 2px solid #f4a261;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view img {
    width: 28px;
    height: 28px;
    filter: invert(100%);
}

.view:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #f4a261; /* orange glow */
    border-color: #f4a261; /* change border to orange */
}


/*CV Page*/
.cv-section {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 85%;
    margin: 0 auto;
}

.click-here {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 50px;
    width: 100%;

    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgb(255, 255, 255);
}

.cv-image {
    width: 50%;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.cv-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.photo-wrapper {
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
}

.photo-image {
    width: 100%;
    border-radius: 15px;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-image:hover {
    transform: scale(1.05); /* slight zoom */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* optional shadow */
}

.download-btn {
    position: absolute;
    top: 42%;
    left: 25%;
    transform: translateX(-50%);
    background: rgba(244, 162, 97, 0.8);
    color: #fff;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 16px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.download-btn:hover {
    background: #f4a261;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 25px rgb(255, 255, 255);
}

/*Contact Page*/

.contact-section {
    padding: 80px 10%;
}

.container-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* LEFT SIDE */
.contact-left {
    flex: 1;
}

.contact-left h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #dfe6e9;
}

.contact-left h2 {
    font-size: 28px;
    color: #00a8ff;
    margin-bottom: 20px;
}

.contact-left p {
    margin-bottom: 40px;
    color: #ccc;
    line-height: 1.6;
}

.icon-contact {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* INFO BOX */
.info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.4);
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: 0.3s;
    box-shadow: 0 8px 20px rgb(255, 255, 255, 0.6);
}

.info-box:hover {
    transform: translateY(-5px);
    border-color: #f4a261;
}

.info-box i {
    font-size: 22px;
    background: rgba(244, 162, 97, 0.4);
    padding: 12px;
    border-radius: 50%;
}

.info-box h3 {
    margin-bottom: 5px;
    color: #a86f44;
}

.info-box span {
    font-size: 16px;
    color: #544349;
}

/* RIGHT SIDE */
.contact-right {
    flex: 1;
}

.contact-right form {
    background: rgba(255, 255, 255, 0.4);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgb(255, 255, 255, 0.6);
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgb(244, 234, 223);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.contact-right textarea {
    height: 120px;
    resize: none;
}

.contact-right input::placeholder,
.contact-right textarea::placeholder {
    color: #544349;
}

/* BUTTON */
.contact-right button {
    width: 100%;
    padding: 16px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(90deg, #f4a261, rgba(244, 162, 97, 0.4));
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-right button:hover {
    background: linear-gradient(90deg, rgba(244, 162, 97, 0.4), #f4a261);
    transform: translateY(-3px);
}

.contact-me {
    text-align: center;
    margin-bottom: 20px;
    color: #a86f44;
}

.send-message {
    font-size: 16px;
}

/*Footer*/
.footer {

    background: rgba(255, 255, 255, 0.2); /* transparent */
    backdrop-filter: blur(12px); /* glass blur */
    -webkit-backdrop-filter: blur(12px); /* safari support */

    padding: 20px 10%;
    text-align: center;
    color: #2a0800;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.1);
}

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

.copyright {
    font-size: 13px;
    opacity: 0.7;
}






