﻿:root{
  --bg:#f5f5f5;
  --text:#333333;
  --muted:#999999;
  --accent:#007bff;
  --accent-2:#0056b3;
  --btn-yellow:#ffc107;
  --btn-red:#ff5252;
  --btn-teal:#26c6da;
  --maxw:1200px;
  --pad:18px;
  --delay:0s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  min-height:100vh;
  min-height:100svh;
  padding:0;
  overflow:auto;
}

.page-wrapper{
  width:100%;
  background:var(--bg);
  min-height:100vh;
}

/* Header & Navigation */
.site-header{
  width:100%;
  background:#ffffff;
  border-bottom:1px solid #e0e0e0;
  padding:20px 0;
  position:sticky;
  top:0;
  z-index:100;
}

.header-content{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  font-size:1.5rem;
  font-weight:bold;
  color:#000000;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--btn-yellow);
  border-radius:50%;
}

.nav-links{
  display:flex;
  gap:30px;
}

.nav-links a{
  color:var(--text);
  text-decoration:none;
  font-size:0.95rem;
  font-weight:500;
  transition:color 0.3s ease;
}

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

/* Hero Section */
.hero-section{
  width:100%;
  background:#ffffff;
  padding:50px 20px 40px;
  min-height:auto;
  display:flex;
  align-items:center;
  overflow:visible;
  position:relative;
  z-index:1;
}

.hero-content{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:40px;
  align-items:center;
  width:100%;
}

.profile-image{
  display:flex;
  justify-content:center;
  align-items:center;
  perspective:1000px;
}

.image-placeholder{
  width:300px;
  height:300px;
  border-radius:50%;
  background:linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:1rem;
  box-shadow:0 10px 40px rgba(0,0,0,0.1);
}

.profile-pic{
  width:250px;
  height:250px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 10px 40px rgba(0,0,0,0.1);
  transition:transform 0.3s ease;
}

.profile-pic:hover{
  transform:scale(1.05) rotateY(5deg);
}

.hero-text h1{
  font-size:3.2rem;
  margin:0 0 5px 0;
  color:var(--text);
  font-weight:700;
}

.hero-text h2{
  font-size:1.2rem;
  color:var(--text);
  font-weight:600;
  margin:0 0 12px 0;
  border:none;
}

.hero-text p{
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.5;
  margin-bottom:25px;
}

.action-buttons{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

.btn-circle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:70px;
  height:70px;
  min-width:70px;
  min-height:70px;
  flex-shrink:0;
  border-radius:50%;
  font-size:0.8rem;
  font-weight:600;
  text-decoration:none;
  color:#ffffff;
  transition:transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow:0 4px 15px rgba(0,0,0,0.15);
}

.btn-circle:hover{
  transform:translateY(-8px) scale(1.1);
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

.btn-yellow{
  background:var(--btn-yellow);
  color:#000000;
}

.btn-red{
  background:var(--btn-red);
}

.btn-email{
  background:#ea4335;
  color:#ffffff;
}

.btn-github{
  background:#333333;
  color:#ffffff;
}

.btn-linkedin{
  background:#0a66c2;
  color:#ffffff;
}

.social-icon{
  width:40%;
  height:40%;
  flex-shrink:0;
}

/* Content Sections */
.content-section{
  width:100%;
  background:#ffffff;
  padding:45px 20px;
  border-top:1px solid #e0e0e0;
  position:relative;
  z-index:2;
}

.content-section .container{
  max-width:var(--maxw);
  margin:0 auto;
}

.content-section h2{
  font-size:1.8rem;
  margin-bottom:25px;
  color:var(--text);
  border-bottom:3px solid var(--btn-yellow);
  display:inline-block;
  padding-bottom:8px;
  transition:all 0.6s ease;
}

.content-section .animate-on-scroll.visible h2,
.content-section h2.visible{
  border-color:var(--accent);
}

.subsection{
  margin-bottom:28px;
}

.subsection h3{
  font-size:1.15rem;
  color:var(--text);
  margin-bottom:12px;
}

.subsection article{
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid #f0f0f0;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.subsection article:hover{
  transform:translateX(8px);
}

.subsection article:last-child{
  border-bottom:none;
}

.subsection article p{
  margin:0 0 10px 0;
}

.subsection article strong{
  color:var(--text);
}

.subsection ul{
  margin:10px 0 0 20px;
}

.subsection li{
  margin-bottom:5px;
  color:var(--muted);
  font-size:0.95rem;
}

.skills-list{
  list-style:none;
  padding:0;
  margin:0;
}

.skills-list li{
  padding:10px 0;
  border-bottom:1px solid #f0f0f0;
  color:var(--text);
  font-size:0.95rem;
}

.skills-list li:last-child{
  border-bottom:none;
}

.projects-list{
  list-style:none;
  padding:0;
  margin:0;
}

.projects-list li{
  padding:14px 0;
  border-bottom:1px solid #f0f0f0;
  transition:all 0.3s ease;
  font-size:0.95rem;
}

.projects-list li:hover{
  padding-left:10px;
  background:rgba(0,123,255,0.02);
}

.projects-list li:last-child{
  border-bottom:none;
}

.projects-list a{
  color:var(--accent);
  text-decoration:none;
}

.projects-list a:hover{
  text-decoration:underline;
}

.actions{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:8px 16px;
  border-radius:4px;
  background:var(--accent);
  color:#ffffff;
  text-decoration:none;
  font-size:0.9rem;
  transition:all 0.3s ease;
}

.btn:hover{
  background:var(--accent-2);
  box-shadow:0 4px 12px rgba(0,123,255,0.3);
  transform:translateY(-2px);
}

#resume .subsection:first-of-type .actions{
  display:none;
}

/* Footer */
.site-footer{
  background:#ffffff;
  border-top:1px solid #e0e0e0;
  padding:60px 20px;
}

.footer-content{
  max-width:var(--maxw);
  margin:0 auto 40px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:40px;
}

.footer-section h3{
  font-size:1rem;
  color:var(--text);
  margin:0 0 15px 0;
  font-weight:600;
}

.footer-section p{
  margin:0;
  color:var(--muted);
}

.footer-section a{
  color:var(--accent);
  text-decoration:none;
}

.footer-section a:hover{
  text-decoration:underline;
}

.social-links{
  display:flex;
  gap:15px;
}

.social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:4px;
  background:#f0f0f0;
  color:var(--text);
  text-decoration:none;
  font-size:0.9rem;
  font-weight:600;
  transition:all 0.3s ease;
}

.social-links a:hover{
  background:var(--accent);
  color:#ffffff;
}

.footer-note{
  text-align:center;
  color:var(--muted);
  font-size:0.9rem;
  margin:0;
  max-width:var(--maxw);
  margin-left:auto;
  margin-right:auto;
}

main{width:100%}
.container{max-width:var(--maxw);margin:0 auto;padding:var(--pad)}

/* Responsive */
@media (max-width:980px){
  .hero-content{
    grid-template-columns:1fr;
    gap:30px;
  }

  .image-placeholder{
    width:220px;
    height:220px;
  }

  .profile-pic{
    width:220px;
    height:220px;
  }

  .hero-text h1{
    font-size:2.3rem;
  }

  .action-buttons{
    gap:15px;
  }
}

@media (max-width:640px){
  .hero-section{
    padding:30px 20px;
    min-height:auto;
    overflow:visible;
  }

  .hero-content{
    gap:20px;
  }

  .action-buttons{
    gap:12px;
    flex-wrap:nowrap;
    justify-content:flex-start;
    margin-bottom:20px;
  }

  .btn-circle{
    width:60px;
    height:60px;
    min-width:60px;
    min-height:60px;
    font-size:0.7rem;
  }

  .image-placeholder{
    width:180px;
    height:180px;
  }

  .profile-pic{
    width:180px;
    height:180px;
  }

  .hero-text h1{
    font-size:1.8rem;
  }

  .hero-text h2{
    font-size:1rem;
  }

  .content-section{
    padding:30px 20px;
  }

  .content-section h2{
    font-size:1.4rem;
  }
}

/* Print styles */
@media print{
  body{color:#000;background:#fff}
  .site-header,.hero-section{display:none}
  .container{max-width:100%;padding:0}
}

/* Scroll Animations */
@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fadeInDown{
  from{
    opacity:0;
    transform:translateY(-30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

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

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

@keyframes scaleIn{
  from{
    opacity:0;
    transform:scale(0.8);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

.animate-on-scroll{
  opacity:0;
}

.animate-on-scroll.visible.fade-in-up{
  animation:fadeInUp 0.7s ease-out forwards;
  animation-delay:var(--delay, 0s);
}

.animate-on-scroll.visible.fade-in-down{
  animation:fadeInDown 0.7s ease-out forwards;
  animation-delay:var(--delay, 0s);
}

.animate-on-scroll.visible.fade-in-left{
  animation:fadeInLeft 0.8s ease-out forwards;
  animation-delay:var(--delay, 0s);
}

.animate-on-scroll.visible.fade-in-right{
  animation:fadeInRight 0.8s ease-out forwards;
  animation-delay:var(--delay, 0s);
}

.animate-on-scroll.visible.scale-in{
  animation:scaleIn 0.6s ease-out forwards;
  animation-delay:var(--delay, 0s);
}

.heading-animate{
  word-spacing:9999px;
  opacity:0;
}

.animate-on-scroll.visible .heading-animate{
  animation:fadeInUp 1s ease-out 0.2s forwards;
}
