* {
  /* Reset all elements to have no margin or padding */
  /* and set box-sizing to border-box for consistent sizing */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
  background-attachment: fixed;
  color: white;
  font-family: "Lato", "Open Sans", "Roboto", sans-serif;
  line-height: 1.6;
}

/* Header and Navigation */
.header {
  background-color: rgba(30, 30, 30, 0.95);
  border-bottom: 3px solid #0066cc;
  padding: 20px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left side of nav */
.left-div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.left-div img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0066cc;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: #0066cc;
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
  }
  50% {
    border-color: #00a3ff;
    box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.2);
  }
}

.left-div a {
  color: #0066cc;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.left-div a:hover {
  color: #00a3ff;
}

/* Right side nav links */
.right-div {
  display: flex;
  align-items: center;
}

.header-links {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

.header-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-links li a:hover {
  color: #00a3ff;
  background-color: rgba(0, 102, 204, 0.1);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger-menu span {
  width: 30px;
  height: 3px;
  background-color: #0066cc;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu:hover span {
  background-color: #00a3ff;
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
  width: 100%;
  max-width: 900px;
  margin: 3rem auto;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.05) 0%,
    rgba(0, 163, 255, 0.05) 100%
  );
  border-radius: 15px;
  border: 1px solid rgba(0, 102, 204, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Home Section */
.home-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.home-img {
  margin-bottom: 30px;
}

.home-img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0066cc;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  transition: transform 0.3s ease;
}

.home-img img:hover {
  transform: scale(1.05);
}

.home-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 800;
}

.home-location {
  font-size: 1.1rem;
  color: #00a3ff;
  font-weight: 600;
  margin-bottom: 15px;
}

.home-description1 {
  font-size: 1.2rem;
  color: #00a3ff;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.home-description2 {
  font-size: 1rem;
  color: #d0d0d0;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* About Section */
.about-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  }

.underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0066cc 0%, #00a3ff 100%);
  margin-bottom: 30px;
  border-radius: 2px;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 0 0 60%;
}

.about-text p {
  font-size: 1rem;
  color: #d0d0d0;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  border: 3px solid #0066cc;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  transition: transform 0.3s ease;
  object-fit: cover;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* Mobile responsiveness for About Section */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .about-image {
    flex: 1 1 100%;
  }

  .about-image img {
    max-width: 200px;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about-section h2 {
    font-size: 1.3rem;
  }

  .underline {
    width: 50px;
    height: 2px;
  }

  .about-content {
    gap: 20px;
  }

  .about-image img {
    max-width: 180px;
  }

  .about-text p {
    font-size: 0.9rem;
  }
}

/* Projects Section */
.projects-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.projects-section h2 {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

/* Project Card */
.project-card {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.08) 0%,
    rgba(0, 163, 255, 0.08) 100%
  );
  border: 2px solid rgba(0, 102, 204, 0.3);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: rgba(0, 163, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.2);
  transform: translateY(-2px);
}

/* Project Header */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.project-title-group h3 {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 5px;
}

.project-subtitle {
  font-size: 0.9rem;
  color: #00a3ff;
  font-weight: 500;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* status-dot-1 is for under construction text on in progress projects that are on the website */
.status-dot-1 {
  width: 8px;
  height: 8px;
  background-color: #ffff00;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-text-1 {
  font-size: 0.75rem;
  color: #ffff00;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.status-text {
  font-size: 0.75rem;
  color: #00ff88;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Project Description */
.project-description {
  font-size: 1rem;
  color: #d0d0d0;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Environment Cards */
.project-environments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.environment-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  border: 2px solid;
  transition: all 0.3s ease;
}

.dev-env {
  border-color: rgba(147, 51, 234, 0.4);
}

.dev-env:hover {
  border-color: rgba(147, 51, 234, 0.7);
  background: rgba(147, 51, 234, 0.05);
}

.staging-env {
  border-color: rgba(249, 115, 22, 0.4);
}

.staging-env:hover {
  border-color: rgba(249, 115, 22, 0.7);
  background: rgba(249, 115, 22, 0.05);
}

.prod-env {
  border-color: rgba(34, 197, 94, 0.4);
}

.prod-env:hover {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.05);
}

.env-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.env-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.dev-env .env-icon {
  background: rgba(147, 51, 234, 0.2);
  color: #a78bfa;
}

.staging-env .env-icon {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.prod-env .env-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.env-title {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
}

.env-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.env-features li {
  font-size: 0.85rem;
  color: #d0d0d0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.env-features li::before {
  content: "•";
  color: #00a3ff;
  font-weight: bold;
  flex-shrink: 0;
}

/* Project Achievements */
.project-achievements {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.project-achievements h4 {
  font-size: 0.85rem;
  color: #00a3ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #d0d0d0;
}

.achievement-item i {
  color: #00ff88;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Tech Stack Badges */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-gitlab {
  background: rgba(252, 109, 38, 0.2);
  color: #fc9867;
  border: 1px solid rgba(252, 109, 38, 0.3);
}

.tech-gitlab:hover {
  background: rgba(252, 109, 38, 0.3);
  border-color: rgba(252, 109, 38, 0.5);
}

.tech-docker {
  background: rgba(33, 150, 243, 0.2);
  color: #64b5f6;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.tech-docker:hover {
  background: rgba(33, 150, 243, 0.3);
  border-color: rgba(33, 150, 243, 0.5);
}

.tech-terraform {
  background: rgba(147, 51, 234, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.tech-terraform:hover {
  background: rgba(147, 51, 234, 0.3);
  border-color: rgba(147, 51, 234, 0.5);
}

.tech-proxmox {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tech-proxmox:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.5);
}
.tech-portainer {
  background: rgba(19, 190, 249, 0.4);
  color: #13BEF9;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.tech-portainer:hover {
  background: rgba(19, 190, 249, 0.5);
  border-color: rgba(19, 190, 249, 0.5);
}

/* Project Links */
.project-links {
  display: flex;
  gap: 15px;
}

.project-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 2px solid;
}

.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  border-color: #0066cc;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00a3ff 0%, #0066cc 100%);
  border-color: #00a3ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Mobile Responsive for Projects */
@media (max-width: 768px) {
  .projects-section h2 {
    font-size: 1.5rem;
  }

  .project-card {
    padding: 20px;
  }

  .project-header {
    flex-direction: column;
    gap: 10px;
  }

  .project-title-group h3 {
    font-size: 1.3rem;
  }

  .project-environments {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-direction: column;
  }

  .project-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .projects-section h2 {
    font-size: 1.3rem;
  }

  .project-title-group h3 {
    font-size: 1.1rem;
  }

  .project-subtitle {
    font-size: 0.85rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .project-card {
    padding: 15px;
  }

  .project-achievements {
    padding: 15px;
  }

  .env-features li {
    font-size: 0.8rem;
  }
}

/* Contact Section */
.contact-section {
  margin-top: 2rem;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
}

.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-links li {
  width: 100%;
}

.social-links li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  border: 2px solid #0066cc;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-links li a:hover {
  background: linear-gradient(135deg, #00a3ff 0%, #0066cc 100%);
  border-color: #00a3ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.social-links li a:focus {
  outline: 2px solid #00a3ff;
  outline-offset: 2px;
}

/* Footer */
.Footer {
  background-color: rgba(30, 30, 30, 0.95);
  border-top: 3px solid #0066cc;
  padding: 20px;
  text-align: center;
  color: #00a3ff;
  font-weight: 600;
  margin-top: 3rem;
}

/* Dark Mode Toggle */
.header-links li:has(.dark-mode-toggle) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
}

.dark-mode-toggle input[type="checkbox"] {
  display: none;
}

.dark-mode-toggle label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: #4a4a4a;
  border-radius: 13px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Theme Icon Styles */
.theme-icon-container {
  margin-left: 15px;
  font-size: 1.2rem;
}

.moon-icon {
  display: inline-block;
  color: #f1c40f;
}

.sun-icon {
  display: none;
  color: #f39c12;
}

body.dark-mode .moon-icon {
  display: none;
}

body.dark-mode .sun-icon {
  display: inline-block;
}

.dark-mode-toggle label::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.dark-mode-toggle input[type="checkbox"]:checked + label {
  background-color: #00a3ff;
}

.dark-mode-toggle input[type="checkbox"]:checked + label::after {
  transform: translateX(24px);
}

/* Dark Mode Styles */
body.dark-mode {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #333;
}

body.dark-mode .header {
  background-color: rgba(245, 245, 245, 0.95);
  border-bottom: 3px solid #0066cc;
  color: #333;
}

body.dark-mode .left-div a {
  color: #0066cc;
}

body.dark-mode .header-links li a {
  color: #333;
}

body.dark-mode .hamburger-menu span {
  background-color: #0066cc;
}

body.dark-mode main {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 163, 255, 0.05) 100%);
  border: 1px solid rgba(0, 102, 204, 0.2);
  color: #333;
}

body.dark-mode .home-section h1 {
  color: #333;
}

body.dark-mode .home-location {
  color: #0066cc;
}

body.dark-mode .home-description1 {
  color: #0066cc;
}

body.dark-mode .home-description2 {
  color: #555;
}

body.dark-mode .about-section h2 {
  color: #333;
}

body.dark-mode .about-text p {
  color: #555;
}

body.dark-mode .projects-section h2 {
  color: #333;
}

body.dark-mode .project-card {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 163, 255, 0.08) 100%);
  border: 2px solid rgba(0, 102, 204, 0.3);
  color: #333;
}

body.dark-mode .project-title-group h3 {
  color: #333;
}

body.dark-mode .project-subtitle {
  color: #0066cc;
}

body.dark-mode .project-description {
  color: #555;
}

body.dark-mode .env-title {
  color: #333;
}

body.dark-mode .env-features li {
  color: #555;
}

body.dark-mode .achievement-item {
  color: #555;
}

body.dark-mode .contact-section h2 {
  color: #333;
}

body.dark-mode .Footer {
  background-color: rgba(245, 245, 245, 0.95);
  border-top: 3px solid #0066cc;
  color: #0066cc;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .right-div {
    width: 100%;
  }

  .header-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    background-color: rgba(0, 102, 204, 0.1);
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    position: absolute;
    top: 100%;
    left: 30px;
    right: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .header-links.open {
    display: flex;
  }

  .header-links li a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  main {
    margin: 2rem 15px;
    padding: 30px 20px;
  }

  .home-section h1 {
    font-size: 2rem;
  }

  .home-img img {
    width: 110px;
    height: 110px;
  }

  .contact-section h2 {
    font-size: 1.5rem;
  }

  .social-links li a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 15px 20px;
  }

  .left-div img {
    width: 40px;
    height: 40px;
  }

  .left-div a {
    font-size: 1.2rem;
  }

  .header-links {
    left: 15px;
    right: 15px;
  }

  main {
    margin: 1.5rem 10px;
    padding: 20px 15px;
    max-width: 100%;
  }

  .home-section h1 {
    font-size: 1.5rem;
  }

  .home-img img {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }

  .home-location {
    font-size: 0.95rem;
  }

  .home-description1 {
    font-size: 1rem;
  }

  .home-description2 {
    font-size: 0.9rem;
  }

  .contact-section h2 {
    font-size: 1.3rem;
  }

  .social-links {
    gap: 12px;
  }

  .social-links li a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
