/* Define color variables for consistency */
:root {
  --primary-color: #d63384;
  --secondary-color: #ff69b4;
  --accent-color: #ffb6c1;
  --dark-color: #333;
  --light-color: #fafafa;
  --text-color: #555;
  --box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  background: var(--light-color);
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* Navigation */
nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.1);
}
.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li {
  margin-left: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ffe4e1, #fff0f5);
  padding: 3rem 0;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* Align items at the top */
  justify-content: center;
}

.hero-about {
  flex: 1 1 300px;
  padding: 1rem 2rem;
  text-align: left; /* Ensures text starts at the same left as the image */
}

.hero-about h2 {
  font-size: 3rem; /* Increased font size from 2.5rem */
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero-about p {
  font-size: 1.3rem; /* Increased font size from 1.1rem */
  color: var(--text-color);
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
  margin-bottom: 1rem;
}
.hero-image img {
  width: 50%;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease; /* Transition on transform */
}

.hero-image img:hover {
  transform: scale(0.95); /* Scale down by 5% on hover */
}

/* Section Headings */
section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
  position: relative;
}
section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  display: block;
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* Experience Cards */
.experience-card {
  display: flex;
  align-items: center; /* Center children vertically */
  flex-wrap: wrap;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}
.experience-image {
  flex: 1 1 250px;
  max-width: 250px;
}
.experience-image img {
  padding: 20px;
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.experience-image img:hover {
  transform: scale(1.02);
}
.experience-details {
  flex: 2 1 300px;
  padding: 1.5rem;
}
.experience-details h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.experience-details p,
.experience-details ul {
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 0.95rem;
}
.experience-details ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

/* Resume Section */
.resume iframe {
  border: none;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

/* Contact */
.contact {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.contact p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.contact a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.contact a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  background: #fff;
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}
footer p {
  color: #777;
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-container, .experience-card {
    flex-direction: column;
    align-items: center;
  }
  .hero-about, .hero-image, .experience-details, .experience-image {
    text-align: center;
  }
}