/* ===== Theme */
:root{
  --bg: #0f1115;
  --card: rgba(255,255,255,0.04);
  --text: #e9eef5;
  --muted: #9aa4b2;
  --accent: #ff6a3d;               /* warm orange accent */
  --border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body{
  margin: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 10% -10%, #1a1f2a 0%, transparent 60%),
    radial-gradient(800px 400px at 90% 10%, #2a1f1a 0%, transparent 60%),
    var(--bg);
}

/* ===== Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(180deg, rgba(15,17,21,0.75), rgba(15,17,21,0.45));
  border-bottom: 1px solid var(--border);
  animation: drop-in 500ms ease-out both;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand (logo + name) */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15) inset;
}

.brand:hover .logo{
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.name{
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Navigation */
.nav{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link{
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-size: 0.98rem;
  padding: 8px 2px;
  transition: color 200ms ease, transform 200ms ease;
}

/* Modern underline animation */
.nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), #ffd166);
  transition: transform 260ms ease;
  border-radius: 2px;
}

.nav-link:hover{
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after{
  transform: scaleX(1);
}

/* Focus styles for accessibility */
.nav-link:focus-visible,
.brand:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Small screens */
@media (max-width: 720px){
  .container{
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .nav{
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* Entrance animation */
@keyframes drop-in{
  from{
    opacity: 0;
    transform: translateY(-12px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: give dummy sections some height so anchors work while testing */
main > section{
  min-height: 40vh;
}

/* ===== Hero Section ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 22px;
}

.hero-content {
  animation: fade-slide-left 1s ease-out both;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), #ffd166);
  border-radius: 2px;
  animation: underline-slide 1.2s ease forwards;
}

.hero-subtext {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  animation: fade-in 1.2s ease 0.3s both;
}

.hero-image {
  display: flex;
  justify-content: center;
  animation: fade-slide-right 1s ease-out both;
}

.hero-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transform: scale(0.98);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Animations */
@keyframes fade-slide-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-slide-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes underline-slide {
  from { width: 0; }
  to { width: 100%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 2;
  }
  .hero-image {
    order: 1;
  }
}
/* ===== Hero Background Animation ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1a1f2a, #2a1f1a);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 106, 61, 0.15) 0%, transparent 60%);
  animation: moveWaves 12s ease-in-out infinite alternate;
}

.hero::after {
  background: radial-gradient(circle at center, rgba(255, 209, 102, 0.15) 0%, transparent 60%);
  animation-delay: 6s;
}

@keyframes moveWaves {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(10%, 10%) rotate(45deg); }
  100% { transform: translate(-10%, -10%) rotate(90deg); }
}

/* Keep content above animated background */
.hero-content, .hero-image {
  position: relative;
  z-index: 1;
}
/* ===== Floating Icons ===== */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Don't block clicks */
  overflow: hidden;
  z-index: 0;
}

.icon {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0.08;
  animation: float 15s ease-in-out infinite;
}

.html-icon { top: 15%; left: 10%; animation-delay: 0s; }
.css-icon { top: 50%; left: 5%; animation-delay: 5s; }
.js-icon { top: 75%; left: 80%; animation-delay: 10s; }

@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-20px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}


/* ===== About Me Section ===== */
.about {
  padding: 80px 22px;
  background: var(--bg);
  position: relative;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
}

.about h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 2px;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
  animation: fade-up 0.8s ease-out both;
}

.resume-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
  animation: fade-up 0.9s ease-out both;
  
}

.resume-btn:hover {
  background: #e85a2f;
  transform: translateY(-2px);
}

/* Animation*/
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
} 

/* ===== Skills & Tools ===== */
.skills {
  padding: 80px 22px;
  background: linear-gradient(180deg, var(--bg), #15171d);
}

.skills-container {
  max-width: 1100px;
  margin: 0 auto;
}

.skills h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--accent);
}

.skills h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 2px;
}

.skills-group {
  margin-bottom: 40px;
}

.skills-group h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--card);
  padding: 24px 18px;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  animation: fade-pop 0.8s ease forwards;
  opacity: 0;
}

.skill-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 106, 61, 0.25);
  
}

/* Stagger Animation */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fade-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}


/* ===== Education Section ===== */
.education {
  padding: 80px 22px;
  background: linear-gradient(180deg, #15171d, var(--bg));
}

.education-container {
  max-width: 900px;
  margin: 0 auto;
}

.education h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--accent);
}

.education h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 2px;
}


.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 3px solid var(--border);
}


.timeline-item {
  position: relative;
  margin-bottom: 40px;
  animation: slide-up 0.8s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }

.timeline-dot {
  position: absolute;
  left: -12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 106, 61, 0.7);
}

.timeline-content {
  background: var(--card);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.degree {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin: 4px 0;
}

.details {
  font-size: 0.95rem;
  color: var(--muted);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Mobile responsive */
@media (max-width: 600px) {
  .timeline {
    padding-left: 20px;
  }
  .timeline-dot {
    left: -10px;
  }
}

/* ===== Contact Section ===== */
.contact {
  padding: 80px 22px;
  background: linear-gradient(180deg, var(--bg), #15171d);
  text-align: center;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--accent);
}


.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-icon {
  /* font-size: 2rem;
  width: 70px;
  height: 70px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  animation: bubble-in 0.8s ease forwards;
  opacity: 0; */
  
  font-size: 2rem;
  width: 70px;
  height: 70px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  animation: bubble-in 0.8s ease forwards, floaty 4s ease-in-out infinite;
  opacity: 0;
}

.contact-icon:nth-child(1) { animation-delay: 0.1s, 0.1s; }
.contact-icon:nth-child(2) { animation-delay: 0.3s, 0.3s; }
.contact-icon:nth-child(3) { animation-delay: 0.5s, 0.5s; }

/* Gentle floating animation */
@keyframes floaty {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}



.contact-icon:nth-child(1) { animation-delay: 0.1s; }
.contact-icon:nth-child(2) { animation-delay: 0.3s; }
.contact-icon:nth-child(3) { animation-delay: 0.5s; }

/* Hover effects per platform */
.contact-icon.email:hover {
  background: #d93025;
  color: #fff;
  border-color: #d93025;
  box-shadow: 0 0 15px rgba(217,48,37,0.6);
  transform: rotateZ(-8deg) scale(1.1);
}

.contact-icon.github:hover {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
  box-shadow: 0 0 15px rgba(36,41,46,0.6);
  transform: rotateZ(8deg) scale(1.1);
}

.contact-icon.linkedin:hover {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
  box-shadow: 0 0 15px rgba(10,102,194,0.6);
  transform: rotateZ(-8deg) scale(1.1);
}

/* Entrance Animation */
@keyframes bubble-in {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Footer ===== */
.site-footer {
  background: #0f1115;
  padding: 20px 22px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-name {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.footer-title {
  margin: 4px 0;
}

.footer-copy {
  font-size: 0.85rem;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link:hover::after {
  width: 100%;
}

/* Mobile Layout */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-right {
    gap: 15px;
  }
}

