/* ============================================
   RESET & BASE STYLES
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #f72585;
  --secondary-color: #7209b7;
  --accent-color: #3a0ca3;
  --bg-dark: #0e0e0e;
  --bg-card: #1e1e1e;
  --bg-lighter: #2a2a2a;
  --text-light: #f5f5f5;
  --text-gray: #cccccc;
  --gradient: linear-gradient(135deg, #3a0ca3, #7209b7, #f72585);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

/* ============================================
   HEADER & NAVIGATION
============================================ */
header {
  background: var(--bg-card);
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo h1 {
  font-size: 1.5em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2em;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.resume-link {
  background: var(--primary-color);
  padding: 0.5em 1em;
  border-radius: 6px;
  color: var(--text-light) !important;
}

.resume-link:hover {
  background: #d01d6d;
  transform: translateY(-2px);
}

.resume-link::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-light);
  position: relative;
  transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* ============================================
   HERO SECTION
============================================ */
#hero {
  background: var(--gradient);
  text-align: center;
  padding: 6em 2em;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

#hero h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.1em;
  margin-bottom: 2em;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.btn {
  display: inline-block;
  padding: 0.8em 2em;
  margin: 0.5em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn-primary {
  background: var(--text-light);
  color: var(--accent-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* ============================================
   SECTIONS
============================================ */
section {
  padding: 5em 2em;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 1.5em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ABOUT SECTION WITH PROFILE IMAGE
============================================ */
#about {
  background: var(--bg-dark);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1em;
  color: var(--text-gray);
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1em;
}

/* About Section with Image Layout */
.about-content-with-image {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.about-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(247, 37, 133, 0.4);
}

.about-text {
  text-align: left;
  font-size: 1.05em;
  color: var(--text-gray);
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.2em;
}

/* ============================================
   PROJECT CATEGORIES
============================================ */
#projects {
  background: var(--bg-card);
}

.project-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.category-card {
  background: var(--bg-dark);
  padding: 2.5em 2em;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}

.category-card:hover::before {
  left: 0;
  opacity: 0.1;
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(247, 37, 133, 0.3);
}

.card-icon {
  font-size: 3em;
  margin-bottom: 0.3em;
  position: relative;
  z-index: 1;
}

.category-card h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.category-card p {
  color: var(--text-gray);
  position: relative;
  z-index: 1;
}

/* ============================================
   SKILLS SECTION
============================================ */
#skills {
  background: var(--bg-dark);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2em;
  margin-top: 1.5em;
}

.skill-category {
  background: var(--bg-card);
  padding: 1.2em 1.4em;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 0.7em;
  font-size: 1.1em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.skill-tags span {
  background: var(--bg-lighter);
  color: var(--text-light);
  padding: 0.3em 0.8em;
  border-radius: 20px;
  font-size: 0.85em;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tags span:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* ============================================
   CONTACT SECTION WITH FORM
============================================ */
#contact {
  background: var(--bg-dark);
  padding: 5em 2em;
}

.contact-content p {
  font-size: 1.2em;
  color: var(--text-gray);
  margin-bottom: 2em;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3em;
  max-width: 1200px;
  margin: 2em auto 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.05em;
  color: var(--text-gray);
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.3em;
  width: 30px;
}

.social-icons {
  display: flex;
  gap: 1em;
  margin-top: 1em;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3em;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

.contact-form {
  background: var(--bg-card);
  padding: 2.5em;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9em 1.2em;
  background: var(--bg-lighter);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1em;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-dark);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 1em;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg-dark);
  text-align: center;
  padding: 2em;
  color: var(--text-gray);
  border-top: 1px solid var(--bg-lighter);
}

/* ============================================
   LIGHT/DARK THEME TOGGLE
============================================ */
:root[data-theme="light"] {
  --primary-color: #d81b60;
  --secondary-color: #8e24aa;
  --accent-color: #5e35b1;
  --bg-dark: #f5f5f5;
  --bg-card: #ffffff;
  --bg-lighter: #e0e0e0;
  --text-light: #212121;
  --text-gray: #424242;
  --gradient: linear-gradient(135deg, #5e35b1, #8e24aa, #d81b60);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--text-light);
  font-size: 1.2em;
  padding: 0.4em 0.8em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

header,
.category-card,
.skill-category,
.contact-btn,
.project-card,
.cta-section,
footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 968px) {
  .about-content-with-image {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .about-text {
    text-align: center;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5em;
  }
  
  .contact-info {
    text-align: center;
    align-items: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-card);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    padding: 2em 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 1em 0;
  }
  
  #hero h2 {
    font-size: 1.8em;
  }
  
  .hero-subtitle {
    font-size: 0.95em;
  }
  
  .section-title {
    font-size: 2em;
  }
  
  .project-categories {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1em;
  }
  
  #hero {
    padding: 4em 1em;
  }
  
  #hero h2 {
    font-size: 1.5em;
  }
  
  section {
    padding: 3em 1em;
  }
  
  .about-image {
    max-width: 250px;
  }
  
  .contact-form {
    padding: 1.5em;
  }
}

/* ============================================
   PROJECT IMAGE
============================================ */
.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}