/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-color: #f4f7f9;
  --primary-color: #ffffff;
  --secondary-color: #ffffff;
  --accent-color: #2d89ef;
  --accent-hover-color: #1b5dab;
  --text-primary: #333333;
  --text-secondary: #5f5f5f;
  --text-headings: #000000;
  --border-color: #e0e0e0;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s ease;
  --border-radius: 8px;
}

/* --- General Body & Typography --- */
* {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}


body {
  font-family: 'Lato', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-headings);
  font-weight: 600;
  margin-bottom: 0.5em;
}
img{
  max-width: 100%;
  height: auto;
}


p { color: var(--text-secondary); }
a { color: var(--accent-color); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--accent-hover-color); }
main { max-width: 900px; margin: auto; padding: 20px; }

/* --- Header & Navigation --- */
header {
  background: var(--primary-color);
  color: var(--text-headings);
  padding: 20px 0;
  text-align: center;
  border-bottom: 2px solid var(--accent-color);
  position: relative;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.yt-header { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 20px; 
}

.yt-header img { 
  width: 50px; 
  height: auto; 
  margin-right: 15px; 
  border-radius: 50%; 
}

.yt-header h1 { 
  font-size: 2.5em; 
  margin: 0; 
}

/* Navigation Styles */
nav {
  position: relative;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

nav a { 
  color: var(--text-primary); 
  text-decoration: none; 
  font-weight: bold; 
  font-family: 'Poppins', sans-serif; 
  position: relative; 
  padding: 10px 15px; 
  transition: color var(--transition-speed);
  display: block;
}

nav a::after { 
  content: ''; 
  position: absolute; 
  width: 0; 
  height: 2px; 
  bottom: 5px; 
  left: 50%; 
  background-color: var(--accent-color); 
  transition: width var(--transition-speed), left var(--transition-speed); 
}

nav a:hover { 
  color: var(--text-headings); 
}

nav a:hover::after { 
  width: 100%; 
  left: 0; 
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--text-primary);
  cursor: pointer;
  padding: 10px;
  position: relative;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

/* --- Section Cards --- */
.section-card {
  background: var(--secondary-color);
  padding: 25px;
  margin: 25px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 5px solid var(--accent-color);
  transition: all var(--transition-speed);
}

.section-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.2);
}

/* --- Buttons --- */
.download-btn, .tutorial-btn {
  display: inline-block;
  padding: 12px 25px;
  margin: 10px 5px 10px 0;
  background: var(--accent-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed);
  border: none;
}

.download-btn:hover, .tutorial-btn:hover {
  background: var(--accent-hover-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* --- Form Elements --- */
.contact-form input, .contact-form textarea, #searchBar {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  background-color: var(--primary-color);
  color: var(--text-primary);
  font-family: 'Lato', sans-serif;
  transition: all var(--transition-speed);
  box-sizing: border-box;
  font-size: 1em;
}

.contact-form input:focus, .contact-form textarea:focus, #searchBar:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact-form button {
  background: var(--accent-color);
  color: white; 
  padding: 12px 25px; 
  border: none; 
  border-radius: var(--border-radius);
  cursor: pointer; 
  font-family: 'Poppins', sans-serif; 
  font-weight: bold;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.contact-form button:hover { 
  background: var(--accent-hover-color); 
  transform: scale(1.05); 
}

/* --- Other Elements --- */
.ad-banner { 
  text-align: center; 
  margin: 30px 0; 
  opacity: 0.7; 
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}
.ad-banner iframe {
  width: 100% !important;
  height: auto !important;
}

ul#projectList { 
  list-style-type: none; 
  padding: 0; 
}

ul#projectList li { 
  background: var(--secondary-color); 
  margin-bottom: 10px; 
  padding: 15px; 
  border-radius: var(--border-radius); 
  transition: background-color var(--transition-speed); 
}

ul#projectList li:hover { 
  background-color: rgba(0,0,0,0.1); 
}

ul#projectList a { 
  font-weight: bold; 
  font-size: 1.1em; 
}

iframe { 
  max-width: 100%; 
  border-radius: var(--border-radius); 
  border: none; 
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 25px;
  margin-top: 20px;
  color: var(--text-secondary);
  background: var(--primary-color);
  border-top: 1px solid var(--border-color);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

footer a { 
  margin: 0 10px; 
}

/* --- Animations --- */
.fade-in { 
  animation: fadeIn 1s ease-in-out; 
}

@keyframes fadeIn { 
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .yt-header h1 { 
    font-size: 2em; 
  }
  
  main { 
    padding: 15px; 
  }
  
  .section-card { 
    padding: 20px; 
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide navigation by default on mobile */
  .nav-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    z-index: 999;
  }

  .nav-container.active {
    display: flex;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav a::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .yt-header { 
    flex-direction: column; 
    text-align: center; 
  }
  
  .yt-header img { 
    margin-right: 0; 
    margin-bottom: 10px; 
  }
  
  .yt-header h1 { 
    font-size: 1.8em; 
  }
  
  header h1 { 
    font-size: 1.5em; 
  }
  
  main { 
    padding: 10px; 
  }
  
  h2 { 
    font-size: 1.4em; 
  }
  
  .download-btn, .tutorial-btn { 
    display: block; 
    width: 100%; 
    text-align: center; 
    box-sizing: border-box; 
    margin-left: 0; 
    margin-right: 0; 
  }
  
  iframe { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 16 / 9; 
  }

  .mobile-menu-toggle {
    left: 15px;
  }
}
