/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body{
    margin:0;
    background:#0d1117;
    color:white;
    overflow:hidden;
}

canvas{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

/* ===== Navbar ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: black;
  position: relative;
  z-index: 1000;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav .logo span {
  color: #a259ff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: #f5f5f5;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #a259ff;
}

/* ===== Hamburger ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #f5f5f5;
  transition: 0.3s;
  border-radius: 2px;
}

/* Rotate lines when open */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Sections ===== */
.content-section {
  display: none; /* Hide all by default */
  padding: 80px 40px;
}

#home {
  display: block; /* Show Home first */
}

/* ===== Hero Section (Home) ===== */
.intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
}

.intro-text {
  flex: 1;
  color: white;
}

.intro-image img {
  width: 250px;
  height: 300px;
  border-radius: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 60px;
    right: -250px;   /* hidden by default */
    width: 200px;
    background: #2a2a2a;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    transition: right 0.3s ease-in-out;
  }

  nav ul.active {
    right: 10px;   /* visible when active */
  }

  .intro-section {
    flex-direction: column;
    text-align: center;
  }

  .intro-image img {
    margin-top: 20px;
  }
}

.social-container{
    display:flex;
    justify-content:center;
}

.social-item{
    text-align:center;
}

.social-box{
    width:90px;
    height:100px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f2f2f2;
    border-radius:12px;
    margin:auto;
}

.social-box img{
    width:40px;
    height:40px;
}

.social-item p{
    margin-top:10px;
    color:white;
    font-size:16px;
}

.social-item p a{
    color:#0A66C2;
    text-decoration:none;
}

.social-item p a:hover{
    text-decoration:underline;
}

/* Hover Colors */
.linkedin:hover {
  border: 2px solid #0A66C2;
}

.github:hover {
  border: 2px solid #333;
}

.whatsapp:hover {
  border: 2px solid #25D366;
}

.instagram:hover {
  border: 2px solid #E1306C;
}

/* Mobile */
@media (max-width:768px) {
  .social-box {
    width: 75px;
    height: 90px;
  }

  .social-box img {
    width: 30px;
    height: 30px;
  }

  .social-box p {
    font-size: 12px;
  }
}

/* 💻 Desktop */
@media (min-width: 1024px) {
  .social-box { padding: 20px; }
  .social-box img { width: 60px; height: 60px; }
}

/* Resume images */
.resume-img{
    width:400px;
    height:auto;
    margin-bottom:20px;
}

/* Mobile only */
@media (max-width:768px){

    .resume-img{
        width:200px;
        height:auto;
    }

    /* Only second page */
    .second-resume{
        width:200px;
        height:282px; /* adjust to match page 1 */
        object-fit:contain;
    }
}

.btn{
  display: inline-block;
  text-align: center;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
  width: auto;
  padding: 8px 14px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
}
