:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --background: #f8fafc;
  --text: #1e293b;
  --gray: #64748b;
  --border: #e2e8f0;
  --accent: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

/* ==== Header/Navbar ==== */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.nav-links li a:hover {
  background: var(--primary);
  color: white;
}

/* ==== Typography ==== */
h1, h2, h3 {
  font-weight: 600;
  color: #222;
  margin-top: 0;
}

h2 {
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 2rem;
}

p, li {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

/* ==== Main Content Layout ==== */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

/* ==== Cards ==== */
.card, .about-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s forwards;
  transform: translateY(20px);
  opacity: 0;
}

.card:hover, .about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 1.5rem;
}

.card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ==== About Section ==== */
.about-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.company-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.about-card ul {
  list-style-position: inside;
  margin-top: 1rem;
}

.about-card li {
  margin: 0.5rem 0;
  color: var(--text);
}

/* ==== Form ==== */
form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
}

/* ==== Buttons ==== */
.button, button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.button:hover, button:hover {
  background-color: var(--primary-dark);
}

/* ==== Footer ==== */
footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 2rem 0;
  font-size: 14px;
  color: #777;
  margin-top: 4rem;
}

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

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

body.dark-mode .card {
  background-color: #1e1e1e;
  color: #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

body.dark-mode .card a {
  color: #66aaff;
}

body.dark-mode iframe {
  background-color: #222;
  border: none;
}

body.dark-mode button, 
body.dark-mode .subscribe-button {
  background-color: #2196F3;
  color: white;
  border: none;
  box-shadow: none;
}

body.dark-mode header a,
body.dark-mode .nav-links a {
  color: #ccc;
}

body.dark-mode {
  background-color: #121212;
  color: #ddd; /* main text color */
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
  color: #fff; /* headings brighter */
}

body.dark-mode a {
  color: #4ea1ff; /* bright blue links */
}

body.dark-mode p, 
body.dark-mode span, 
body.dark-mode li {
  color: #bbb; /* lighter text */
}

body.dark-mode footer, 
body.dark-mode small {
  color: #888; /* subdued text */
}

body.dark-mode .subscribe-button,
body.dark-mode .subscribe-button * {
  color: white !important;              /* Make button text white */
  background-color: #ff0000 !important; /* YouTube red or a bright red */
  border-color: #ff0000 !important;
  box-shadow: none !important;
}

body.dark-mode .subscriber-count {
  color: #eee !important;               /* Light text for subscriber count */
}

