/* =============== RESET =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =============== THEME VARIABLES =============== */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --primary-color: #007bff;
  --accent-color: #6a11cb;
  --header-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --primary-color: #1e90ff;
  --accent-color: #bb86fc;
  --header-gradient: linear-gradient(135deg, #bb86fc 0%, #3700b3 100%);
}

/* =============== BASE STYLES =============== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.4s, color 0.4s;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* =============== HEADER =============== */
header {
  background: var(--header-gradient);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

.name-tagline {
  display: flex;
  flex-direction: column;
}

#name {
  font-size: 1.4rem;
  font-weight: bold;
}

#tagline {
  font-size: 0.95rem;
  font-style: italic;
}

/* =============== NAVIGATION =============== */
.nav-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-bar a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.nav-bar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* =============== CONTROLS =============== */
.controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#lang-switcher, #theme-toggle {
  padding: 6px 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  background: white;
  color: var(--accent-color);
}

#theme-toggle {
  background: var(--primary-color);
  color: white;
}

/* =============== SECTIONS =============== */
.section {
  padding: 4rem 0;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 1rem;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  background-color: #0056b3;
}

/* =============== SKILLS LIST =============== */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.skills-list li {
  background: var(--primary-color);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
}

/* =============== GALLERY / PROJECTS =============== */
.gallery-grid, .projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.gallery-item, .project-item {
  width: 260px;
}

.gallery-item img, .project-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-item {
  background: var(--bg-color);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.project-item:hover {
  transform: translateY(-5px);
}


/* =============== CONTACT =============== */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  max-width: 500px;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* =============== CHATBOX =============== */
#chatbox {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#chat-messages {
  max-height: 300px;
  overflow-y: auto;
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.chat-message {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin: 0.4rem 0;
  max-width: 80%;
  word-break: break-word;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-message.user-message {
  background-color: #eee;
}

.chat-message.admin-message {
  background-color: #007bff;
  color: white;
  margin-left: auto;
}

.delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* =============== LOGIN & SIGNUP BOX =============== */
#user-login {
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#user-login input,
#user-login button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#user-login button {
  background-color: #4285F4;
  color: white;
  border: none;
  transition: background 0.3s ease;
}

#user-login button:hover {
  background-color: #3367D6;
}

/* =============== LOGIN REMINDER BOX =============== */
.reminder-box {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 1rem 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* =============== FOOTER =============== */
.footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #ccc;
}

/* =============== RESPONSIVE FIXES =============== */
@media (max-width: 768px) {
  header {
    position: relative;
    padding: 0.3rem 0;
  }

  .header-container,
  .header-left,
  .nav-bar,
  .gallery-grid,
  .projects-grid,
  .skills-list,
  .social-buttons {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic {
    width: 45px;
    height: 45px;
  }

  #name {
    font-size: 1rem;
  }

  #tagline {
    font-size: 0.75rem;
  }

  .nav-bar a {
    font-size: 0.85rem;
    padding: 4px 6px;
  }

  .controls {
    flex-direction: column;
    gap: 0.3rem;
  }

  #lang-switcher,
  #theme-toggle {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
}
  .notification {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 300px;
    max-width: 90%;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ff4444 !important;              /* Bright red text */
    background-color: #000000 !important;    /* Pure black background */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    border: 2px solid #ff4444;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.4s ease, transform 0.3s ease;
  }
  
  /* Show state */
  .notification.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.05);
  }
  
  .notification .icon {
    font-size: 22px;
    color: #ff4444 !important;
  }
  
  .notification .message {
    flex: 1;
  }
  
  .notification .close-btn {
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    color: #ff4444 !important;
  }
  /* Comment Section */
#guestbook {
  margin-top: 3rem;
}

#comment-form {
  margin-bottom: 2rem;
  text-align: left;
  max-width: 600px;
  margin-inline: auto;
}

#comment-form input,
#comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 6px;
  margin-bottom: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
}

#comment-list {
  max-width: 800px;
  margin: auto;
  text-align: left;
}

.comment-entry {
  border-top: 1px solid var(--border-color, #ccc);
  padding: 1rem 0;
}

.comment-entry strong {
  color: var(--primary-color);
}

.admin-reply {
  margin-top: 0.5rem;
  padding: 0.8rem;
  background-color: #f0f8ff;
  border-left: 4px solid var(--primary-color);
  font-style: italic;
  border-radius: 4px;
}
/* Make the video section pop visually */
/* Project Video Container */
.standout-video {
  grid-column: span 2;
  background: linear-gradient(to right, #e0f2ff, #ffffff);
  border: 2px solid #007acc;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 122, 204, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.standout-video:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 122, 204, 0.3);
}

/* Responsive YouTube video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* YouTube-styled Button */
.youtube-btn {
  display: inline-block;
  background-color: #ff0000;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.youtube-btn:hover {
  background-color: #cc0000;
}
/* =============== SNAKE GAME =============== */


.snake-container {
  margin-top: 2rem;
  text-align: center;
}


.snake-iframe {
  width: 100%;
  max-width: 800px;
  height: 620px;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
button:focus, a:focus, input:focus, textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* Chatbox Styling */
#chatbox {
  max-width: 600px;
  margin: auto;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#chat-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  background-color: #fff;
  border-radius: 8px;
}

/* Message Bubble Styles */
.chat-message {
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-message {
  background: #e1f5fe;
  text-align: left;
}

.admin-message {
  background: #fff3e0;
  font-weight: bold;
}

.delete-btn {
  background: transparent;
  border: none;
  color: red;
  cursor: pointer;
  margin-left: 1rem;
}

#chat-input {
  width: 75%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#chat-form .btn {
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  border-radius: 8px;
  border: none;
  background-color: #42a5f5;
  color: #fff;
  cursor: pointer;
}

#chat-form .btn:hover {
  background-color: #1e88e5;
}

/* Typing Indicator */
.typing-indicator {
  font-size: 0.9rem;
  color: #888;
  margin-top: -10px;
  padding: 4px;
}

/* Notification Styling */
.notification {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #323232;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  z-index: 1000;
  align-items: center;
  gap: 10px;
}

.notification .close-btn {
  margin-left: 10px;
  cursor: pointer;
}

.notification .icon {
  font-size: 1.2rem;
}
