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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Header + Hero */
header {
  background: linear-gradient(to right, #1a1a1a, #444);
  color: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}


header p {
  font-size: 1.2rem;
}

.fade-in:hover,
.slide-in:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Header + Hero */
header {
  background: linear-gradient(to right, #1a1a1a, #444);
  color: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}


header p {
  font-size: 1.2rem;
}


/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Apply Animations */
.fade-in {
  animation: fadeIn 1.5s ease-in-out forwards;
  opacity: 0;
}

.slide-in {
  animation: slideIn 2s ease-in-out forwards;
  opacity: 0;
}

/* Optional: Delay second animation */
.slide-in {
  animation-delay: 0.5s;
}

.fade-in:hover,
.slide-in:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Common animation classes */
.fade-in-on-scroll {
  opacity: 0;
  transition: all 0.5s ease-out;
}

.slide-in-on-scroll {
  opacity: 0;
  transition: all 0.5s ease-out;
}

/* Triggered when in viewport */
.animate.in-view.fade-in-on-scroll {
  animation: fadeIn 1.5s forwards;
}

.animate.in-view.slide-in-on-scroll {
  animation: slideIn 1.5s forwards;
}

/* Navigation */
n/* Responsive Navigation - Pure CSS */

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Hide the checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger icon styling */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* Desktop view */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background-color: #222;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #444;
    z-index: 999;
  }

  /* Show menu when checkbox is checked */
  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px;
    width: 100%;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .nav-links a:hover {
    background-color: #444;
  }
}
/* Sections */
section {
  background-color: white;
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

section p, section li, section a {
  font-size: 1rem;
  margin-bottom: 10px;
}

section ul {
  padding-left: 20px;
}

section ul li {
  margin-bottom: 5px;
}

/* Education CV Download Button */
a[download] {
  display: inline-block;
  margin-top: 10px;
  background-color: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

a[download]:hover {
  background-color: #555;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #333;
  outline: none;
}

button {
  background-color: #1a1a1a;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #444;
}

/* Contact Info Links */
#contact p a {
  color: #1a73e8;
  text-decoration: none;
}

#contact p a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #eee;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  margin-top: 40px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  section {
    margin: 20px 10px;
    padding: 20px;
  }

  input, textarea, button {
    font-size: 1em;
  }
}
.profile-image{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4CAF50;
    margin-right: 20px;
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.about-text {
    max-width: 600px;
    text-align: center;
}
/* Navigation */
nav {
  background-color: #222;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav li {
  display: inline-block;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: #555;
}

/* Sections */
section {
  background-color: white;
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

section p, section li, section a {
  font-size: 1rem;
  margin-bottom: 10px;
}

section ul {
  padding-left: 20px;
}

section ul li {
  margin-bottom: 5px;
}

/* Education CV Download Button */
a[download] {
  display: inline-block;
  margin-top: 10px;
  background-color: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

a[download]:hover {
  background-color: #555;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #333;
  outline: none;
}

button {
  background-color: #1a1a1a;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #444;
}

/* Contact Info Links */
#contact p a {
  color: #1a73e8;
  text-decoration: none;
}

#contact p a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #eee;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  margin-top: 40px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  section {
    margin: 20px 10px;
    padding: 20px;
  }

  input, textarea, button {
    font-size: 1em;
  }
}
.profile-image{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4CAF50;
    margin-right: 20px;
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.about-text {
    max-width: 600px;
    text-align: center;
}
