:root {
  --bg: #f9fafb;
  --alt-bg: #eef2ff;
  --card-bg: #ffffff;
  --primary: #d425eb;
  --accent: #971eaf;
  --text: #111827;
  --shadow: rgba(0, 0, 0, 0.1);
}



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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--card-bg);
  box-shadow: 0 2px 8px var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
}
.theme1 {
    background-image: url('sumobot.jpg');
    background-color: #111; 
    color: rgb(0, 0, 0);
}
.logo {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--accent);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}
.nav-links li a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.nav-links li a:hover {
  background: var(--primary);
  color: #fff;
}

/* Sections */
.content-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.content-section.active { display: block; opacity: 1; }
.alt-bg { background: var(--alt-bg); }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.hero-content h1 { font-size: 3em; margin-bottom: 20px; }
.hero-content p { font-size: 1.5em; margin: 20px 0; }
#typed-text { font-weight: bold; color: #fff; }
#cursor { animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.btn {
  background: #fff;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn:hover { background: var(--accent); color: #fff; }

/* About */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.about-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 0 12px var(--shadow);
}
.about-container p {
  max-width: 700px;
  font-size: 1.1em;
  line-height: 1.6;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}
.skill-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
}
.skill label { font-weight: bold; display: block; margin-bottom: 8px; }
.skill-bar { background: #e5e7eb; border-radius: 10px; overflow: hidden; height: 14px; }
.skill-bar .fill { background: var(--primary); height: 100%; transition: width 1s ease; }

/* Projects */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.project-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* text-align: left; */
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px var(--shadow);
}
.project-card h3 { margin-bottom: 10px; }
.project-card p { margin-bottom: 15px; }

/* Contact */
#contact h2 { text-align: center; color: var(--accent); margin-bottom: 20px; }
.contact-form {
  display: flex; flex-direction: column; gap: 15px;
  max-width: 600px; margin: auto;
}
.contact-form input, .contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: var(--text);
}
.contact-form button {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.contact-form button:hover { background: var(--accent); }

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 -2px 8px var(--shadow);
}

/* Project Dropdown */
.project-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
  user-select: none;
  gap: 14px;
}
.project-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary);
}
.project-info { flex: 1; }
.project-summary h3 { margin-bottom: 4px; }
.project-summary p { margin: 0; color: #555; font-size: 0.95em; }
.dropdown-arrow {
  font-size: 0.85em;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 10px;
}
.project-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}
.project-dropdown.open {
  max-height: 600px;
  padding-top: 15px;
}
.video-area {
  text-align: center;
  padding: 10px 0;
}
