/* Reset & basics */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; 
}
body { 
    background: #0d0d0d; 
    color: #fff; 
    scroll-behavior: smooth; 
}

/* Navigation */
nav { 
    position: fixed; 
    top: 0; width: 100%; 
    padding: 20px 50px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(13,13,13,0.9); 
    z-index: 9999; 
}
nav a { 
    color: #e676dc; 
    margin-left: 30px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s; }    
    
nav a:hover { 
    color: #e676dc; 
}

/* Header */
header { 
    height: auto; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
}
header h1 { 
    font-size: 4rem; 
    margin-bottom: 20px; 
    animation: fadeInDown 1s ease-out; 
}
header p { 
    font-size: 1.5rem; 
    max-width: auto; 
    animation: fadeInUp 1s ease-out; 
}

/* Sections */
section { 
    padding: 50px 50px; 
}
section h2 { 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    text-align: center; 
    color: #e676dc; 
}
#projects{
    background: url('assets/resumePattern_bg.jpg') repeat;
    background-size: auto; 
}
#projects h2{
    background: rgba(0, 0, 0, 0.5); /* black box at 50% transparency */
    padding: 10px;
    border-radius: 12px; 
    display: center;
}
.projects { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

/* Project Cards */
.project-card { 
    background: #1a1a1a; 
    padding: 20px; 
    border-radius: 15px; 
    transition: transform 0.3s, box-shadow 0.3s; 
    cursor: pointer; 
    width: 90%; 
    max-width: 250px; 
    margin: 0 auto;}
.project-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(255,76,96,0.3); 
}
.project-card h3 { 
    margin-bottom: 10px; 
    color: #fff; 
}
.project-card p { 
    color: #ccc; 
}

/* Footer */
footer { 
    text-align: center; 
    padding: 50px; 
    background: #0d0d0d; 
    color: #888; 
}

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

/* Responsive */
@media (max-width: 768px) { 
    header h1 { font-size: 3rem; } 
    header p { font-size: 1.2rem; } 
}
.highlight { 
    color:#e676dc; 
    text-decoration: none; }

/* background vieo */
#hero {
    position: relative; 
    height: 100vh; 
    overflow: hidden;
    display: flex; 
    justify-content: center; 
    align-items: center;}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%; 
    width: auto; height: auto; 
    z-index: -1; 
    transform: translate(-50%, -50%); 
    object-fit: cover;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* black box at 50% transparency */
    padding: 10px;
    border-radius: 12px; 
    display: inline-block;
}

.hero-text h1 {
    font-size: 8rem;
    margin: 0;
    color:#e676dc;
}

.hero-text p {
    font-size: 4rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;  /* smaller gap for mobile */
  padding: 20px;
}

/* For tablets and smaller phones */
@media screen and (max-width: 768px) {
  .project-card {
    width: 45%;   /* two cards per row */
  }
}

/* For mobile phones */
@media screen and (max-width: 480px) {
  .project-card {
    width: 90%;   
  }

  #hero {
    height: 60vh; 
  }
  .hero-text h1 {
    font-size: 2rem;  
  }

  .hero-text p {
    font-size: 1rem;  
  }
  .hero-text {
    padding: 10px 20px; 
  }
}

.project-card img, 
#hero video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* About Section */
#about {
  background: #0a0009;
  padding: 60px 20px;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

#about h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #e676dc;
}

#about p {
  margin-bottom: 15px;
}

#about h3 {
  margin-top: 30px;
  font-size: 1.5rem;
}

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

.skills-list li {
  margin: 10px 0;
  background: rgba(0,0,0,0.05);
  padding: 10px;
  border-radius: 8px;
}

/* Call to action inside About */
.about-cta {
  text-align: center;
  margin-top: 40px;
}

.about-cta .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: #e676dc;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.about-cta .btn:hover {
  background: #e73370;
}

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
  #about h2 {
    font-size: 1.8rem;
  }
  #about h3 {
    font-size: 1.3rem;
  }
}

/* Resume Page */
body.resume-page {
  background: url('assets/resumePattern_bg.jpg') repeat;
  background-size: auto; 
}

.resume {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.6); 
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}
.resume-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.resume-header h1 {
  font-size: 3rem;
  color: #e676dc;
}

.resume-header p {
  font-size: 1.3rem;
  color: #ccc;
}

.resume-section {
  padding-left: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}
.resume-section:nth-child(2) { animation-delay: 0.1s; }
.resume-section:nth-child(3) { animation-delay: 0.2s; }
.resume-section:nth-child(4) { animation-delay: 0.3s; }
.resume-section:nth-child(5) { animation-delay: 0.4s; }

.resume-section h2 {
  font-size: 1.8rem;
  color: #e676dc;
  margin-bottom: 0.5 rem;
  border-bottom: 2px solid #ddd;
}

.resume-section ul li {
  margin-bottom: 0.8rem;
  color: #ddd;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #e676dc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #e676dc;
}
.logo{
    color: #e676dc;
}