
:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --dark: #1f2937;
    --darker: #111827;
    --light: #ffffff;
    --light-bg: #f8fafc;
    --light-secondary: #f1f5f9;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --gray: #9ca3af;
    --success: #10b981;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-light: 0 10px 40px rgba(59, 130, 246, 0.15);
    --shadow-hover: 0 20px 60px rgba(59, 130, 246, 0.25);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
  }
  
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
  }
  
  @keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
  }
  
  #techCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  
  .container {
    position: relative;
    z-index: 1;
  }
 /* step 1  */
nav {
position: fixed;
top: 0;
width: 100%;
height: 90px;
padding: 0 6%;
display: flex;
justify-content: space-between;
align-items: center;

background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);

border-bottom: 1px solid rgba(59, 130, 246, 0.1);
box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);

z-index: 1000;
transition: all 0.4s ease;
}

/* ===============================
Logo Styling
================================ */

.logo {
font-size: 1.6rem;
font-weight: 700;
letter-spacing: 0.5px;

background: linear-gradient(
120deg,
var(--primary),
var(--secondary),
var(--accent)
);
background-size: 200% auto;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

animation: logoGlow 3s linear infinite;
transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

@keyframes logoGlow {
to {
background-position: 200% center;
}
}

/* ===============================
Navigation Links
================================ */

.nav-links {
display: flex;
align-items: center;
gap: 2.5rem;
list-style: none;
}

/* Link Base */
.nav-links a {
position: relative;
text-decoration: none;
color: var(--text-dark);
font-size: 0.95rem;
font-weight: 500;
letter-spacing: 0.3px;

padding: 8px 16px;
border-radius: 25px;
transition: all 0.3s ease;
}

/* Gradient underline animation */
.nav-links a::before {
content: '';
position: absolute;
left: 50%;
bottom: -8px;
transform: translateX(-50%);

width: 0%;
height: 2px;
border-radius: 4px;

background: linear-gradient(
90deg,
var(--primary),
var(--accent)
);

transition: width 0.35s ease;
}

/* Glow effect */
.nav-links a::after {
content: '';
position: absolute;
inset: 0;
border-radius: 6px;
background: transparent;
transition: background 0.3s ease;
z-index: -1;
}

.nav-links a:hover {
color: var(--primary);
background: rgba(59, 130, 246, 0.1);
transform: translateY(-2px);
}

.nav-links a:hover::before {
width: 100%;
}

.nav-links a:hover::after {
background: rgba(59, 130, 246, 0.05);
}

/* ===============================
Active Link (Optional)
================================ */

.nav-links a.active {
color: var(--accent);
}

.nav-links a.active::before {
width: 100%;
}


/* STEP2  */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 10% 4rem;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  animation: fadeInLeft 1s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hero-model {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out;
}

.model-container {
  width: 400px;
  height: 400px;
  perspective: 1000px;
}

.model-card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.model-circle {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: var(--gradient-3);
  backdrop-filter: blur(15px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 25px 80px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}

.model-circle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--gradient-1);
  z-index: -1;
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.model-placeholder {
  font-size: 8rem;
  animation: pulse 2s ease-in-out infinite;
}

section {
  padding: 5rem 10%;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* step 2 ends  */

/* step 3  */
.about {
    padding: 6rem 8%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8),
      rgba(248, 250, 252, 0.9)
    );
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
  }
  
  .about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: -1;
  }
  
  /* ===============================
     Layout
  ================================ */
  
  .about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: auto;
  }
  
  /* ===============================
     Sticker / Profile Card
  ================================ */
  
  .sticker-photo {
    width: 380px;
    height: 380px;

    overflow: hidden;            
    display: flex;
    align-items: center;
    justify-content: center; 
    animation: float 4s ease-in-out infinite;
  }
  
  /* Image inside */
  .sticker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
  }
  
  /* Single smooth animation */
  @keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
  }
  
  
  .sticker-photo:hover {
    transform: scale(1.04) rotate(-1deg);
  }
  
  /* Floating animation */
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-18px);
    }
  }
  
  /* ===============================
     About Text
  ================================ */
  
  .about-text {
    flex: 1;
  }
  
  .about-text h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
  
    background: linear-gradient(
      90deg,
      var(--secondary),
      var(--primary)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .about-text p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 1.6rem;
    max-width: 650px;
  }
  
  /* ===============================
     Skills Section
  ================================ */
  
  .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
  }
  
  .skill-tag {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
  
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
  
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
  
    transition: all 0.35s ease;
  }
  
  .skill-tag:hover {
    background: var(--gradient-1);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
  }
  
  /* ===============================
     Responsive
  ================================ */
  
  @media (max-width: 900px) {
    .about-content {
      flex-direction: column;
      text-align: center;
    }
  
    .about-text p {
      margin: auto;
    }
  }


  /* step 3 ends  */



/* step 4  */

.academics{
    padding:6rem 8%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
  }
  
  .academics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
  }
  .section-title{
    font-size:2.4rem;
    text-align:center;
    margin-bottom:3rem;
  }
  
  /* ========== TIMELINE ========== */
  .academics-timeline{
    position:relative;
    max-width:1100px;
    margin:auto;
  }
  .academics-timeline::before{
    content:'';
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:4px;
    height:100%;
    background:linear-gradient(to bottom,var(--primary),var(--secondary));
    border-radius:10px;
    animation:grow 1.4s ease forwards;
  }
  @keyframes grow{from{height:0}to{height:100%}}
  
  .academic-item{
    position:relative;
    width:50%;
    padding:2rem 3rem;
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
  }
  .academic-item.show{
    opacity:1;
    transform:translateY(0);
  }
  .academic-item.left{
    left:0;
    text-align:right;
  }
  .academic-item.right{
    left:50%;
    text-align:left;
  }
  
  /* DOT */
  .academic-item::before{
    content:'';
    position:absolute;
    top:60px;
    width:18px;
    height:18px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    border-radius:50%;
    border:4px solid var(--dark);
    z-index:2;
  }
  .academic-item.left::before{right:-9px}
  .academic-item.right::before{left:-9px}
  
  /* CARD */
  .academic-card{
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter:blur(20px);
    border:1px solid rgba(59, 130, 246, 0.2);
    border-radius:20px;
    padding:2rem;
    transition:.4s;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
  }
  .academic-card:hover{
    transform:translateY(-15px) scale(1.02);
    box-shadow:0 30px 80px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
  }
  
  /* ICON */
  .academic-icon{
    width:60px;
    height:60px;
    border-radius:15px;
    background:var(--gradient-1);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.8rem;
    margin-bottom:1rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
  }
  
  @keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  /* TEXT */
  .academic-card h3{font-size:1.3rem;margin-bottom:.4rem;color:var(--text-dark)}
  .college{color:var(--primary);font-weight:600}
  .year{color:var(--text-gray);font-size:.9rem;margin:.4rem 0 1rem}
  .grade{
    display:inline-block;
    padding:.6rem 1.4rem;
    border-radius:999px;
    background:linear-gradient(135deg, #10b981, #059669);
    color:white;
    font-weight:600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }
  
  /* MOBILE */
  @media(max-width:900px){
    .academics-timeline::before{left:10px}
    .academic-item{
      width:100%;
      left:0!important;
      padding-left:3rem;
      text-align:left;
    }
    .academic-item::before{left:1px}
  }


/* step 5  */
  .projects{
    padding:6rem 8%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
  }
  
  .projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
  }
  .section-title{
    text-align:center;
    font-size:2.4rem;
    margin-bottom:4rem;
  }
  
  .projects-list{
    max-width:1200px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:5rem;
  }
  
  .project-row{
    display:flex;
    align-items:center;
    gap:4rem;
  }
  
  .project-row.right{
    flex-direction:row-reverse;
  }
  
  .project-image img{
    width:100%;
    max-width:450px;
    border-radius:20px;
    box-shadow:0 25px 60px rgba(59, 130, 246, 0.2);
    transition:.4s;
    border: 2px solid rgba(255, 255, 255, 0.8);
  }
  .project-image img:hover{
    transform:scale(1.05) rotate(1deg);
    box-shadow:0 35px 80px rgba(59, 130, 246, 0.3);
  }
  
  .project-content{
    flex:1;
  }
  
  .project-content h3{
    font-size:1.6rem;
    margin-bottom:1rem;
    color:var(--text-dark);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .project-content p{
    color:var(--text-gray);
    line-height:1.8;
    margin-bottom:1.2rem;
  }
  
  .project-tech{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
  }
  .project-tech span{
    padding:.5rem 1.2rem;
    border-radius:999px;
    background:rgba(255, 255, 255, 0.9);
    border:1px solid rgba(59, 130, 246, 0.2);
    font-size:.85rem;
    color:var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
  }
  
  .project-tech span:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  }
  
  /* MOBILE */
  @media(max-width:900px){
    .project-row,
    .project-row.right{
      flex-direction:column;
      text-align:center;
    }
  }

  /* step 6 */
  .tech-badge {
  background: var(--gradient-2);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.internships-grid {
  display: flex;
  gap: 2rem;
}

.internship-card {
    width: 50%;
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--primary);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.internship-card:hover {
  transform: translateX(15px) translateY(-5px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
  border-left-color: var(--accent);
}

.internship-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.company {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.duration {
  background: var(--gradient-3);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
/* step 7  */
/* ========== CONTACT SECTION ========== */
.contact {
    padding: 6rem 8%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
  }
  
  .contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
  }
  
  /* Button Center */
  .contact-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    transition: all 0.6s ease;
  }
  
  .contact-main-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
  }
  
  /* Hidden State */
  .hidden {
   display: none;
  }
  
  /* Container */
  .contact-container {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    animation: fadeUp 0.8s ease forwards;
  }
  
  /* Left Info */
  .contact-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.1);
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    animation: iconBounce 2s ease-in-out infinite;
  }
  
  @keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  
  /* Right Form */
  .contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.1);
  }
  
  .form-group {
    margin-bottom: 1.4rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: 500;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: all 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: none;
  }
  
  /* Animation */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mobile */
  @media (max-width: 900px) {
    .contact-container {
      grid-template-columns: 1fr;
    }
  }
  
footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #374151 100%);
  padding: 2rem 10%;
  text-align: center;
  color: var(--light);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--light);
  font-size: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-8px) scale(1.1);
  filter: drop-shadow(0 5px 15px rgba(245, 158, 11, 0.4));
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-20px) rotateY(10deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 6rem 5% 3rem; }
  .about-content { flex-direction: column; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .model-container { width: 300px; height: 300px; }
  section { padding: 3rem 5%; }
}
