:root {
  --primary: #007ced;
  --bg: #ffffff;
  --text: #222222;
  --light: #e5e5e5;
  --accent: #007ced;
  --box: #dddddd;
  --shadow: rgba(0, 0, 0, 0.1);
  --btn-bg: #333333;
  --btn-text: #ffffff;
}

[data-theme="dark"] {
  --bg: #0d0d12;
  --text: #e5e5e5;
  --box: #444444;
  --shadow: rgba(0, 0, 0, 0.5);
  --btn-bg: #ffffff;
  --btn-text: #222222;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Layout */
.hero-header {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
}

.wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
}

/* Header Navigation */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo i {
  height: 40px;
  width: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.logo .logo-text {
  margin-left: 10px;
  font-weight: 600;
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--primary);
  border-radius: 50%;
  padding: 8px;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.theme-toggle:hover {
  background-color: var(--primary);
  color: white;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
}

.left-header {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* Hero Section */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.hero-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--box);
  margin-bottom: 20px;
}

.hero-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-pic img:hover {
  transform: scale(1.1);
}

.hero-text h5 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* Buttons */
.btn-group {
  margin-top: 20px;
  margin-bottom: 0;
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  background: var(--btn-bg);
  color: var(--btn-text);
  margin: 5px;
  border: 1px solid var(--light);
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--primary);
  color: white;
}

.btn.active {
  border-color: var(--primary);
}

/* Sections */
.section {
  padding: 40px 0 30px;
}

.last-section {
  padding-bottom: 60px;
}

.social a {
  color: var(--text);
  font-size: 20px;
  margin: 0 10px;
  transition: 0.4s;
}

.social a:hover {
  color: var(--primary);
}

/* Scroll To Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 100;
  background-color: var(--primary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 4px 10px var(--shadow);
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  background-color: var(--accent);
}


.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('images/project1.jpg'); /* your project image */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  width: 280px;
  height: 360px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  position: relative;
  box-shadow: 0 4px 10px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  transition: background 0.4s ease;
  border-radius: 12px;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px var(--shadow);
}

.project-card:hover::before {
  background: rgba(0, 0, 0, 0.3); /* reduce overlay darkness on hover */
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--primary);
}

.card-content p {
  font-size: 1rem;
  color: #ddd;
}
/*Resume Cards*/
.resume-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.resume-card {
  width: 280px;
  background-color: var(--box);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px var(--shadow);
  text-align: left;
}

.resume-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .projects,
  .resume-cards {
    flex-direction: column;
    align-items: center;
  }

  .project-card,
  .resume-card {
    width: 90%;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    margin-top: 20px;
  }

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

  .hero-text p {
    font-size: 1rem;
    padding: 0 10px;
  }
}

@media screen and (max-width: 500px) {
  #scrollToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

.btn {
  white-space: nowrap;
  text-align: center;
}

.view-more {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.view-more .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid var(--light);
  background-color: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 4px 10px var(--shadow);
  transition: 0.3s ease;
}

.view-more .btn:hover {
  background-color: var(--primary);
  color: white;
}

#portfolio.section {
  padding-bottom: 60px;
}

.resume-buttons {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.resume-buttons .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid var(--light);
  background-color: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 4px 10px var(--shadow);
  transition: 0.3s ease;
}

.resume-buttons .btn:hover {
  background-color: var(--primary);
  color: white;
}

@media screen and (max-width: 768px) {
  nav ul li {
    padding: 5px 0;
  }
}

[data-theme="dark"] .resume-card {
  background-color: #2a2a2a;
}
