/* ============ IMPORT & GLOBAL RESET ============ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}


body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

section h2 {
    font-size: 4rem;
    margin: 5rem 0 2rem;
    color: #b74b4b;
    text-align: center;
}

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: black;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
/* Header default (transparent) */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.initial{
    color: white;
}

.logo:hover {
    transform: scale(1.1);
}

/* NAVIGATION */
nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}



nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}



/* Navbar spacing */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

/* After scroll */
header.scrolled {
  background: rgba(0, 0, 0, 0.659); /* dark blue / choose your color */
  box-shadow: 0 4px 10px #b74b4b;
}



/* ============ HOME SECTION ============ */
#home {
    min-height: 100vh;
    display: flex;
    justify-content: center;   /* CENTER horizontally */
    align-items: center;       /* CENTER vertically */
    background-color: black;
    padding: 0 10%;
}



.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
}

span {
    color: #b74b4b;
}
.home-content {
    max-width: 800px;
    text-align: center;        /* CENTER text like reference */
    margin-top: 7%;
}


.social-icons {
    display: flex;
    justify-content: center;
}

.home-content .btn {
    display: inline-block;
}


.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover {
    background-color: #b74b4b;
    color: black;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px #b74b4b;
}

.btn {
    padding: 1rem 2.8rem;
    background: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    font-weight: 600;
    letter-spacing: 0.3rem;
    border: 2px solid #b74b4b;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}
/* ============ RESPONSIVE HOME ============ */

/* Tablets & below */
@media (max-width: 1024px) {
    #home {
        gap: 4rem;
        padding: 6rem 8%;
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

    .home-content h3 {
        font-size: 3rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    #home {
        flex-direction: column;
        text-align: center;
        padding: 5rem 6%;
    }

    .home-content h1 {
        font-size: 3.6rem;
        line-height: 1.2;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .typing-text {
        font-size: 2.4rem;
    }

    .home-content p {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }

    .social-icons a {
        margin: 2rem 0;
    }

    .home-buttons {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .btn {
        width: 80%;
        text-align: center;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .home-content h1 {
        font-size: 3rem;
    }

    .home-content h3 {
        font-size: 2.2rem;
    }

    .typing-text {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        font-size: 1.4rem;
    }
}


/* TYPING TEXT */
.typing-text {
    font-size: 3.4rem;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    position: relative;
    display: inline-block;  /* important for cursor positioning */
     letter-spacing: 0.15rem;
}

/* This is the changing text */
.typing-text span::before {
    content: "Full Stack Developer";
    color: #b74b4b;
    display: inline-block;
    animation: words 20s infinite, fadeSlide 4s infinite;
}





/* This is just the blinking cursor */
.typing-text span::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #b74b4b;
    animation: cursor 4s steps(1) infinite;
}


.typing-text {
    overflow: hidden;
}

/* ============ ABOUT SECTION ============ */
.about-section {
    padding: 8rem 10%;
    background: black;
}

.section-title {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.6rem;
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    max-width: 900px;
}

/* STRENGTHS CARD */
.strengths-box {
    margin-top: 4rem;
    padding: 3rem;
    background: #161616;
    border-radius: 1.5rem;
    border: 1px solid #b74b4b;
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.2);
}

.strengths-box h3 {
    font-size: 2.6rem;
    color: white;
    margin-bottom: 2rem;
}

/* LIST */
.strengths-list {
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
}

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

.strengths-list li {
    font-size: 1.6rem;
    color: #eee;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 2.5rem;
}

/* CHECK ICON */
.strengths-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #b74b4b;
    font-size: 1.4rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .about-section {
        padding: 6rem 6%;
    }

    .section-title {
        font-size: 3.2rem;
        text-align: center;
    }

    .about-text {
        font-size: 1.5rem;
        text-align: center;
    }

    .strengths-list {
        flex-direction: column;
        gap: 2rem;
    }

    .strengths-box h3 {
        text-align: center;
    }
}

/* ===== SKILLS SECTION ===== */
#skills {
    padding-top: 7rem;
    padding-bottom: 6rem;
    text-align: center;
}

.section-title {
    font-size: 4rem;
    color: #b74b4b;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 5rem;
}

/* REUSED PROJECT LAYOUT */
.skills-container {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* SKILL CARD */
.skills-box {
    background: #161616;
    padding: 2.5rem;
    border: 1px solid #b74b4b;
    border-radius: 12px;
    width: 30rem;
    transition: 0.35s ease;
    text-align: center;
}

/* ICON ROW */
.skill-icons {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    font-size: 4.2rem;
    color: #dddddd;
    margin-bottom: 1.8rem;
}

.skill-icons i {
    transition: 0.3s ease;
}

.skill-icons i:hover {
    transform: scale(1.2);
    color: #ff6363;
}

/* TEXT */
.skills-box h3 {
    font-size: 2.2rem;
    color: #ff6363;
    margin-bottom: 1.2rem;
}

.skills-box p {
    font-size: 1.6rem;
    color: #ddd;
    line-height: 1.6;
}

/* HOVER EFFECT */
.skills-box:hover {
    transform: scale(1.06);
    box-shadow: 0 0 15px #b74b4b;
}

/* MOBILE */
@media (max-width: 768px) {
    #skills h2 {
        font-size: 3rem;
    }

    .skills-box {
        width: 90%;
    }
}

/* ===== PROJECTS SECTION ===== */
#projects {
    padding-top: 7rem;
    padding-bottom: 6rem;
    text-align: center;
}

.section-title {
    font-size: 4rem;
    color: #b74b4b;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 5rem;
}

/* PROJECT LAYOUT */
.projects-container {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* PROJECT CARD */
.project-box {
    background: #161616;
    padding: 3rem;          
    border: 1px solid #b74b4b;
    border-radius: 14px;
    width: 42rem;           
    min-height: 28rem;      
    transition: 0.35s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.git-link a{
     display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    transition: 0.3s ease;
    color: #b74b4b;
    margin-left: 75%;

}

.git-link a:hover {
    background-color: #b74b4b;
    color: black;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px #b74b4b;
}


/* TEXT */
.project-box h3 {
    font-size: 2.2rem;
    color:#b74b4b;
    margin-bottom: 1.2rem;
}

.project-box p {
    font-size: 1.6rem;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* HOVER EFFECT */
.project-box:hover {
    transform: scale(1.06);
    box-shadow: 0 0 15px #b74b4b;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    #projects h2 {
        font-size: 3rem;
    }

    .project-box {
        width: 95%;
        min-height: auto;
    }
}


/* ============ EXPERIENCE / INTERNSHIP SECTION ============ */
.experience-section {
    padding: 8rem 10%;
    background: black;
}

.section-title {
    font-size: 4rem;
    color: #b74b4b;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 5rem;
}

/* TIMELINE */
.timeline {
    max-width: 900px;
    margin: auto;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    background: #161616;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid #b74b4b;
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.2);
    margin-bottom: 3rem;

}

/* ICON */
.timeline-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: #b74b4b;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

/* CONTENT */
.timeline-content h3 {
    font-size: 2.4rem;
    color: white;
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    display: block;
    font-size: 1.5rem;
    color: #b74b4b;
    margin-bottom: 0.3rem;
}

.timeline-content .duration {
    display: block;
    font-size: 1.4rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.timeline-content p {
    font-size: 1.6rem;
    color: #ddd;
    line-height: 1.7;
}

/* HOVER EFFECT */
.timeline-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px #b74b4b;
    transition: 0.3s ease;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .experience-section {
        padding: 6rem 6%;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-icon {
        margin: auto;
    }

    .timeline-content h3 {
        font-size: 2.2rem;
    }

    .timeline-content p {
        font-size: 1.5rem;
    }
}



/* ============ EDUCATION SECTION ============ */
.education-section {
    padding: 8rem 10%;
    background: black;
}

.section-title {
    font-size: 4rem;
    color: #b74b4b;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 5rem;
}

/* TIMELINE */
.edu-timeline {
    max-width: 900px;
    margin: auto;
}

/* ITEM */
.edu-item {
    display: flex;
    gap: 2.5rem;
    background: #161616;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid #b74b4b;
    margin-bottom: 3rem;
    transition: 0.3s ease;
}

/* ICON */
.edu-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: #b74b4b;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

/* CONTENT */
.edu-content h3 {
    font-size: 2.4rem;
    color: white;
    margin-bottom: 0.5rem;
}

.edu-institute {
    display: block;
    font-size: 1.5rem;
    color: #b74b4b;
    margin-bottom: 0.3rem;
}

.edu-duration {
    display: block;
    font-size: 1.4rem;
    color: #aaa;
    margin-bottom: 1.2rem;
}

.edu-content p {
    font-size: 1.6rem;
    color: #ddd;
    line-height: 1.7;
}

/* HOVER */
.edu-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px #b74b4b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .education-section {
        padding: 6rem 6%;
    }

    .edu-item {
        flex-direction: column;
        text-align: center;
    }

    .edu-icon {
        margin: auto;
    }

    .edu-content h3 {
        font-size: 2.1rem;
    }

    .edu-content p {
        font-size: 1.5rem;
    }
}




/* ===== CONTACT SECTION ===== */
#contact {
    padding: 10rem 10%;
    text-align: center;
}

/* TITLE */
.contact-title {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.6rem;
    color: #aaa;
    margin-bottom: 5rem;
}

/* LAYOUT */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6rem;
}

/* ===== CONTACT FORM BOX ===== */
.contact-form-box {
    background: #161616;
    padding: 3rem;
    border-radius: 1.5rem;
    width: 460px;
    border: 1px solid #b74b4b;
    text-align: left;
}

.contact-form-box h3 {
    font-size: 2.4rem;
    color: white;
    margin-bottom: 0.5rem;
}

.contact-form-box p {
    font-size: 1.4rem;
    color: #aaa;
    margin-bottom: 1rem;
}

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

.contact-form-box input,
.contact-form-box textarea {
    padding: 1.2rem;
    font-size: 1.5rem;
    border-radius: 1rem;
    border: 1.5px solid #b74b4b;
    background: transparent;
    color: white;
}

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

/* BUTTON */
.btn {
    padding: 1.2rem;
    border-radius: 2rem;
    background: #b74b4b;
    color: black;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn:hover {
    background: #ff6b6b;
}

/* ===== CONTACT INFO BOX ===== */
.contact-info-box {
    background: #161616;
    padding: 3rem;
    border-radius: 1.5rem;
    width: 360px;
    border: 1px solid #333;
    text-align: left;
}

.contact-info-box h3 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-info-box p {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* SOCIAL ICONS */
.contact-info-box .social-icons {
    margin-top: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin-right: 1.5rem;
    color: #b74b4b;
    transition: 0.3s ease;
}

.social-icons a:hover {
    background: #b74b4b;
    color: black;
    box-shadow: 0 0 15px #b74b4b;
}

/* FORM STATUS */
.form-status {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
}

.form-status.success {
    color: #4caf50;
}

.form-status.error {
    color: #ff4d4d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .contact-form-box,
    .contact-info-box {
        width: 90%;
    }
}



/* ============ ANIMATIONS ============ */
/* Blinking cursor */
/* Improved blinking cursor */
@keyframes cursor {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    65% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}



@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    15% {
        opacity: 1;
        transform: translateX(0);
    }
    70% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Rotating job titles */
@keyframes words {
    0%, 20%   { content: "Full Stack Developer"; }
    20.01%, 40%  { content: "Frontend Developer"; }
    40.01%, 60%  { content: "Backend Developer"; }
    60.01%, 80%  { content: "UI/UX Designer"; }
    80.01%, 100% { content: "Software Engineer"; }
}




/* ============ MEDIA QUERIES ============ */
@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media (max-width: 995px) {

    nav {
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem;
        background-color: #161616;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }

    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

/* ======= RESPONSIVE NAVIGATION MENU (RIGHT SLIDE) ======= */
#menu-icon {
  font-size: 3.2rem;
  color: #b74b4b;
  cursor: pointer;
  display: none;
}

@media(max-width:995px) {
  #menu-icon {
    display: block;
    z-index: 200;
  }

  header nav {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    height: 100vh;
    background: #161616;
    border-left: 3px solid #b74b4b;
    padding: 8rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    transition: 0.45s ease-in-out;
    z-index: 199;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 2rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: .6rem;
  }

  nav a:hover,
  nav a.active {
    background: #b74b4b;
    color: black;
    box-shadow: 0 0 15px #b74b4b;
  }

  header {
    padding: 1rem 7%;
  }
}
.no-scroll {
  overflow: hidden;
}

/* ============ FOOTER ============ */
.footer {
    background: #000;
    border-top: 1px solid #b74b4b;
    padding: 2.5rem 0;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    font-size: 1.4rem;
    color: #ccc;
}

.footer p span {
    color: #b74b4b;
    font-weight: 600;
}

.footer-links a {
    font-size: 1.4rem;
    color: #b74b4b;
    margin-left: 2rem;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .footer-links a {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

