@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

html {
    overflow-x: clip;
}

body {
    background-color: #f7f7f2;
    color: #1e1e24;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 8rem;
}

.logo {
    color: #1e1e24;
    font-size: 1.2rem;
    font-weight: 600;
}

.navmenu {
    display: flex;
}

.navmenu a {
    display: inline-block;
    margin: 0 1.5rem;
    color: #1e1e24;
    font-weight: 500;
    transition: all 0.6s;
}

.navmenu a:hover {
    transform: translateY(-5px);
}

.home {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding: 2rem 5rem 0 18rem;
    gap: 1rem;
    position: relative;
}

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

.home-img img {
    width: 100%;
    height: auto;
    rotate: calc(-360deg);
}

.peep-img {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.peep-img img {
    position: absolute;
    bottom: 0;
    right: 0;
}

.home-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

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

.home-text p {
    margin-bottom: 2rem;
}

.home-btn {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.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-icons {
    position: absolute;
    top: 40%;
    padding: 0 8rem;
}

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

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

.scroll-btn {
    position: fixed;
    bottom: 7%;
    left: 9%;
    color: #1e1e24;
    font-weight: 600;
    display: flex;
    align-items: center;
    z-index: 999;
}

/* About Section */
.about {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding: 2rem 5rem 0 18rem;
    gap: 1rem;
    background-color: #f7f7f2;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-text h3 {
    position: relative;
    padding-left: 6rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.about-text p {
    margin-bottom: 2rem;
}

.about-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    background: #1e1e24;
    color: #f7f7f2;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding: 2rem 5rem 0 18rem;
    gap: 1rem;
    background-color: #e8e8e0;
}

.skills-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skills-text h3 {
    position: relative;
    padding-left: 6rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.skills-text p {
    margin-bottom: 2rem;
}

.skills-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-content {
    width: 100%;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 550px;
}

.tool-card {
    background: #f7f7f2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid #1e1e24;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(30, 30, 36, 0.2);
}

.tool-card i {
    font-size: 2.5rem;
    color: #1e1e24;
}

.tool-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Legacy skill-item styles (if needed) */
.skill-item {
    background: #f7f7f2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid #1e1e24;
}

.skill-item i {
    font-size: 2rem;
}

.skill-item h4 {
    font-size: 1.2rem;
}

/* Projects Section */
.projects {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding: 2rem 5rem 0 18rem;
    gap: 1rem;
    background-color: #f7f7f2;
}

.projects-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projects-text h3 {
    position: relative;
    padding-left: 6rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.projects-text p {
    margin-bottom: 2rem;
}

/* Carousel Styles */
.projects-carousel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 1rem;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 450px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 1rem;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.slide-content {
    padding: 1.5rem;
    background: #1e1e24;
    color: #f7f7f2;
    height: 150px;
    border-radius: 0 0 1rem 1rem;
    display: flex;
    flex-direction: column;
}

.slide-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.8rem 0;
    flex-grow: 1;
}

.project-tools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-badge {
    background: #f7f7f2;
    color: #1e1e24;
    padding: 0.3rem 0.8rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(30, 30, 36, 0.8);
    color: #f7f7f2;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: #1e1e24;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn i {
    font-size: 1.5rem;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #1e1e24;
    width: 30px;
    border-radius: 5px;
}

.indicator:hover {
    background: #666;
}

/* Contact Section */
.contact {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding: 2rem 5rem 0 18rem;
    gap: 1rem;
    background-color: #e8e8e0;
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-text h3 {
    position: relative;
    padding-left: 6rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.contact-text p {
    margin-bottom: 2rem;
}

.contact-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: #f7f7f2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid #1e1e24;
}

.contact-item i {
    font-size: 1.5rem;
}

.contact-item p {
    font-weight: 500;
    margin: 0;
}

/* Active nav link */
.navmenu a.active {
    color: #666;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Large Tablets & Small Laptops - 1200px and below */
@media (max-width: 1200px) {
    header {
        padding: 2rem 4rem;
    }

    .home,
    .about,
    .skills,
    .projects,
    .contact {
        padding: 2rem 3rem 0 10rem;
    }

    .socials-icons {
        padding: 0 4rem;
    }

    .scroll-btn {
        left: 6%;
    }
}

/* Tablet & Small Laptop - 1024px and below */
@media (max-width: 1024px) {
    header {
        padding: 2rem 3rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .navmenu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .navmenu a {
        margin: 0 1rem;
        font-size: 0.9rem;
    }

    .home,
    .about,
    .skills,
    .projects,
    .contact {
        padding: 2rem 3rem;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .home {
        padding-top: 10rem;
    }

    .home-text h2,
    .about-text h2,
    .skills-text h2,
    .projects-text h2,
    .contact-text h2 {
        font-size: 2.5rem;
    }

    .home-text h3::before,
    .about-text h3::before,
    .skills-text h3::before,
    .projects-text h3::before,
    .contact-text h3::before {
        display: none;
    }

    .home-text h3,
    .about-text h3,
    .skills-text h3,
    .projects-text h3,
    .contact-text h3 {
        padding-left: 0;
    }

    .home-img,
    .about-img,
    .skills-img,
    .projects-carousel,
    .contact-img {
        margin-top: 2rem;
        width: 100%;
    }

    .home-img img {
        max-width: 400px;
    }

    .peep-img {
        display: none;
    }

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

    .socials-icons {
        position: fixed;
        bottom: 50%;
        left: 1rem;
        padding: 0;
        z-index: 998;
    }

    .socials-icons i {
        font-size: 1.3rem;
        margin: 20px 0;
    }

    .scroll-btn {
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.85rem;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        justify-items: center;
    }

    .carousel-container {
        max-width: 450px;
    }

    .about-content {
        width: 100%;
        max-width: 500px;
    }

    .contact-content {
        width: 100%;
        max-width: 500px;
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
        position: fixed;
        top: 0;
        background: rgba(247, 247, 242, 0.95);
        backdrop-filter: blur(10px);
    }

    .logo {
        font-size: 1rem;
    }

    .navmenu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #1e1e24;
        padding: 1rem 0.5rem;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        margin: 0;
    }

    .navmenu li {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .navmenu a {
        color: #f7f7f2;
        margin: 0;
        padding: 0.5rem;
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        width: 100%;
        text-align: center;
    }

    .navmenu a:hover {
        transform: translateY(-3px);
        color: #fff;
    }

    .home,
    .about,
    .skills,
    .projects,
    .contact {
        padding: 2rem 2rem;
        min-height: auto;
        padding-bottom: 6rem;
    }

    .home {
        padding-top: 6rem;
        height: auto;
        min-height: 100vh;
        overflow-x: visible;
    }

    .home-text h2,
    .about-text h2,
    .skills-text h2,
    .projects-text h2,
    .contact-text h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .home-text h3,
    .about-text h3,
    .skills-text h3,
    .projects-text h3,
    .contact-text h3 {
        font-size: 1.1rem;
    }

    .home-text p,
    .about-text p,
    .skills-text p,
    .projects-text p,
    .contact-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn {
        padding: 0.8rem 1rem;
        font-size: 11px;
        width: auto;
    }

    .home-btn {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-btn .btn {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
    }

    .home-img {
        display: none;
    }

    .peep-img {
        display: block;
        position: absolute;
        right: 0;
        bottom: 45%;
        width: auto;
        height: auto;
        z-index: 500;
    }

    .peep-img img {
        max-width: 300px;
        width: auto;
        height: auto;
        transform: translateX(30%);
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        padding: 0;
    }

    .tool-card {
        padding: 1rem 0.5rem;
    }

    .tool-card i {
        font-size: 2rem;
    }

    .tool-card h4 {
        font-size: 0.8rem;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-track {
        height: 400px;
    }

    .carousel-slide img {
        height: 250px;
    }

    .slide-content {
        height: 150px;
        padding: 1.2rem;
    }

    .slide-content h4 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn i {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        width: 100%;
        max-width: 100%;
    }

    .about-content {
        padding: 2.5rem 2rem;
    }

    .contact-item {
        padding: 1.2rem;
        width: 100%;
    }

    .socials-icons {
        display: none;
    }

    .scroll-btn {
        display: none;
    }

    .project-tools {
        gap: 0.4rem;
    }

    .tool-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.7rem;
    }
}

/* Mobile Large - 640px and below */
@media (max-width: 640px) {
    header {
        padding: 1rem 1.5rem;
    }

    .home,
    .about,
    .skills,
    .projects,
    .contact {
        padding: 1.5rem 1.5rem;
        padding-bottom: 6rem;
    }

    .home {
        padding-top: 5rem;
        min-height: 100vh;
        overflow-x: visible;
    }

    .home-text h2,
    .about-text h2,
    .skills-text h2,
    .projects-text h2,
    .contact-text h2 {
        font-size: 1.8rem;
    }

    .peep-img img {
        max-width: 250px;
        transform: translateX(35%);
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .tool-card {
        padding: 1rem;
    }

    .carousel-track {
        height: 380px;
    }

    .carousel-slide img {
        height: 230px;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    header {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .navmenu {
        padding: 0.8rem 0.3rem;
    }

    .navmenu a {
        font-size: 0.65rem;
        padding: 0.3rem;
        gap: 0.1rem;
    }

    .home,
    .about,
    .skills,
    .projects,
    .contact {
        padding: 1.5rem 1rem;
        padding-bottom: 6rem;
    }

    .home {
        padding-top: 5rem;
        min-height: 100vh;
        overflow-x: visible;
    }

    .home-text h2,
    .about-text h2,
    .skills-text h2,
    .projects-text h2,
    .contact-text h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .home-text h3,
    .about-text h3,
    .skills-text h3,
    .projects-text h3,
    .contact-text h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .home-text p,
    .about-text p,
    .skills-text p,
    .projects-text p,
    .contact-text p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.7rem 0.8rem;
        font-size: 10px;
    }

    .home-btn {
        flex-direction: column;
        gap: 0.6rem;
    }

    .home-btn .btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .peep-img img {
        max-width: 200px;
        transform: translateX(40%);
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .tool-card {
        padding: 0.8rem 0.5rem;
    }

    .tool-card i {
        font-size: 1.8rem;
    }

    .tool-card h4 {
        font-size: 0.7rem;
    }

    .carousel-track {
        height: 350px;
    }

    .carousel-slide img {
        height: 200px;
    }

    .slide-content {
        height: 150px;
        padding: 1rem;
    }

    .slide-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .slide-content p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .tool-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .about-content {
        padding: 2rem 1.5rem;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .about-content p {
        font-size: 0.85rem;
    }

    .contact-item {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .contact-item i {
        font-size: 1.2rem;
    }

    .contact-item p {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 20px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn i {
        font-size: 1rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}

/* Mobile Extra Small - 360px and below */
@media (max-width: 360px) {
    .logo {
        font-size: 0.8rem;
    }

    .navmenu a {
        font-size: 0.6rem;
    }

    .home-text h2,
    .about-text h2,
    .skills-text h2,
    .projects-text h2,
    .contact-text h2 {
        font-size: 1.4rem;
    }

    .home-text h3,
    .about-text h3,
    .skills-text h3,
    .projects-text h3,
    .contact-text h3 {
        font-size: 0.9rem;
    }

    .home-text p,
    .about-text p,
    .skills-text p,
    .projects-text p,
    .contact-text p {
        font-size: 0.8rem;
    }

    .btn {
        font-size: 9px;
        padding: 0.6rem;
    }

    .peep-img img {
        max-width: 180px;
        transform: translateX(45%);
    }

    .tool-card {
        padding: 0.6rem 0.4rem;
    }

    .tool-card i {
        font-size: 1.5rem;
    }

    .tool-card h4 {
        font-size: 0.65rem;
    }

    .carousel-track {
        height: 320px;
    }

    .carousel-slide img {
        height: 180px;
    }

    .slide-content {
        height: 140px;
        padding: 0.8rem;
    }

    .slide-content h4 {
        font-size: 1rem;
    }

    .slide-content p {
        font-size: 0.7rem;
    }

    .tool-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }
}
