/* Global Reset & Basic Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a;
  color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 0, 150, 0.3), transparent 25%),
              radial-gradient(circle at 70% 70%, rgba(0, 150, 255, 0.3), transparent 25%);
  background-size: 200% 200%;
  animation: patternAnimation 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes patternAnimation {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  padding: 0 40px;
  justify-content: space-between;
  align-items: center;
}

/* Hero Left */
.hero-left {
  flex: 1;
  max-width: 40%;
  text-align: left;
  padding-bottom: 20px;
}

.hero-left h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-left h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

/* Profile Picture */
.profile-pic {
  width: 250px;
  height: 250px;
  border: 1px solid #fff;
  margin-bottom: 20px;
  object-fit: contain; /* Change this from 'cover' */
  border-radius: 15px;
  background-color: #000;
}

/* Skills Strip in Hero */
.skills-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.skills-box {
  background: #222;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid #00ff99;
  flex: 1 1 250px;
}
.skills-box h3 {
  color: #00ff99;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.skills-box ul {
  list-style: none;
  padding-left: 0;
}
.skills-box li {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #ccc;
}

/* Social Links */
.social-handles {
  margin: 20px 0;
}
.social-handles a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 10px;
  transition: color 0.3s;
}
.social-handles a:hover {
  color: #00ff99;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #00ff99;
  background: transparent;
  color: #00ff99;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
}
.btn:hover {
  background: #00ff99;
  color: #000;
  transform: translateY(-3px);
}

/* Hero Right & Slider */
.hero-right {
  flex: 1;
  max-width: 50%;
  padding-left: 10px;
}
.slider {
  width: 100%;
  overflow: hidden;
}
.slide {
  display: none;
  width: 100%;
}
.slide.active {
  display: block;
}
.slider img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
}

/* About Section */
.about-section {
  padding: 60px 20px;
  background: #121212;
  color: #eee;
  text-align: center;
}
.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #00ff99;
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Projects Section */
.projects-section {
  padding: 50px 20px;
  background: #fff;
  color: #333;
  text-align: center;
}
.projects-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.project-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card img {
  width: 100%;
  display: block;
}
.project-content {
  padding: 20px;
}
.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.project-content p {
  font-size: 1rem;
  margin-bottom: 15px;
}
.project-content a.btn {
  background: #1e3c72;
}
.project-content a.btn:hover {
  background: #2a5298;
}

/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background: #1a1a1a;
  color: #eee;
  text-align: center;
}
.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #00ff99;
}
.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.contact-details a {
  color: #00ff99;
  text-decoration: none;
}
.contact-details a:hover {
  text-decoration: underline;
}

/* ✅ Mobile Fixes */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 30px 20px;
    height: auto;
  }

  .hero-right {
    display: none; /* ✅ Hide slider on mobile */
  }

  .hero-left {
    max-width: 100%;
    text-align: center;
  }

  .profile-pic {
  width: 200px;
  height: auto;
  margin: 20px auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  border-radius: 15px;
}
  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-left h2 {
    font-size: 1.3rem;
  }

  .skills-hero {
    flex-direction: column;
    align-items: center;
  }

  .skills-box {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 15px;
  }
}
