@import url("https://fonts.googlepis.com/css2?family=poppins:wght@300;400;500;600;700;800;900&display=swap");
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'poppins', sans-serif;
}
:root{
    --bg-color:black;
    --second-bg-color:#323946;
    --text-color:#fff;
    --main-color:#0ef;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color:var(--text-color);
}
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;

}
.header{
    position: fixed;
    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;
}
.header.sticky{
    border-bottom: .1rem solid rgba(0,0,0, .2);
}
.logo{
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    cursor: default;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.logo:hover{
    color: cyan;
    text-shadow: cyan;
}
.navbar a{
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-left: 2rem;
    transition: .3s;
    gap: 3rem;
}
.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;
    background-color: #1f242d;
    justify-content: center;
    align-items: center;
}
.home-img img{
   width: 25vw;
   border-radius: 25%;
   animation: floatImage 4s ease-in-out infinite; 
}
.home-img img:hover{
    box-shadow: 0 0 10px 5px cyan;
   /*box-shadow: 0 0 10px 5px rgba(255, 100, 100, 0.7);*/
}
@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}
.home-content h3{
    font-size: 3.2rem;
    font-family: 700;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}
span{
    color: var(--main-color);
}
.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.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-color: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);

}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}
.btn:hover{
    box-shadow: none;
}
.about {
  background: var(--second-bg-color);
  padding: 5rem 0;
}

.heading {
  text-align: center;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 2rem;
}

.heading span {
  color: #00eaff;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-img img {
  width: 350px;            /* bigger circle */
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: cyan;
  transition: border-color 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.about-img img:hover {
  animation: border-animation 1s infinite alternate;
}

.about-text {
  max-width: 650px;
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
}

.about-text h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

@keyframes border-animation {
  from {
    border-color: cyan;
  }
  to {
    border-color: cyan;
    box-shadow: 0 0 15px cyan;
  }
}
/* Education section css */
/* Education Heading */
.education-section{
    background-color: #1f242d;
}
/* Card container */
.edu-card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

/* Single card */
.edu-card {
    width: 330px;
    background: #0d1b2a;
    border: 2px solid cyan;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px cyan;
    transition: transform 0.3s ease;
}

.edu-card:hover {
    transform: scale(1.05);
}

/* Image */
.edu-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid cyan;
}

/* Content */
.edu-content {
    padding: 15px;
    color: white;
}

.edu-content h3 {
    margin-bottom: 10px;
    color: cyan;
}

/* Marksheet button */
.marksheet-btn {
    display: block;
    background: cyan;
    color: black;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    margin-top: 10px;
    transition: 0.3s;
}

.marksheet-btn:hover {
    background: #00f7ff;
}


.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;
}
/* My Skill Section CSS */
.skills {
    background-color: #323946;
}
.skills h2{
    margin-bottom: 5rem;
}
.skills-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}
.skills-container .skills-box{
    flex: 1 1 30rem;
    background: #1f242d;
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
    flex-wrap: wrap;
    box-shadow: 0 0 15px cyan;
}
.skills-container .skills-box:hover{
    border-color: var(--main-color);
    transform: scale(1.02);
}
.skills-box i{
    font-size: 7rem;
    color: var(--main-color);
}
.skills-box h3{
    font-size: 2rem;
}
.skills-box p{
   font-size: 1.6rem;
   margin: 1rem 0 3rem; 
}
/* Project Section CSS */
/* slider wrapper */
.project-slider-section {
  padding: 60px 0;
  color: #fff;
  text-align: center;
  background-color: #1f242d;
}
.project-title { font-size: 2.4rem; margin-bottom: 26px; }

/* viewport holds the visible 3 cards */
.slider-container { position: relative; width: 92%; margin: 0 auto; }
.slider-viewport { overflow: hidden; }

/* track is the flex row */
.slider-track {
  display: flex;
  gap: 20px;               /* gap used by JS */
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  padding-bottom: 6px;
}

/* card sizing - exactly 3 visible cards */
.project-card {
  min-width: calc((98% - 20px) / 3); /* 3 cards per view, -gap total (2 gaps of 20) */
  background: #111;
  width: 30%;
  border-radius: 10px;
  padding: 10px;
  /* box-shadow: 0 6px 18px rgba(0,255,255,0.06); */
  text-align: left;
  /* color: #fff; */
  flex-shrink: 0;
  box-shadow: 0 0 15px cyan;
  flex-wrap: wrap;
}

/* card contents */
.project-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; }
.project-card h1 { color: #00ffee; margin: 12px 0 6px; font-size: 2rem; }
.project-card p {  width: 100%;color: #cfcfcf; font-size: 1.5rem; margin-bottom: 12px; }
.see-btn {
  display:inline-block; padding:8px 14px; border-radius:8px; background:#00ffee; color:#000; font-weight:700; text-decoration:none;
}

/* arrows: vertically centered at exact middle */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width:48px; height:48px;
  border-radius:50%;
  border:none;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all .22s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  z-index: 10;
  opacity: 0.9;
}

/* hover shows "hours" like tooltip look — simple scale & glow */
.arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: #ff9800;
  color: #000;
  box-shadow: 0 6px 22px rgba(255,152,0,0.35);
}

/* place arrows exactly at left & right middle (inside viewport bounds) */
.left-arrow { left: 6px; }
.right-arrow { right: 6px; }

/* small screens: make 1 card visible, arrows stay */
@media (max-width: 900px) {
  .project-card { min-width: calc(100% - 0px); } /* single card view */
}

/* Contact Section CSS */
/* Contact Section CSS */
.contact {
    text-align: center;
    background-color: #323946;
}

.contact .table {
    border-collapse: collapse;   /* clean lines */
    width: 70%;                  /* keep table center */
    margin: 20px auto;           /* center table */
    background: oklab(90.54100000000001% -0.14945 -0.0395);         /* your required color */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 15px #00eaff;
}

.contact .table th,
.contact .table td {
    border: 2px solid #003d4d;  /* visible lines */
    padding: 10px;
    font-size: 1.6rem;
    color: #000;
}

.contact .table th {
    background: rgba(0, 0, 0, 0.2);
    font-size: 2rem;
}

.contact .table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);  /* light alternate row */
}

.contact .heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 20px;
}
/* Social Icons Box */
.social-box {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-box a {
    font-size: 3rem;
    color: #00eaff;
    background: #003d4d;
    padding: 12px 16px;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 0 10px #00eaff;
}

.social-box a:hover {
    transform: scale(1.2);
    background: #00eaff;
    color: #003d4d;
    box-shadow: 0 0 15px #00eaff;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #003d4d;
    text-decoration: none;
    border-radius: 30px;
    background: #00eaff;
    box-shadow: 0 8px 20px var(--second-bg-color);
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: cyne;
    transform: scale(1.0);
    background: #00eaff;
    color: #003d4d;
    box-shadow: 0 0 15px #00eaff;
}

.btn:active {
    transform: scale(0.95);
}

.footer-text p{
    font-size: 1.6rem;
}
.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i{
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* BREAKPOINTS*/
@media(max-width: 1200px){
    html{
        font-size: 55%;
    }
}

@media(max-width: 991px){
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .skills{
        padding-bottom: 7rem;
    }
    .portfolio{
        padding-bottom: 7rem;
    }
    .contact{
        min-height: auto;
    }
    .footer{
        padding:2rem 3%;
    }
}
@media (max-width: 768px) {
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2); 
        display: none;  
     }
.navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home{
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .about{
        flex-direction: column-reverse;
    }
    .about-img{
        width: 70vw;
        margin-top: 4rem;
    }
    .skills h2{
        margin-bottom: 3rem;
    }
    .portfolio h2{
        margin-bottom: 3rem;
    }
    .portfolio-container{
        grid-template-columns: repeat(2,1fr);
    }

}
@media(max-width: 617px){
    .portfolio-container{
        grid-template-columns: 1fr;
    }
}
@media(max-width: 450px){
    html{
        font-size: 50%;
    }
    .contact form .input-box input {
        width: 100%;
    }
}
@media(max-width: 365px){
    .home-img img{
        width: 90vw;
        flex-wrap: wrap;
    }
    .about-img img{
        width: 90vw;
    }
    .footer{
        flex-direction: column-reverse;
    }
    .footer p{
        text-align: center;
        margin-top: 2rem;
    }
}
/* About image mobile view code */
@media (max-width: 768px) {
  .about-img {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-img img {
    max-width: 80%;   /* adjusts size on mobile */
    height: auto;
    margin: 0 auto;   /* ensures perfect center */
    display: block;
  }
}
/* About text mobile view css */
@media (max-width: 768px) {
  .about-text {
    padding: 0 18px !important;     /* add space on both sides */
    text-align: justify;            /* neat alignment */
  }
}