/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Body Styling */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Always-visible Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #2196f3;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  background-color: #0d8ae3;
  transform: scale(1.1);
}

/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #222;
  color: white;
}

.logo {
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00bcd4;
}

/* Hero Section Styling */
.hero {
  background: linear-gradient(to right, #00bcd4, #2196f3);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-text h2 {
  font-size: 2.5rem;
}

.highlight {
  color: #ffeb3b;
}

/* About, Experience, Skills, Contact Shared Section Styling */
.about,
.Experience,
.skills,
.contact {
  padding: 3rem 2rem;
  max-width: 960px;
  margin: auto;
}

/* About Section Flex Layout */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive: stack text above image on small screens */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Download CV Button Styling */
.btn-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #2196f3;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #0d8ae3;
}

/* Experience Grid Layout */
.Experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Individual Project Card Styling */
.Experience-card {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.Experience-card h3 {
  margin-bottom: 0.5rem;
}

.Experience-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #2196f3;
  text-decoration: none;
}

/* Skills List Styling */
.skills ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.skills li {
  background-color: #e0f7fa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Contact Form Styling */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact button {
  padding: 0.8rem;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #0097a7;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #222;
  color: white;
  margin-top: 2rem;
}

/* Footer Social Icons */
.footer-socials {
  margin-bottom: 0.5rem;
}

.footer-socials a {
  margin: 0 0.5rem;
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #00bcd4;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-text h2 {
    font-size: 2rem;
  }
}
