
@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Winky+Rough:ital,wght@0,300..900;1,300..900&display=swap');

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

:root{
    --bg-color:#191f36;
    --snd-bg-color:#162048;
    --text-color:#fff;
    --main-color:#856af1;

}

html{
    font-size:62.5%;
    overflow: auto;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
  }
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}
.header{
    position:sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items:center ;
    z-index: 100;
}
.name-highlight {
    font-weight: 900;
    font-size: 3.6rem;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: fadeIn 1s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.navbar a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 700;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}
span{
    color: var(--main-color);
}
h3 span {
    background: linear-gradient(90deg, #59B2f4, #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-img img{
    border-radius: 50%;
    width: 25vw;
    animation:floatImage 4s ease-in-out infinite;
}
@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform:translate(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}
.home-content p{
    font-size: 1.6rem;
}
.social-media a{
    display:inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent ;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease  ;
}

.social-media a:hover{
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--main-color);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .btn:hover {
    background: white;
    color: var(--main-color);
  }
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--snd-bg-color);
}
.about-img {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .about-img img {
    width: 35vw;
    border-radius: 15px;
  }
  
.heading{
    text-align: center;
    font-size: 4.5rem;
}
.about-content h2{
    text-align: left;
    line-height: 1.2;
}
.about-content h3{
    font-size: 2.6rem;
}
.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}
.services {
    background: var(--bg-color);
    padding: 10rem 9% 5rem;
  }
  
  .services h2.heading {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 5rem;
  }
  
  .services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
  }
  
  .service-box {
    background: var(--snd-bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  .service-box i {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 2rem;
  }
  
  .service-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
  }
  
  .service-box p {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    line-height: 1.6;
  }
  
  .service-box .btm {
    font-size: 1.4rem;
    padding: 1rem 2rem;
    background: var(--main-color);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-block;
  }
  
  .service-box .btm:hover {
    background: white;
    color: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
  }
  
  .service-box:hover {
    transform: translateY(-10px);
    border: 1px solid var(--main-color);
  }
 /* PORTFOLIO SECTION */
.portfolio {
  background: var(--snd-bg-color);
  padding: 10rem 9% 5rem;
}

.portfolio h2.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 5rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.portfolio-box {
  position: relative;
  background: rgb(51, 40, 116);
  padding: 3rem 2rem;
  border-radius: 2rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.portfolio-box img {
  width: 100%;
  border-radius: 2rem;
  object-fit: cover;
  height: 250px;  /* Adjust as per your image size */
  margin-bottom: 2rem;
}

/* Portfolio Layer Styling */
.portfolio-layer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1.5rem;
  color: white;
  border-radius: 2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(-10px);
}

.portfolio-box h4 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.portfolio-box p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.live-demo {
  background: linear-gradient(90deg, #59B2f4, #00ffaa);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.live-demo:hover {
  background: #00ffaa;
  transform: scale(1.05);
}

/* Box hover effect */
.portfolio-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .portfolio-container {
      grid-template-columns: 1fr;
  }
  .portfolio-box {
      padding: 2rem;
  }
}

  .contact {
    background: var(--bg-color);
    padding: 10rem 9% 5rem;
    text-align: center;
  }
  
  .contact .heading {
    font-size: 4rem;
    margin-bottom: 4rem;
    color: var(--text-color);
  }
  
  .contact .heading span {
    background: linear-gradient(90deg, #59B2f4, #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .contact form {
    max-width: 700px;
    margin: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
  }
  
  .input-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .input-box input,
  form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: var(--text-color);
    transition: 0.3s;
  }
  
  .input-box input:focus,
  form textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
  }
  
  .input-box input::placeholder,
  form textarea::placeholder {
    color: #bbb;
  }
  
  .input-box input {
    flex: 1 1 45%;
  }
  
  form textarea {
    resize: none;
    margin-bottom: 2rem;
  }
  
  form .btn {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    background: var(--main-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
    border: none;
  }
  
  form .btn:hover {
    background: white;
    color: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
  }
  /* ===== FOOTER STYLING ===== */
.footer {
    background: #111;
    color: #fff;
    padding: 2rem 9%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
}

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

.footer-iconTop a {
    display: inline-block;
    background: #00abf0;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.footer-iconTop a:hover {
    background: #008ecc;
    transform: translateY(-5px);
}
/* === Default Dark Mode === */
body {
    background-color: #1c1c1c;
    color: white;
    transition: background-color 0.4s, color 0.4s;
}

section {
    background-color: transparent;
    transition: background-color 0.4s, color 0.4s;
}

/* === White Mode === */
body.white-mode {
    background-color: #f9f9f9;
    color: #1a1a1a;
}

body.white-mode section,
body.white-mode footer {
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* 🚫 Keep header dark always */
header {
    background-color: #1c1c1c;
    color: white;
    transition: background-color 0.4s, color 0.4s;
}

body.white-mode header {
    background-color: #1c1c1c; /* stays dark */
    color: white;
}

/* === Toggle Button === */
.toggle-btn {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background-color: #ffffff20;
    border: none;
    font-size: 1.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    z-index: 999;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s, color 0.3s;
}

body.white-mode .toggle-btn {
    background-color: #e0e0e0;
    color: #1a1a1a;
}
header nav a.active {
  color: #00bcd4; /* or any color you like */
  font-weight: bold;
  border-bottom: 2px solid #00bcd4;
}
/* Sticky navbar style */
.header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #333; /* Optional: Change background color when sticky */
  z-index: 999;
}
@media (max-width: 768px) {
  #menu-icon {
    display: block;
    cursor: pointer;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 25%;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 998;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    font-size: 2rem;
    margin: 1rem 0;
  }
}

.skills {
  background: var(--snd-bg-color);
  padding: 10rem 9% 5rem;
}

.skills h2.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 5rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.skill-box {
  background: var(--bg-color);
  padding: 3rem 2rem;
  border-radius: 2rem;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.skill-box i {
  font-size: 5rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
}

.skill-box h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.skill-box p {
  font-size: 1.5rem;
  color: #ccc;
  line-height: 1.6;
}

.skill-box:hover {
  transform: translateY(-10px);
  border: 1px solid var(--main-color);
}
