@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    text-decoration: none;
}
:root {
    --bg-color: #121212;        /* Soft black */
    --second-bg-color: #2c3e50; /* Slate blue */
    --text-color: #ececec;      /* Soft off-white */
    --main-color: #ff4b5c;      /* Slightly muted red for modern feel */
      --coding-color: #ff4b5c;
  --soft-color: #2c3e50;
  --node-size: 70px;
}



html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}
/* header section css */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
}

.header.sticky{
    background: var(--second-bg-color);
    padding: 1rem 9%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

/* Animated Logo */
#animated-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  cursor: pointer;
  text-align: center;

  background: linear-gradient(270deg, #ff4b5c, #2c3e50, #ff4b5c);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientSlide 5s ease infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#animated-logo.hovered {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px #ff4b5c);
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 3.5rem;
    font-weight: 500;
    transition: 0.3s;
}

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

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

/* -------------------------------------------------------
   RESPONSIVE BREAKPOINTS
------------------------------------------------------- */

#menu-icon.bx-x {
    transform: rotate(180deg);
    transition: 0.3s;
}
/* section css */
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem ;
}

/* home scetion css */
.home {
    display: flex;
    align-items: center; /* centers content vertically */
    justify-content: space-between; /* pushes content to left, image to right */
       height: 100vh;
    background: none; /* remove background image if using an <img> element instead */
    border-radius: 50px;
    position: relative;
}

.home::before {
    content: "";
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%); /* vertical center */
    width: 400px; /* image width */
    height: 400px; /* image height */
    background-size: cover;
    border-radius: 50px;
}


.home-content{
    max-width: 50rem;
}
.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-content .text-animate{
    position: relative;
    width: 32.8rem;
}
.text-animate {
  display: flex;
  flex-wrap: wrap;
  perspective: 1500px;
  position: relative;
}

.letter-container {
  position: relative; /* relative to home-content */
  width: 100%;        /* fit inside home-content */
  height: 120px;      /* adjust height as needed for letters */
  display: flex;
  justify-content: flex-start; /* align letters to left */
  align-items: center;         /* vertically center letters */
  overflow: visible;           /* allow flying letters to go outside */
  cursor: pointer;
}

.sentence {
  display: flex;
  flex-wrap: nowrap;
  position: relative; /* for absolute letters inside */
}

.sentence span {
  font-size: 4rem; /* smaller to fit home-content */
  font-weight: 900;
  color: var(--main-color);
  position: relative;
  transition: top 2s cubic-bezier(0.65,-0.25,0.35,1.25),
              left 2s cubic-bezier(0.65,-0.25,0.35,1.25),
              transform 2s cubic-bezier(0.65,-0.25,0.35,1.25);
              
}

.home-content p{
    font-size: 1.6rem;
    margin: 2rem 0 4rem ;
    line-height: 1.6;
}
.btn-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}
/* BUTTON BASE */
.btn-box .btn {
    position: relative;
    display: inline-block;
    width: 16rem;
    background: var(--main-color);
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 5rem;
    text-align: center;
    line-height: 5rem;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
}

/* SLIDING OVERLAY */
.btn-box .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;     /* start fully off-screen */
    width: 100%;
    height: 100%;
    background: var(--main-color);
    border-radius: 5rem;
    z-index: -1;     /* stay under text */
    transition: left 0.4s ease;
}

/* HOVER ANIMATION */
.btn-box .btn:hover::before {
    left: 0;         /* slide fully in */
}

/* OPTIONAL: keep text readable on hover */
.btn-box .btn:hover {
    color: var(--text-color);
}

/* WHEN OPEN, NO PSEUDO-ELEMENT TEXT! */
.btn-box .btn.open::before {
    background: var(--main-color);
}


.home-sci{
    position: absolute;
    bottom: 4rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}
.home-sci a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
}
.home-sci a:hover{
    background: var(--main-color);
    color: var(--text-color);
}
.home-img-Hover {
    position: absolute;
    top: 35%;
    right: 15%;
    width: 22%;
    height: 50%;
    transform: translateY(-50%);
    border-radius: 50px;
    overflow: visible;
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
}

/* Image itself */
.home-img-Hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover scale effect */
.home-img-Hover:hover img {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(255,75,92,0.5), 0 0 70px rgba(255,75,92,0.3);
}

/* Blurred gradient glow behind image */
.home-img-Hover::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--main-color), var(--second-bg-color));
    opacity: 0.3;
    filter: blur(40px);
    transition: all 0.6s ease;
    z-index: 1;
}

/* Hover effect for glow */
.home-img-Hover:hover::before {
    opacity: 0.7;
    transform: scale(1.1) rotate(1deg);
}

/* Neon spinning rings */
.circle-spin, .circle-spin-2 {
    position: absolute;
    top: 50%; left: 50%;
    width: 420px; height: 420px;
    border-radius: none;
    box-shadow: 0 0 20px rgba(255,75,92,0.4), 0 0 40px rgba(44,62,80,0.2);
    z-index: 2;
}

/* First ring */
.circle-spin {
    border: 3px solid transparent;
    border-top: 3px solid rgba(255,75,92,0.7);
    border-right: 3px solid rgba(44,62,80,0.7);
    animation: rotate-container 8s linear infinite;
}

/* Second ring with opposite rotation */
.circle-spin-2 {
    width: 380px; height: 380px;
    border: 3px solid transparent;
    border-bottom: 3px solid rgba(255,200,0,0.6);
    border-left: 3px solid rgba(0,255,255,0.6);
    animation: rotate-container-reverse 12s linear infinite;
}

/* Rotate animations */
@keyframes rotate-container {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-container-reverse {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Floating effect */
@keyframes float {
    0%,100% { transform: translateY(-50%); }
    50% { transform: translateY(-48%); }
}



/* about me css */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    /* Assumed variable for background color */
    background: var(--second-bg-color); 
    padding-bottom: 6rem;
}
.heading{
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}
/*  variable for accent color */
span{
    color: var(--main-color);
}
.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
}

/* Static profile image */
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
    display: block;
}

/* Container for spinning circle */
.circle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28rem;  /* slightly bigger than image */
    height: 28rem;
    transform: translate(-50%, -50%); /* center container */
    animation: rotate-container 5s linear infinite;
}

/* The circle itself */
.circle-spin {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-right: .2rem solid var(--main-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    box-sizing: border-box;
}

/* Rotate the container to spin the circle */
@keyframes rotate-container {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.about-content{
    text-align: center;
}
.about-content h3{
    font-size: 3.6rem;
    margin-bottom: 1rem;
}

/* Container for the text area to allow vertical flow */
.about-content .about-text {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    /* This max-height should cover the first paragraph */
    max-height: 20rem; 
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 3rem;
    line-height: 1.6;
    max-width: 800px;
}

/* --------------------------------------
    STYLES FOR TOGGLING READ MORE CONTENT
-------------------------------------- */

/* Initially hide the content: Use max-height: 0 for smooth transition */
.about-content .hidden-content {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, margin 0.5s ease-in-out;
}

/* State when the content is shown: Jumps to a large max-height */
.about-content .hidden-content.show {
    opacity: 1;
    /* Use a large max-height (e.g., 50rem) to ensure all content is visible */
    max-height: 50rem; 
    margin: 2rem 3rem; /* Restore original margins */
}





/* Use the ::before pseudo-element to change the button text when 'open' */
.btn-box .btn.open::before {
    content: "Show Less"; /* New text when content is open */
    color: white; /* Assumed text color */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    border-radius: .8rem;
    z-index: 10;
}

/* This targets the anchor tag inside btn-box (if you are using a nested structure) 
   and is responsible for the background hover/animation, not the text. */
.btn-box .btn a::before{
    background-color: var(--second-bg-color);
}
.education{
    display: flex;  
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
}
.education .education-row{
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}
.education-row .education-column{
    flex: 1 1 40rem;
}
.education-column .title{
   font-size: 2.5rem;
   margin: 0 0 1.5rem ;
}
.education-column .education-box{
    border-left: .2rem solid var(--main-color);
}
.education-box .education-content{
    position: relative;
    padding-left: 2rem;
}
.education-box .education-content::before{
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--text-color);
    border-radius: 50%;
}
.education-content .content{
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.education-content .content::before{
content: '';
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
background-color: var(--second-bg-color);
z-index: -1;
transition: .5s;
}
.education-content .content:hover::before{
    width: 100%;
    animation: edu-bg-slide 0.6s forwards;
}
.education-content .content .year{
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}
.education-content .content .year i {
    padding-right: .5rem;
}
.education-content .content .date{
    font-size: 2.5rem;
    color: var(--main-color);
}
.education-content .content h3{
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: .5rem;
}
.education-content .content span{
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: .5rem;
}
.education-content .content p{
    font-size: 1.6rem;
    line-height: 1.6;
padding-top: .5rem;
    color: var(--text-color);
}


/* SECTION CONTAINER */
.skills {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* TOP HEADING */
.skills .heading {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color);
  z-index: 10; /* Above everything */
      font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* FULLSCREEN BACKGROUND AREA */
.skills-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* CATEGORY LABELS */
#category-labels {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
  z-index: 9;
}

#category-labels div {
  font-size: 3rem;
  color: white;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#soft-label {
  margin-top: 15px;
  font-size: 2.4rem;
}
#dive-in {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: white;
  font-weight: bold;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 10;
}

/* SKILL NODES */
.skill-node {
  position: absolute;
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  z-index: 5; /* Above labels */
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.5s ease;
}

.skill-node:hover,
.skill-node.active {
  transform: scale(1.5);
  box-shadow: 0 0 30px #fff;
}

/* CANVASES */
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* behind nodes, labels, etc */
}

/* Projects Section */
.projects {
min-height: 100vh;
width: 100%;
background: var(--bg-color);
}

.projects .heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects .heading span {
    color: var(--main-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 4rem;
}

/* Individual Project Card */
.project-card {
    background: var(--bg-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 75, 92, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 75, 92, 0.3);
}

/* Project Image */
.project-image {
    width: 100%;
    height: 18rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Info */
.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Project links */
.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-links .btn {
    padding: 0.8rem 2rem;
    border-radius: 5rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    background: var(--main-color);
    text-align: center;
    transition: all 0.4s ease;
}

.project-links .btn:hover {
    background: var(--text-color);
    color: var(--main-color);
}

/* Contact Section */
.contact{
    min-height: auto;
    padding-bottom: 7rem;
    padding:200px 9%;

    text-align: center;
}

.contact h2.heading {
       font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}
.contact h2.heading span {
    color: var(--main-color, #ff6b6b);
}

.contact form{
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-box{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact form .input-box .input-field{
    position: relative;
    width: 49%;
    margin:.8rem 0;
}

/* .contact form .input-field{
    position: relative;
    width: 49%;
    margin-bottom: 1rem;
} */

.contact form .input-field input,
.contact form .textarea-field textarea{
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    

}
.contact form .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder{
    color: var(--text-color);
    font-size: 1.6rem;
}

/* Focus effect */
.contact form .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: 0.4s ease;
 
}

.contact form .input-box .input-field input:focus ~ .focus,
.contact form .input-box .input-field input:valid ~ .focus,
.contact form .textarea-field textarea:focus ~ .focus,
.contact form .textarea-field textarea:valid ~ .focus {
    width: 100%;
}

.contact form .textarea-field{
    position: relative;
    margin:.8rem 0 2.7rem ;
    display: flex;
    width: 100%;
    height: 190px;
}

.contact form .textarea-field textarea{
 
    resize: none;
}




/* Button */


.contact form .btn-box .btn{

    cursor: pointer;
   
}
.contact form .btn-box .btn:hover{
    background: var(--second-bg-color);
}

/* Success message */
.contact form .success-message{
     display: none;
    color: var(--main-color);
    font-size: 1.6rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}



/* Footer Base */
.footer {
    background: var(--second-bg-color, #222);
    padding: 2rem 9%;
    color: var(--text-color, #fff);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}



/* ----------------------
   Footer Base Styling
------------------------ */
.footer {
    padding: 3rem 9%;
    background: linear-gradient(135deg, #1c1c1c, #2c3e50);
    color: #fff;
    position: relative;
    overflow: hidden;
    perspective: 1000px; /* enables 3D rotation */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transform-style: preserve-3d;
}

/* Footer Text */
.footer-text p {
    font-size: 1.6rem;
    transition: transform 0.5s ease, color 0.3s ease;
}
.footer-text p:hover {
    color: #ff6b6b;
    transform: rotateY(10deg) translateZ(5px); /* 3D hover effect */
}

/* Back to Top Icon */
.footer-social a.back-to-top {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    border-radius: 50%;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255,107,107,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

/* Hover Effects */
.footer-social a.back-to-top:hover {
    transform: translateY(-8px) rotateY(15deg) scale(1.1); /* 3D hover + scale */
    box-shadow: 0 15px 30px rgba(255,107,107,0.8);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shapes .shape {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    filter: blur(8px);
    animation: float-shape 12s linear infinite;
}

.floating-shapes .shape-1 { top: 20%; left: 10%; animation-delay: 0s; }
.floating-shapes .shape-2 { top: 50%; left: 80%; animation-delay: 4s; }
.floating-shapes .shape-3 { top: 70%; left: 30%; animation-delay: 8s; }
.floating-shapes .shape-4 { top: 10%; left: 60%; animation-delay: 2s; }

@keyframes float-shape {
    0% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
    50% { transform: translateY(-50px) rotateY(180deg) rotateX(180deg); }
    100% { transform: translateY(0) rotateY(360deg) rotateX(360deg); }
}

