/* ==================================================
   Global Animations
================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==================================================
   Main Styles
================================================== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  scroll-behavior: smooth;
  animation: fadeIn 1s ease-out;
}

header {
  background: white;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideInDown 0.8s ease-out;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
}

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

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #6a1b9a;
}
.menu-button a {
  text-decoration: none;
  color: white;
  background-color: purple;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  position: absolute;
    top: 20px;
    left: 150px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #e0f7e9 0%, #ffffff 100%);
  padding: 100px 20px;
  text-align: center;
  animation: slideInUp 1s ease-out;
}

.hero .btn {
  background-color: #6a1b9a;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.3s;
  width: 200px;
}

.hero .btn:hover {
  background-color: #4a1170;
}

.hero h1 {
  font-size: 48px;
  color: #333;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section & Main */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1.2s ease-out;
}

section h2 {
  font-size: 36px;
  color: #6a1b9a;
  margin-bottom: 20px;
  text-align: center;
}

section p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

main {
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  animation: fadeIn 1s ease-out;
}

/* Additional Section Margin */
section {
  margin-bottom: 30px;
}

section h2 {
  margin-bottom: 10px;
  color: #444;
}

/* ==================================================
   List & Table Styles
================================================== */
ul, ol {
  margin-left: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 10px;
  text-align: left;
}

/* ==================================================
   Footer
================================================== */
.footer-section {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  animation: fadeIn 1s ease-out;
}

/* ==================================================
   Work Experience Timeline Styles
================================================== */
.timeline {
  max-width: 1200px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 20px;
}

.timeline-container {
  position: relative;
  padding-left: 20px;
}

.timeline-item {
  display: flex;
  margin-bottom: 20px;
  position: relative;
  padding-left: 40px;
  animation: fadeIn 0.8s ease-out;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 2px;
  height: 100%;
  background: #333;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-date {
  font-weight: bold;
  color: #555;
  width: 200px;
}

.timeline-content {
  background: #f9f9f9;
  padding: 10px 15px;
  border-radius: 5px;
  flex: 1;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin: 0 0 5px;
  color: #333;
}

.timeline-content p {
  margin: 0;
  color: #555;
}

/* ==================================================
   Skills Section Styling
================================================== */
#skills {
  margin: 20px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out;
}

#skills h2 {
  text-align: left;
  margin-bottom: 15px;
}

#skills h3 {
  margin-top: 10px;
  color: #444;
}

#skills ul {
  margin: 10px 0;
  padding-left: 20px;
}

#skills ul li {
  margin-bottom: 5px;
  font-size: 1.1em;
}

/* ==================================================
   Alternative Hero Styles
================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  background: white;
  max-width: 1200px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideInUp 1s ease-out;
}

.content {
  max-width: 600px;
}

.btn {
  background-color: #e0f7e9;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.hero h1 {
  font-size: 36px;
  color: #6a1b9a;
}

.hero p {
  color: #555;
  line-height: 1.6;
}

.image img {
  width: 300px;
  border-radius: 10px;
}

/* ==================================================
   Education Section
================================================== */
.education {
  max-width: 1200px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out;
}

h2 {
  text-align: center;
  color: #2c3e50;
}

.section {
  background: #ecf0f1;
  padding: 15px;
  margin: 15px 0;
  border-left: 6px solid #6a1b9a;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
  animation: fadeIn 1s ease-out;
}

.section:hover {
  transform: scale(1.02);
}

.section h3 {
  margin: 0 0 10px;
  color: #6a1b9a;
}

.section p {
  margin: 0;
  color: #2c3e50;
  line-height: 1.5;
}

/* ==================================================
   Interests and Hobbies
================================================== */
#interests-hobbies {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 20px auto;
  animation: fadeIn 1s ease-out;
}

#interests-hobbies h2 {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

#interests-hobbies ul {
  list-style-type: none;
  padding: 0;
}

#interests-hobbies li {
  font-size: 1.1rem;
  margin: 10px 0;
  line-height: 1.6;
}

#interests-hobbies li strong {
  color: #0056b3;
}

#interests-hobbies li::before {
  content: "• ";
  color: #0056b3;
  font-weight: bold;
  margin-right: 10px;
}

/* ==================================================
   Form Styles (Enhanced Contact Form)
================================================== */
form.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  animation: fadeIn 1s ease-out;
}

form.contact-form label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  border-color: #6a1b9a;
  outline: none;
  box-shadow: 0 0 5px rgba(106, 27, 154, 0.3);
}

form.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

form.contact-form button {
  background: linear-gradient(45deg, #6a1b9a, #8e24aa);
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

form.contact-form button:hover {
  background: linear-gradient(45deg, #8e24aa, #6a1b9a);
}

/* ==================================================
   Headings Styling
================================================== */
h1, h2 {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  color: #333;
}

h2 {
  font-size: 1.8rem;
  color: #444;
  margin-bottom: 15px;
}

/* ==================================================
   Table Styling (Revisited)
================================================== */
table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid #ddd;
  text-align: left;
  padding: 8px;
}

th {
  background-color: #f2f2f2;
  color: #333;
  font-weight: bold;
}

td {
  background-color: #fff;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

/* ==================================================
   Paragraph Styling
================================================== */
p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.6;
}

/* ==================================================
   Links Styling
================================================== */
a {
  color: #3498db;
  text-decoration: none;
  text-align: center;
}

a:hover {
  text-decoration: underline;
}

/* ==================================================
   Image Container (General)
================================================== */
.image-container {
  text-align: center;
  margin-bottom: 30px;
}

/* ==================================================
   Body and Container Overrides
================================================== */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out;
}

/* ==================================================
   Image Container (Specific)
================================================== */
.image-container {
  text-align: center;
  margin-bottom: 1rem;
}

.image-container img {
  max-width: 150px;
  height: auto;
  display: inline-block;
}
/*for images*/


.container {
  display: flex;
  flex-wrap: wrap; /* Optional: allows wrapping on smaller screens */
  gap: 10px;       /* Optional: adds space between images */
  justify-content: center; /* Or use 'flex-start', 'space-around', etc. */
}

.image-container1 {
  /* Optional: you can adjust margins or widths as needed */
  flex: 1;  /* This will allow each container to grow equally */
  max-width: 400px; /* Set a maximum width for each image container */
}

.image-container1 img {
  width: 300px; /* Adjust size as needed */
  height: auto;
  display: block;
}

/* ==================================================
   Headings Overrides
================================================== */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #222;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #444;
  border-left: 4px solid #0066cc;
  padding-left: 0.5rem;
  text-align: left;
}

/* ==================================================
   Paragraph Overrides
================================================== */
p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ==================================================
   Table Styling (Alternative)
================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #f0f0f0;
  font-weight: 600;
}

/* ==================================================
   Responsive Layout
================================================== */
@media screen and (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav li {
    margin: 0.5rem 0;
  }
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 100px;
  display: none; /* Hidden by default */
  background-color: #050606;
  color: rgb(239, 239, 239);
  border: none;
  width: 60px;  /* Set width */
  height: 60px; /* Set height */
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%; /* Makes it round */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s;
}

#backToTop:hover {
  background-color: #ad0dd9;
  transform: scale(1.1); /* Slightly enlarges on hover */
}


.parent {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(9, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  }
  
  .div1 { grid-area: 1 / 2 / 6 / 5; }
  .div2 { grid-area: 1 / 5 / 6 / 8; }
  .div3 { grid-area: 6 / 2 / 10 / 5; }
  .div4 { grid-area: 6 / 5 / 10 / 8; }


/* Container for the translation buttons */
.translation-buttons {
  text-align: right;
  margin: 10px 20px;
}

/* Styling for each translation button */
.translation-buttons button {
  background-color: #007BFF; /* Blue background */
  color: #ffffff; /* White text */
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effects for a nicer feel */
.translation-buttons button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* Focus outline for accessibility */
.translation-buttons button:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}
