/* -------- Global Style -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #18191D;
    color: #ffffff;
    overflow-x: hidden;
}

/* -------- Header -------- */
header {
    width: 100%;
    padding: 25px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo p {
    font-size: 36px;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    color: #F88787;
}
/* Hide hamburger by default */
.menu-btn {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Mobile Navigation (hidden initially) */
nav ul {
    transition: max-height 0.4s ease;
}



/* -------- Home Section -------- */
.Home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    top: -40px;
}

.Home .content {
    max-width: 550px;
}

.Home h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 15px;
}

.Home h1 span {
    color: #F88787;
}

.Home p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #d1d1d1;
}

.resume-btn {
    display: inline-block;
    background: #F88787;
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.resume-btn:hover {
    opacity: 0.8;
}

/* -------- Social Icons -------- */
.socials {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.socials a {
    font-size: 28px;
    color: white;
    transition: 0.3s;
}

.socials a:hover {
    color: #d37a7a;
    transform: scale(1.15);
}

/* -------- Profile Image -------- */
.image {
    position: relative;
    right: 40px;
}

.image img {
    width: 330px;
    height: auto;
    border-radius: 4px;
}

/* -------- ABOUT SECTION -------- */
.about {
    padding: 80px;
    background: #212227;
    color: white;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image img {
    width: 250px;
    height: auto;
    border-radius: 6px;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    font-size: 55px;
    margin-bottom: 20px;
    font-weight: 800;
    color: #515256;
    margin-left: 100px;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #d1d1d1;
}

.about-text {
    margin-top: 10px;
    line-height: 1.6;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 60px 40px;
    background: #18191D; /* slightly different dark panel */
    color: #dcdcdc;
    border-top: 1px solid rgba(255,255,255,0.03);
  }
  
  .skills-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .skills-heading {
    text-align: center;
    font-size: 44px;
    letter-spacing: 2px;
    color: #515256; /* heading grey like image */
    margin-bottom: 30px;
    font-weight: 800;
  }
  
  /* Grid: two columns */
  .skills-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  /* Each column */
  .skills-column {
    flex: 1 1 420px;
    min-width: 300px;
  }
  
  /* Column title */
  .col-title {
    color: #e6e6e6;
    font-size: 30px;
    margin-bottom: 18px;
    margin-left: 100px;
    font-weight: 700;
  }
  
  /* Skill row */
  .skill-row {
    display: grid;
    grid-template-columns: 1fr 230px 60px;
    align-items: center;
    gap: 18px;
    margin: 12px 0 18px;
  }
  
  /* Label on left */
  .skill-label {
    font-size: 17px;
    color: #cfcfcf;
    padding-right: 10px;
  }
  
  /* Percentage number at right */
  .skill-percent {
    font-size: 17px;
    color: #bfbfbf;
    text-align: right;
    white-space: nowrap;
  }
  
  /* Progress bar container */
  .skill-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
  }
  
  /* Filled portion */
  .skill-fill {
    height: 100%;
    background: #F88787;
    width: 0%;        /* Start at 0% for animation */
    border-radius: 10px;
  }
  
  /* Small circular knob indicator */
  .skill-knob {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59,142,246,0.12);
    border: 2px solid rgba(0,0,0,0.15);
    left: 0%;          
    
  }
  
  /* Paragraph text below spans full width */
  .skills-text {
    margin-top: 28px;
    color: #cfcfcf;
    line-height: 1.7;
    font-size: 16px;
  }
  
  /* Make the descriptive paragraph a bit narrower and centered like the screenshot */
  .skills-text p {
    max-width: 1000px;
    margin: 0 auto 12px;
    text-align: left;
  }


  /* ===== PROJECTS SECTION ===== */

.projects {
    padding: 80px 60px;
    background: #212227;
    color: #fff;
  }
  
  .projects-title {
    text-align: center;
    font-size: 44px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #515256;
    margin-bottom: 40px;
  }
  
  .projects-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .project-card {
    position: relative;
    width: 320px;
    background: #2a2b30;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
  }
  
  /* Project Image */
  .project-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  /* Project Text */
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 27px;
    margin-bottom: 8px;
    color: #f1f1f1;
  }
  
  .project-info p {
    font-size: 17px;
    color: #cfcfcf;
    margin-bottom: 10px;
  }
  
  .project-info .tech {
    color: #ffa5a5;
    font-size: 17px;
  }
  
  /* Hover Overlay */
  .project-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.342);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
  }
  
  .project-card:hover .project-hover {
    opacity: 1;
  }
  
  .project-hover a {
    padding: 12px 24px;
    background: #F88787;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: 0.2s;
  }
  
  .project-hover a:hover {
    background: #d06c6c;
  }


  /* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 60px;
    background: #18191D;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-subtext {
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
    font-size: 1rem;
    color: #cccccc;
  }

.contact-title {
    font-size: 44px;
    font-weight: 800;
    color: #515256;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-box {
    background: #212227;
    width: 250px;
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
}

.contact-box i {
    font-size: 30px;
    color: #F88787;
    margin-bottom: 15px;
}

.contact-box h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #ffffff;
}

.contact-box p {
    font-size: 16px;
    color: #d1d1d1;
}

.contact-box:hover {
    transform: translateY(-6px);
    background: #2a2b30;
}

/* Social icons under contact */
.contact-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.contact-socials a {
    font-size: 34px;
    color: white;
    transition: 0.3s;
}

.contact-socials a:hover {
    color: #F88787;
    transform: scale(1.15);
}
/* ========================================= */
/* ==========  RESPONSIVENESS  ============= */
/* ========================================= */

@media (max-width: 1100px) {
    .Home {
        padding: 60px;
        gap: 20px;
    }

    .Home .content {
        max-width: 480px;   /* reduce text width sooner */
        flex: 1;
    }

    .Home h1 {
        font-size: 44px;   /* slightly smaller */
    }

    .Home p {
        font-size: 16px;
    }

    .image img {
        width: 300px;      /* image reduced earlier */
    }
}


/* -------- Laptops (1024px and below) -------- */
@media (max-width: 1024px) {
    header {
        padding: 20px 50px;
    }

    nav ul li a {
        font-size: 18px;
    }

    .Home {
        padding: 60px;
        gap: 30px;
    }

    .image img {
        width: 300px;
    }
}

/* -------- Tablets (900px and below) -------- */

@media (max-width: 900px) {

    .Home {
        flex-direction: column-reverse;
        padding: 50px 40px;
        top: 0;
        text-align: center;               /* center all text */
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .Home .content {
        width: 100%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;              /* center inner items */
        text-align: center;
    }

    .Home h1 {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .Home p {
        font-size: 15px;
        line-height: 1.6;
        color: #d1d1d1;
        margin-bottom: 18px;
    }

    /* Resume Button Center */
    .resume-btn {
        display: block;
        margin: 0 auto;
        padding: 12px 28px;
    }

    /* Center Social Icons */
    .socials {
        margin-top: 20px;
        display: flex;
        justify-content: center;          /* center socials */
        align-items: center;
        gap: 20px;
    }

    .socials a {
        font-size: 28px;
    }

    /* Image Center */
    .image {
        right: 0;                          /* remove desktop shift */
        width: 100%;
        text-align: center;
    }

    .image img {
        width: 260px;
        display: block;
        margin: 0 auto;                    /* center the image */
    }

    /* Navigation spacing */
    nav ul {
        gap: 25px;
    }

    .skill-row {
        grid-template-columns: 1fr 1fr;
        align-items: center;
      }
      .skill-percent {
        text-align: left;
      }
      .skills-grid {
        gap: 30px;
      }
}


/* -------- Phones (600px and below) -------- */
@media (max-width: 600px) {

    /* Header */
    header {
        padding: 20px 25px;
    }

    .logo p {
        font-size: 32px;
    }

    /* Show hamburger */
    .menu-btn {
        display: block;
        font-size: 32px;
        cursor: pointer;
        color: white;

        position: absolute;
        right: 35px;   /* move icon right */
        top: 26px;

        z-index: 10000; /* Always above everything */
    }

    /* Mobile Navigation */
    nav ul {
        position: absolute;
        top: 60px;
        right: 25px;
        width: 200px;
        background: #1f2024;
        border-radius: 10px;
        overflow: hidden;

        flex-direction: column;
        gap: 0;
        padding: 0;

        max-height: 0;
        transition: max-height 0.4s ease;

        z-index: 9999;
    }

    nav ul li {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        border-bottom: 1px solid #333;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        font-size: 16px;
        letter-spacing: 0;
    }

    nav ul.show {
        max-height: 300px;
    }

    /* HOME SECTION */
    .Home {
        padding: 40px 25px;
        text-align: center;          /* center all text */
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 25px;
    }

    .Home .content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;         /* center items */
        text-align: center;
    }

    .Home h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .Home p {
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 20px;
        color: #d1d1d1;
    }

    /* Resume Button */
    .resume-btn {
        font-size: 14px;
        padding: 10px 24px;
        margin: 0 auto;              /* center button */
        display: block;
    }

    /* Social Icons */
    .socials {
        margin-top: 25px;
        display: flex;
        justify-content: center;     /* center line */
        gap: 20px;
    }

    .socials a {
        font-size: 28px;
    }

    /* Profile Image */
    .image {
        width: 100%;
        text-align: center;
        position: relative;
        right: 0;                    /* reset desktop offset */
    }

    .image img {
        width: 220px;
        margin: 0 auto;
        display: block;              /* center image */
    }

    .about-image {
        display: none;
    }
    
    .about-content h2 {
        text-align: center;
        margin-left: 0;
        font-size: 35px;
    }
    .contact {
        padding: 60px 25px;
    }

    .contact-title {
        font-size: 35px;
    }

    .contact-box {
        width: 100%;
        max-width: 300px;
    }
}
