/* ═══════════════════════════════════════
   Moontasir Mozumder — style.css
   Original design preserved.
   Added: contact grid + form styles.
   Added: project photo thumbnail style (for CMS).
═══════════════════════════════════════ */

/* THEME VARIABLES */
:root {
  --bg-color: #05080f;
  --text-color: #eaeaea;
  --accent: #00e5ff;
  --binary-color: rgba(0,229,255,0.6);
  --binary-fade: rgba(5,8,15,0.15);
}
body.light {
  --bg-color: #f5f7fa;
  --text-color: #111;
  --binary-color: rgba(20,30,60,0.55);
  --binary-fade: rgba(245,247,250,0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: 0.4s;
}
.hidden { display: none; }

/* Binary Canvas */
#binaryRain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}
.hero-content {
  display: flex;
  gap: 60px;
  align-items: center;
}
.hero-photo img {
  width: 320px;
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.35));
}
.intro { margin: 20px 0; font-size: 1.2rem; }
#typing { color: var(--accent); }
#typing::after { content: "|"; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Navbar */
.navbar {
  text-align: center;
  padding: 15px;
  background: rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.navbar a {
  color: var(--accent);
  margin: 0 15px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.navbar a:hover { opacity: 0.7; }

/* Sections */
.section { padding: 60px 10%; position: relative; z-index: 2; }
.section h2 {
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* Card */
.card {
  background: hwb(204 44% 21% / 0.897);
  padding: 15px;
  border-radius: 8px;
}

/* Project card extras */
.card .project-desc {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 6px;
  line-height: 1.4;
}
.card .project-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(0,229,255,0.12);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 8px;
  margin-right: 3px;
}

/* Project photo thumbnail (shown instead of icon when admin uploads a photo) */
.project-photo {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}

/* Filters */
.filters button {
  margin: 5px;
  padding: 6px 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text-color);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 4px;
  transition: 0.2s;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters .active { background: var(--accent); color: #000; border-color: var(--accent); }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Project link */
.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}
.project-link:hover { color: var(--accent); }

/* Awards Section */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.award-card {
  background: hwb(204 44% 21% / 0.897);
  padding: 18px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.award-card .award-position {
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
}
.award-card .award-event {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 4px;
}
.award-card .award-year { font-size: 0.82rem; opacity: 0.6; }

/* Footer */
footer { text-align: center; padding: 20px; opacity: 0.7; position: relative; z-index: 2; }

/* Mobile */
@media (max-width: 768px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-photo img { width: 240px; }
  .section { padding: 60px 5%; }
}

/* ═══════════════════════════════════════
   CONTACT — Grid + Form
═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: start;
}
.contact-info p {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info a {
  color: var(--accent);
  text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }
.contact-info i { color: var(--accent); width: 18px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.form-row input,
.form-row textarea {
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-color);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,229,255,0.08);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(234,234,234,0.35); }

.send-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
  width: fit-content;
}
.send-btn:hover {
  background: var(--accent);
  color: #000;
}

/* Success / Error messages */
.form-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.form-msg.success {
  background: rgba(0,229,100,0.1);
  border: 1px solid rgba(0,229,100,0.4);
  color: #00e564;
}
.form-msg.error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.4);
  color: #ff6464;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
