/* Modern Hero Photo Style */
/* Modern Hero Photo Style */
.hero-photo {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 220px;
  z-index: 2;
}

.profile-img {
  width: 240px;
  height: 240px;
  border-radius: 50%; 
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.18),
    0 2px 16px rgba(99, 102, 241, 0.12),
    0 0 0 8px rgba(14, 165, 233, 0.10);
  border: none;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(99, 102, 241, 0.12) 100%);
  transition: transform 0.32s cubic-bezier(0.4, 2, 0.3, 1), box-shadow 0.32s;
  filter: drop-shadow(0 0 24px rgba(99, 102, 241, 0.10));
}

.profile-img:hover {
  transform: scale(1.06) rotate(2deg); /* Tilt effect only on hover */
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.28),
    0 2px 24px rgba(99, 102, 241, 0.22),
    0 0 0 12px rgba(99, 102, 241, 0.13);
  filter: brightness(1.08);
}

/* Decorative gradient ring behind image */
.hero-photo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 270px;
  height: 270px;
  border-radius: 50%; /* Circular ring */
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.22) 0%, rgba(139, 92, 246, 0.18) 100%);
  z-index: 0;
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
  animation: hero-ring-float 7s ease-in-out infinite alternate;
}

/* Floating 3D spiral (top) */
.hero-photo::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #0ea5e9 0%, #8b5cf6 70%, transparent 100%);
  border-radius: 50%;
  clip-path: circle(40% at 70% 30%);
  z-index: 1;
  animation: float 6s ease-in-out infinite alternate;
}

/* Floating 3D spiral (bottom right) */
.hero-photo .spiral {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #0ea5e9 0%, #8b5cf6 70%, transparent 100%);
  border-radius: 50%;
  clip-path: circle(40% at 70% 30%);
  transform: rotate(-30deg);
  animation: rotate-spiral 8s linear infinite;
  z-index: 1;
}
/* 3D spiral another one (bottom left) */
.hero-photo .spiral {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #0ea5e9 0%, #8b5cf6 70%, transparent 100%);
  border-radius: 50%;
  clip-path: circle(40% at 70% 30%);
  transform: rotate(-30deg);
  animation: rotate-spiral 8s linear infinite;
}

/* Animations */
@keyframes hero-ring-float {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.04) rotate(2deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    transform: translateX(-50%) translateY(0px);
  }
}

@keyframes rotate-spiral {
  0% {
    transform: rotate(-30deg);
  }
  100% {
    transform: rotate(330deg);
  }
}

/* Responsive adjustments for hero image */
@media (max-width: 900px) {
  .hero-photo {
    flex: 0 0 180px;
    min-width: 120px;
  }
  .profile-img {
    width: 140px;
    height: 140px;
  }
  .hero-photo::before {
    width: 160px;
    height: 160px;
  }
  .hero-photo::after {
    width: 40px;
    height: 40px;
    top: -10px;
  }
  .hero-photo .spiral {
    width: 50px;
    height: 50px;
    bottom: -20px;
    right: -20px;
  }
}
/* hero photo */

:root{
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #6366f1;
  --accent: #8b5cf6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --white: #ffffff;
  --glass: rgba(30,41,59,0.45);
  --card-radius: 14px;
  --max-width: 1200px;
  --gradient-2: linear-gradient(135deg,#0ea5e9 0%,#6366f1 100%);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  color:var(--white);
  background:var(--dark);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  overflow-x:hidden;
}



.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--dark);
  overflow: hidden;
}

.bg-animated::before {
  content: "";
  position: absolute;
  inset: -50%;
background:
    radial-gradient(circle at 30% 60%, rgba(22, 30, 181, 0.1) 40%, transparent 20%),
    radial-gradient(circle at 80% 10%, rgba(44, 74, 193, 0.925) 20%, transparent 20%),
    radial-gradient(circle at 50% 30%, rgba(19, 1, 62, 0.936) 40%, transparent 20%),
    linear-gradient(120deg, rgba(14, 164, 233, 0.753) 30%, rgba(99,102,241,0.10) 10%, rgba(139,92,246,0.09) 100%);
filter: blur(40px);
opacity: 0.85;
animation:
    float 6s ease-in-out infinite alternate,
    wind-gradient 8s linear infinite alternate;
}

/* Wind blowing gradient animation */
@keyframes wind-gradient {
  0% {
    opacity: 0.7;
    transform: translateX(-80px) scale(1.05) rotate(0deg);
  }
  25% {
    opacity: 0.85;
    transform: translateX(40px) scale(1.08) rotate(2deg);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-30px) scale(1.03) rotate(-2deg);
  }
  75% {
    opacity: 0.9;
    transform: translateX(60px) scale(1.10) rotate(1deg);
  }
  100% {
    opacity: 0.7;
    transform: translateX(-80px) scale(1.05) rotate(0deg);
  }
}

/* Float up and down */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-40px);
  }
  100% {
    transform: translateY(0px);
  }
}



/* NAV */
.nav{
  position:fixed;top:0;left:0;right:0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.04);
  z-index:1000;
}
.nav-container{
  max-width:var(--max-width);margin:0 auto;padding:0.9rem 1.25rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.logo-link{display:flex;align-items:center;gap:0.75rem;text-decoration:none}
.logo-img{height:48px;width:48px;border-radius:8px;object-fit:cover;box-shadow:0 6px 18px rgba(14,165,233,0.08)}
.logo-text{font-weight:700;background:var(--gradient-2);-webkit-background-clip:text;-webkit-text-fill-color:transparent}

.nav-links{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.nav-links a{
  color:var(--gray-light);text-decoration:none;font-weight:500;padding:0.35rem 0.5rem;border-radius:6px;transition:color .18s,background .18s;
}
.nav-links a:hover, .nav-links a:focus{color:var(--primary);outline:none}
.nav-actions{display:flex;align-items:center;gap:0.5rem}
.btn-icon{background:transparent;border:1px solid rgba(255,255,255,0.04);padding:0.4rem;border-radius:8px;color:var(--gray-light);cursor:pointer}
.btn-icon:focus{outline:2px solid rgba(14,165,233,0.15);box-shadow:0 6px 20px rgba(14,165,233,0.06)}
.mobile-only{display:none}

/* container */
.container{max-width:var(--max-width);margin:0 auto;padding:5.5rem 1.25rem 3rem}

/* HERO */
.hero{min-height:92vh;display:flex;align-items:center;justify-content:center;padding-top:3rem}
/* Modern Hero Layout */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
}


/* --- Modern Hero Photo Style --- */
/* .hero-photo {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 220px;
  z-index: 2;
}

.profile-img {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 8px 32px rgba(14,165,233,0.18),
    0 2px 16px rgba(99,102,241,0.12),
    0 0 0 8px rgba(14,165,233,0.10);
  border: none;
  background: linear-gradient(135deg, rgba(14,165,233,0.18) 0%, rgba(99,102,241,0.12) 100%);
  transition: transform 0.32s cubic-bezier(.4,2,.3,1), box-shadow 0.32s;
  filter: drop-shadow(0 0 24px rgba(99,102,241,0.10));
} */

.profile-img:hover {
  transform: scale(1.06) rotate(2deg);
  box-shadow:
    0 16px 48px rgba(14,165,233,0.28),
    0 2px 24px rgba(99,102,241,0.22),
    0 0 0 12px rgba(99,102,241,0.13);
  filter: brightness(1.08);
}

/* Decorative gradient ring behind image */
.hero-photo::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 270px; height: 270px;
  border-radius: 32px;
  background: linear-gradient(120deg, rgba(14,165,233,0.22) 0%, rgba(139,92,246,0.18) 100%);
  z-index: 0;
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
  animation: hero-ring-float 7s ease-in-out infinite alternate;
}

@keyframes hero-ring-float {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg);}
  50% { transform: translate(-50%, -52%) scale(1.04) rotate(2deg);}
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg);}
}

/* Responsive adjustments for hero image */
@media (max-width: 900px) {
  .hero-photo {
    flex: 0 0 180px;
    min-width: 120px;
  }
  .profile-img {
    width: 140px;
    height: 140px;
    border-radius: 18px;
  }
  .hero-photo::before {
    width: 160px;
    height: 160px;
    border-radius: 20px;
  }
}


.hero-content {
  flex: 1;
  min-width: 280px;
  background: rgba(30,41,59,0.60);
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(14,165,233,0.07);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2px);
}

.hero-content h1 {
  font-size: 3.2rem;
  margin: 0 0 0.35rem;
  background: linear-gradient(135deg,#fff 0%,#0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -1px;
}

.tagline {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.description {
  max-width: 700px;
  color: var(--gray-light);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .hero-content {
    padding: 1.5rem 1rem;
  }
  .profile-img {
    width: 180px;
    height: 180px;
  }
}
/* buttons */
.btn{display:inline-block;padding:0.65rem 1.2rem;border-radius:10px;text-decoration:none;font-weight:600;border:none;cursor:pointer}
.btn-primary{background:var(--gradient-2);color:var(--white);box-shadow:0 10px 30px rgba(99,102,241,0.08)}
.btn-outline{background:transparent;border:2px solid rgba(14,165,233,0.16);color:var(--primary)}
.btn-outline:hover{background:var(--primary);color:var(--white)}

/* SECTION TITLE */
.section-title{text-align:center;font-size:2rem;margin-bottom:1.8rem;font-weight:700;position:relative}
.section-title::after{content:"";display:block;width:90px;height:4px;margin:10px auto 0;border-radius:3px;background:var(--gradient-2)}
/* SECTION SEPARATION */
section.container {
  position: relative;
  margin-bottom: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(14,165,233,0.07);
  background: rgba(30,41,59,0.60); /* subtle glass effect */
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.04);
  z-index: 1;
  /* modest separation from animated bg */
}

/* Remove extra margin for last section */
section.container:last-of-type {
  margin-bottom: 0;
}



/* CARDS */
.card{background:var(--glass);border:1px solid rgba(255,255,255,0.05);padding:1.25rem;border-radius:var(--card-radius);backdrop-filter:blur(6px);transition:transform .28s,box-shadow .28s}
.card:hover{ transform:translateY(-8px);
  box-shadow:0 24px 60px rgba(14,165,233,0.22), 0 2px 16px rgba(99,102,241,0.18);
  background:linear-gradient(135deg,rgba(14,165,233,0.12) 0%,rgba(99,102,241,0.10) 100%);
  border:1.5px solid var(--primary);
}

/* ABOUT GRID */
.about-grid{display:grid;grid-template-columns:1fr 380px;gap:1.5rem;align-items:start}
.education-info{display:flex;flex-direction:column;gap:1rem}

/* PROJECTS */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.25rem}
.project-card{display:flex;flex-direction:column;gap:0.85rem}
.project-meta{display:flex;justify-content:space-between;color:var(--gray);font-size:0.9rem}
.project-description{color:var(--gray-light)}
.project-highlights ul{list-style:none;padding-left:1.25rem;margin:0}
.project-highlights li{position:relative;padding-left:1.25rem;color:var(--gray-light);margin:0.35rem 0}
.project-highlights li::before{content:'▹';position:absolute;left:0;color:var(--primary)}
.tech-stack{display:flex;flex-wrap:wrap;gap:0.5rem}
.tech-tag{background:rgba(14,165,233,0.12);color:var(--primary);padding:0.25rem 0.6rem;border-radius:12px;border:1px solid rgba(14,165,233,0.14);font-size:0.85rem}
.project-links{display:flex;gap:0.75rem;align-items:center}
.link{color:var(--primary);text-decoration:none}
.link:hover{color:var(--white)}

/* SKILLS */
.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}
.skill-category h3{color:var(--primary);margin-bottom:0.6rem}
.skill-tags{display:flex;flex-wrap:wrap;gap:0.5rem}

/* CERTIFICATIONS / ACHIEVEMENTS / CONTACT GRIDS */
.certifications-grid,.achievements-grid,.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}

/* achievement styles */
.achievement-icon{font-size:2.25rem;color:var(--primary);margin-bottom:0.6rem}
.achievement-rank{display:inline-block;background:var(--gradient-2);color:var(--white);padding:0.45rem 0.85rem;border-radius:20px;font-weight:600;margin-top:0.6rem}
.muted{color:rgba(255,255,255,0.6)}

.contact-icon{font-size:2rem;color:var(--primary);margin-bottom:0.6rem}

.contact-link{
    color:var(--gray-light);text-decoration:none;font-weight:500;
}
/* FOOTER */
.footer{padding:2rem 1.25rem;text-align:center;border-top:1px solid rgba(255,255,255,0.04);margin-top:2rem}
.social-links{display:flex;gap:1rem;justify-content:center;margin-bottom:0.5rem}
.social-links a{color:var(--gray-light);font-size:1.25rem}
.social-links a:hover{color:var(--primary)}
.copyright{color:var(--gray);margin:0}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,0.88); /* Increased opacity for stronger overlay */
  z-index: 2000;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.modal-panel {
  background: linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 720px;
  width: 100%;
  color: var(--gray-light);
  position: relative;
  box-shadow: 0 12px 48px rgba(14,165,233,0.25), 0 2px 16px rgba(99,102,241,0.18); /* Stronger shadow */
  transform: scale(0.97) translateY(18px);
  transition: box-shadow 0.2s, transform 0.22s;
}

.modal[aria-hidden="false"] .modal-panel {
  transform: scale(1) translateY(0);
}
/* small screens */
@media(max-width:900px){
  .about-grid{grid-template-columns:1fr;gap:1rem}
  .logo-text{display:none}
  .mobile-only{display:inline-flex}
  .nav-links{position:absolute;top:64px;left:0;right:0;background:rgba(15,23,42,0.95);flex-direction:column;padding:1rem;border-bottom-left-radius:8px;border-bottom-right-radius:8px;display:none}
  .nav-links.show{display:flex}
  .nav-container{padding:0.6rem 1rem}
}

/* focus states */
a:focus,button:focus{outline:2px solid rgba(14,165,233,0.14);outline-offset:2px}

/* small typographic tweaks */
h1{line-height:1}
h2{margin-top:0}

/* utility */
.container .card{margin-bottom:0.75rem}
