

/* General Styles */
* {
   
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}

body {
    background-color: #081b29 ;
    color: #333;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
      scroll-behavior: smooth;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background:#051129;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: bold;
}

.menu-btn {
    font-size: 1.8rem;
    color: white;
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.navbar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
    transition: 0.3s;
}

.navbar a:hover, .navbar a.active {
    background: #0ef;
    border-radius: 5px;
}
/* 🌞 Light Mode Overrides */
body.light-theme {
  background-color: #f8f8f8;
  color: #111;
}

body.light-theme .header {
  background: #ffffff;
}

body.light-theme .logo,
body.light-theme .navbar a {
  color: #111;
}

body.light-theme .navbar a:hover,
body.light-theme .navbar a.active {
  background: #0ef;
  color: #000;
}

body.light-theme .home,
body.light-theme .about,
body.light-theme #portfolio,
body.light-theme #experience,
body.light-theme .contact,
body.light-theme .last-text {
  background: #ffffff;
  color: #111;
}

body.light-theme .about-text h2,
body.light-theme .main-text h2,
body.light-theme .experience-heading,
body.light-theme .contact-text h2 {
  color: #111;
}

body.light-theme .layer {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

body.light-theme .btn,
body.light-theme .btn-box,
body.light-theme .download-btn {
  background: #0ef;
  color: #000;
}

body.light-theme .contact-list li,
body.light-theme .contact-text p,
body.light-theme .percentage,
body.light-theme .text {
  color: #000;
}
/* Fix text color in light theme */
body.light-theme,
body.light-theme p,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme .info,
body.light-theme .text,
body.light-theme .contact-list li,
body.light-theme .navbar a {
    color: #111 !important;
}

body.light-theme .about-text p,
body.light-theme .home-content p,
body.light-theme .experience-content ul li,
body.light-theme .experience-content p {
    color: #333 !important;
}
/* Light theme override for Internship Experience section */
body.light-theme #experience {
  background-color: #f8f8f8;
}

body.light-theme #experience,
body.light-theme .experience-heading,
body.light-theme .experience-content h3,
body.light-theme .experience-content p,
body.light-theme .experience-content ul li {
  color: #111 !important;
}

body.light-theme .experience-card {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Light theme fixes for mobile navbar */
body.light-theme .navbar {
  background: #ffffff;
}

body.light-theme .navbar a {
  color: #111 !important;
}

body.light-theme .navbar a:hover,
body.light-theme .navbar a.active {
  background: #0ef;
  color: #000 !important;
}
/* Toggle menu icon color */
body.light-theme .menu-btn {
  color: #111;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #222;
        width: 200px;
        border-radius: 5px;
        text-align: left;
        padding: 10px 0;
    }
    .navbar.open{
        display: flex;
    }

    .navbar a {
        display: block;
        padding: 10px;
        text-align: center;
        text-decoration: none;
    }
}



/* General Styles  home section */


.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px 10% 20px;
    background:url(images/image.png);
   min-height: 100vh;
}

/* ✅ Fix for Headings */
.home-content h3 {
    font-size: 1.8rem;
    color: #0ef;
    font-weight: 600;
    margin-bottom: 10px;
}

.home-content h1 {
    font-size: 3rem;
    font-weight: bold;
    color:#fff;
    margin-bottom: 10px;
}

/* ✅ Fix for Paragraph */
.home-content p {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.6;
    margin-top: 10px;
    max-width: 500px;
}

/* ✅ Fix for Social Icons */
.home-sci {
    margin-top: 20px;
}

.home-sci a {
    font-size: 1.8rem;
    color: #0ef;
    margin-right: 15px;
    transition: transform 0.3s ease-in-out;
}

.home-sci a:hover {
    transform: scale(1.2);
}

/* ✅ Fix for Image */
.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img img {
    width: 90%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
   
}

/* ✅ Fix for Button */
.btn-box {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background: #ff5733;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
}

.btn-box:hover {
    background: #d84315;
}

/* ✅ Responsive Design Fixes */
@media (max-width: 1024px) {
    .home {
        flex-direction: column;
        text-align: center;
        padding: 50px 5%;
    }

    .home-content {
        max-width: 90%;
    }

    .hero-img img {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;  /* ✅ Fix stacking issue */
        text-align: center;
        padding: 120px 5% 40px; 
    }
    .home-content h1 {
        font-size: 2.5rem;
    }

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

    .hero-img img {
        max-width: 300px;
    }

    .btn-box {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .home-sci a {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-content h3 {
        font-size: 1.5rem;
    }

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

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

    .hero-img img {
        max-width: 250px;
    }

    .btn-box {
        font-size: 0.8rem;
        padding: 7px 14px;
    }
}
/* about section*/

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 50px 10%;
    background-color:#051129;
}

.about-img img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.about-text h2 {
    font-size: 2.5rem;
    color: #ededed;
}

.about-text h2 span {
    color: #0ef;
}

.about-text h4 {
    font-size: 1.5rem;
    color: #0ef;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-box {
    display: inline-block;
    padding: 10px 20px;
    background: #0ef;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-box:hover {
    background: #69bcbc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        width: 80%;
    }
}




/* General Styles skils section */
.sub-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.sub-title span {
    color: #0ef;
}

/* Skills Section */
.container1 {
    width: 80%;
    margin: auto;
    padding: 20px;
   
}

.heading1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

/* Technical Skills (Progress Bars) */
.Technical-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bar i {
    font-size: 2rem;
}

.info {
    flex: 1;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.progress-line {
    width: 100%;
    height: 8px;
    background: #ddd;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.progress-line span {
    position: absolute;
    height: 100%;
    width: 0;
    background: #ff5733;
    transition: width 1s ease-in-out;
}

/* Set Progress Levels */
.html span {
    width: 90%;
    background: #c95d2e;
}

.css span {
    width: 85%;
    background: #00FFFF;
}

.javaScript span {
    width: 75%;
    background: #b0bc1e;
}

.react span {
    width: 70%;
    background: #69bcbc;
}

.github span {
    width: 80%;
    background: black;
}

/* Professional Skills (Radial Bars) */
.radial-bars {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.radial-bar {
    position: relative;
    width: 150px;
    height: 150px;
    text-align: center;
}

svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bar {
    fill: none;
    stroke: #ddd;
    stroke-width: 10;
    stroke-dasharray: 502;
    stroke-dashoffset: 0;
}

.path {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 1s ease-in-out;
}

/* Set Circular Progress */
.path-1 {
    stroke: #ff5733;
    stroke-dashoffset: 251; /* 50% */
}

.path-2 {
    stroke: #00FFFF;
    stroke-dashoffset: 175; /* 65% */
}

.path-3 {
    stroke: #b0bc1e;
    stroke-dashoffset: 200; /* 60% */
}

.path-4 {
    stroke: #69bcbc;
    stroke-dashoffset: 175; /* 65% */
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.text {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container1{
        width: 90%;
    }
    .Technical-bars {
        flex-direction: column;
    }

    .radial-bars {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .text {
        font-size: 0.9rem; /* Reduce font size to prevent overlap */
    }
    
}





/* General Styles project section */
#portfolio {
    width: 100%;
    /*height: 500px;*/
    padding: 80px 0;
    text-align: center;
    background: #081b29;
    /*padding-top: 30px;*/
    padding: 30px 0 80px;
}

.main-text h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 40px;
}

.main-text h2 span {
    color: #0ef;
}

/* Portfolio Content */
.portfolio-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

/* Project Card */
.row {
    position: relative;
     width: 100%;
    max-width: 700px; /* adjust as needed */
      aspect-ratio: 16 / 9; /* add this line for consistency */
    height: 300px; /* Increased height */
    border-radius: 15px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover Effect */
.row:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Overlay Layer */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 20px;

}

.row:hover .layer {
    opacity: 1;
}

/* Project Title */
.layer h5 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Project Description */
.layer p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background: #0ef;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #555557;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-content {
        flex-direction: column;
        align-items: center;
    }

    .row {
        width: 80%;
        height: auto;
    }
}

/*@media (max-width: 768px) {
    .main-text h2 {
        font-size: 2.5rem;
    }

    .row {
        width: 95%;
        height: auto;
    }
      .layer {
        opacity: 1;
        background: rgba(0, 0, 0, 0.85);
        padding: 15px;
    }
    .layer h5{
        font-size: 1.2rem;
    }
    .layer p{
        font-size: 0.9rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}*/
@media (max-width: 480px) {
  .row {
    width: 90%;
    height: auto;
    flex-direction: column;
    margin: 0 auto;
  }

  .layer {
    padding: 10px;
     display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
     height: 100%;  /* ✅ ensure it stretches fully */
    overflow-y: auto;  /* ✅ allow scroll if content overflows */
    height: 100%;
    
  }

  .layer h5 {
    font-size: 1rem;
     margin-bottom: 8px;
  }

  .layer p {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 4px 0;
    display: inline-block;
    width: 100%;
    text-align: center;
      max-width: 200px;
  }
}
/* Expercience section*/

#experience {
  background: #081b29;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.experience-heading {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fff;
}

.experience-card {
  max-width: 700px;
  margin: 0 auto;
  background-color: #0f2a3b;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

.experience-card:hover {
  transform: scale(1.03);
}

.experience-icon {
  font-size: 2.5rem;
  color: #0ef;
  margin-bottom: 20px;
}

.experience-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.experience-content p {
  margin: 5px 0;
  font-size: 1rem;
  color: #ccc;
}

.experience-content ul {
  text-align: left;
  margin: 15px 0;
  padding-left: 20px;
}

.experience-content ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #ddd;
}

.experience-content a {
  color: #0ef;
  text-decoration: underline;
}

.skills {
  margin-top: 15px;
}

.skills span {
  display: inline-block;
  background: #0ef;
  color: #000;
  padding: 6px 12px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #0ef;
  /*color:#000;*/
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.download-btn i{
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .experience-heading {
    font-size: 2rem;
  }

  .experience-card {
    padding: 20px;
  }

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




/*contact-form*/
.contact {
    padding: 50px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #081b29;
    flex-wrap: wrap;
}

.contact-text {
    max-width: 450px;
    flex: 1;
}

.contact-text h2 {
    font-size: 2.5rem;
    color:#fff;
}

.contact-text h2 span {
    color: #0ef;
}
.contact-text p{
    color: #fff;
}

.contact-text h4 {
    font-size: 1.5rem;
    color: #0ef;
    margin-bottom: 10px;
}

.contact-list li {
    list-style: none;
    font-size: 1rem;
    color:#fff;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.contact-list li i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #0ef;
}

.contact-icon a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.8rem;
    color: #0ef;
    transition: 0.3s;
}

.contact-icon a:hover {
    color: #0ef;
}
.contact-form {
  flex: 1.2; /* ✅ slightly wider than .contact-text */
  max-width: 600px;
}


.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form textarea {
    resize: vertical;
    height: 200px;
}

.contact-form .send {
    background: #0ef;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    padding: 15px;
    border: none;
    border-radius: 5px;
}

.contact-form .send:hover {
    background: #69bcbc;
}

.last-text {
    text-align: center;
    padding: 20px;
    background: #051129;
    color: white;
    font-size: 1rem;
}

.top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: #0ef;
    cursor: pointer;
}

.top:hover {
    color: #e65c00;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .contact-text, .contact-form {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .contact {
        flex-direction: column;
        text-align: center;
        padding: 30px 5%;
    }

    .contact-text, .contact-form {
        max-width: 100%;
    }
}








