/* ================================
   1. Reset & Global Styles
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f172a;
  color: #e2e8f0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

section {
  padding: 80px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #38bdf8;
  text-align: center;
}

p {
  color: #cbd5e1;
}

ul {
  padding-left: 20px;
}

li {
  line-height: 1.8;
}

/* ================================
   2. Header / Navigation
================================ */
header {
  width: 100%;
  padding: 20px 0;
  background-color: #020617;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1e293b;
  backdrop-filter: blur(10px);
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.logo h1 {
  font-size: 1.5rem;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

nav a:hover {
  color: #38bdf8;
}

/* Theme toggle button */
#theme-toggle {
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  border-radius: 14px;
  color: #e2e8f0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background-color: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
}

#theme-toggle svg {
  width: 26px;
  height: 26px;
}

/* ================================
   3. Home Section
================================ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
}

.home-text {
  flex: 1.3;
  text-align: left;
}

.home-text h2 {
  font-size: 3.4rem;
  text-align: left;
  margin-bottom: 20px;
}

.home-text h3 {
  font-size: 1.8rem;
  color: #38bdf8;
  margin-bottom: 25px;
}

.home-text p {
  margin-bottom: 20px;
  max-width: 600px;
}

.home-buttons {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.home-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.home-image img {
  width: 350px;
  max-width: 100%;
  border-radius: 20px;
  border: 3px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ================================
   4. About Section
================================ */
#about {
  background-color: #111827;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 320px;
  max-width: 100%;
  border-radius: 20px;
  border: 3px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
  flex: 1.4;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ================================
   5. Skills Section
================================ */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.skill-category {
  flex: 1 1 250px;
  background-color: #1e293b;
  padding: 30px;
  border-radius: 18px;
}

.skill-category h3 {
  margin-bottom: 20px;
  color: #38bdf8;
}

.skill-category ul {
  list-style: none;
  padding-left: 0;
}

.skill-category li {
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* ================================
   6. Resume Section
================================ */
#resume {
  background-color: #111827;
}

.resume-subsection {
  margin-top: 60px;
}

.resume-subtitle {
  font-size: 1.8rem;
  color: #38bdf8;
  margin-bottom: 30px;
}

/* Academic Studies */
.academic-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.academic-card {
  width: 100%;
  background-color: #1e293b;
  padding: 35px;
  border-radius: 18px;
}

.academic-date,
.experience-date,
.training-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 18px;
}

.academic-date i,
.experience-date i,
.training-date i {
  color: #38bdf8;
  margin-right: 8px;
}

.academic-card h3,
.experience-card h3,
.training-card h3 {
  color: #38bdf8;
  margin-bottom: 18px;
}

.academic-card h3 {
  font-size: 1.6rem;
}

.academic-tags,
.training-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.academic-tags span,
.training-tags span {
  background-color: #334155;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.academic-university {
  color: #38bdf8 !important;
  font-weight: 500;
}

/* Professional Experience */
.experience-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.experience-card {
  background-color: #1e293b;
  padding: 30px;
  border-radius: 18px;
}

.experience-card h3 {
  font-size: 1.3rem;
}

.experience-card p {
  color: #cbd5e1;
}

/* Technical Training */
.training-container {
  margin-top: 20px;
}

.training-card {
  background-color: #1e293b;
  padding: 35px;
  border-radius: 18px;
}

.training-card h3 {
  font-size: 1.5rem;
}

.training-location {
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 15px;
}

.training-description {
  margin-bottom: 25px;
  color: #cbd5e1;
  line-height: 1.8;
}

/* Languages & Hobbies */
.language-hobby-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.language-hobby-column .resume-subtitle {
  margin-bottom: 25px;
}

.language-card,
.hobby-card {
  background-color: #1e293b;
  padding: 35px;
  border-radius: 18px;
  height: fit-content;
}

.language-block {
  margin-bottom: 28px;
}

.language-block:last-child {
  margin-bottom: 0;
}

.language-block h5 {
  color: #38bdf8;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.language-block p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
}

.hobby-card ul {
  list-style: none;
  padding-left: 0;
}

.hobby-card li {
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.hobby-card li:last-child {
  margin-bottom: 0;
}

/* Resume Download */
.resume-download {
  width: 100%;
  margin-top: 60px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ================================
   7. Projects Section
================================ */
#projects {
  padding-top: 80px;
  padding-bottom: 80px;
}

.projects-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.project-card {
  background-color: #1e293b;
  padding: 40px;
  border-radius: 20px;
  max-width: 750px;
  width: 100%;
}

.project-card h3 {
  margin-bottom: 20px;
  color: #38bdf8;
  font-size: 1.5rem;
}

.project-card p {
  margin-bottom: 20px;
  color: #cbd5e1;
  line-height: 1.8;
}

/* ================================
   8. Contact Section
================================ */
#contact {
  background-color: #111827;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 50px;
}

.contact-form {
  flex: 1 1 500px;
}

.contact-details {
  flex: 1 1 300px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  gap: 18px;
}

.form-group {
  flex: 1;
}

label {
  display: none;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 6px;
  background-color: #1e293b;
  color: #e2e8f0;
  font-size: 1rem;
}

textarea {
  min-height: 200px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid #38bdf8;
}

.contact-form button {
  background-color: #38bdf8;
  color: #0f172a;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  cursor: pointer;
  width: fit-content;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #0ea5e9;
  transform: translateY(-2px);
}

.contact-details h3 {
  color: #38bdf8;
  margin-bottom: 25px;
}

.contact-item {
  margin-bottom: 35px;
}

.contact-item h4 {
  color: #38bdf8;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.contact-item p {
  font-size: 1.1rem;
}

.contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-item a:hover {
  color: #38bdf8;
}

/* ================================
   9. Footer
================================ */
footer {
  background-color: #020617;
  padding: 50px 0 25px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-text {
  max-width: 600px;
}

.footer-text h2 {
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.footer-links a {
  width: 50px;
  height: 50px;
  background-color: #1e293b;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #cbd5e1;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background-color: #38bdf8;
  color: #0f172a;
  transform: translateY(-4px);
}

.copyright {
  margin-top: 25px;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ================================
   10. Buttons & Shared Cards
================================ */
.home-buttons a,
.resume-download a {
  display: inline-block;
  text-decoration: none;
  background-color: #38bdf8;
  color: #0f172a;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.3s ease;
}

.home-buttons a:hover,
.resume-download a:hover {
  background-color: #0ea5e9;
  transform: translateY(-2px);
}

.skill-category,
.academic-card,
.experience-card,
.training-card,
.language-card,
.hobby-card,
.project-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
}

.skill-category:hover,
.academic-card:hover,
.experience-card:hover,
.training-card:hover,
.language-card:hover,
.hobby-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ================================
   11. Large Tablets / Small Laptops
================================ */
@media (max-width: 1024px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-content {
    gap: 50px;
  }

  .home-text h2 {
    font-size: 3rem;
  }

  .home-image img {
    width: 300px;
  }

  .about-container {
    gap: 35px;
  }
}

/* ================================
   12. Tablets & Mobile
================================ */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  h2 {
    font-size: 2.1rem;
  }

  .header-container {
    flex-direction: column;
    gap: 18px;
  }

  nav {
    gap: 18px;
  }

  #home {
    min-height: auto;
  }

  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .home-text {
    text-align: center;
  }

  .home-text h2 {
    font-size: 2.5rem;
    text-align: center;
  }

  .home-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .home-buttons {
    justify-content: center;
  }

  .home-image img {
    width: 260px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 260px;
  }

  .skills-container,
  .contact-container {
    flex-direction: column;
  }

  .experience-container,
  .language-hobby-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .resume-download {
    justify-content: center;
  }

  .contact-form button {
    align-self: center;
  }
}

/* ================================
   13. Small Mobile Phones
================================ */
@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .container {
    width: 92%;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  #theme-toggle {
    width: 44px;
    height: 44px;
  }

  #theme-toggle svg {
    width: 22px;
    height: 22px;
  }

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

  .home-text h3 {
    font-size: 1.4rem;
  }

  .home-buttons,
  .resume-download {
    flex-direction: column;
    align-items: center;
  }

  .home-buttons a,
  .resume-download a {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }

  .home-image img,
  .about-image img {
    width: 220px;
  }

  .skill-category,
  .academic-card,
  .experience-card,
  .training-card,
  .language-card,
  .hobby-card,
  .project-card {
    padding: 25px;
  }

  .resume-subtitle {
    font-size: 1.5rem;
  }

  .academic-card h3,
  .training-card h3 {
    font-size: 1.3rem;
  }

  .footer-links a {
    width: 44px;
    height: 44px;
  }
}