/* Base Styles */
:root {
  --primary-bg: #0f0f10;
  --secondary-bg: #1a1a1c;
  --accent-color: #4a80f0;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --card-bg: #1e1e20;
  --border-color: #2d2d30;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navigation */
.innovation-nav {
  background-color: var(--secondary-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand img {
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Header */
.innovation-header {
  background: linear-gradient(135deg, #050019 0%, #1a1a3a 100%);
  padding: 5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4a80f0, #a0a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.header-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.tech-stack span {
  background-color: rgba(74, 128, 240, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(74, 128, 240, 0.3);
}

/* Main Content */
.innovation-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Project Cards */
.project-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(74, 128, 240, 0.1);
}

.project-card.featured {
  position: relative;
  border: 1px solid var(--accent-color);
}

.project-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.project-details {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.project-features {
  flex: 1;
}

.project-features h3, .project-tech h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-features ul {
  list-style: none;
}

.project-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.project-features i {
  color: var(--accent-color);
  margin-top: 3px;
}

.project-tech {
  flex: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.tech-tags span {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.demo-btn, .code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.demo-btn {
  background-color: var(--accent-color);
  color: white;
}

.demo-btn:hover {
  background-color: #3a70e0;
}

.code-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.code-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.projects-grid .project-card {
  margin-bottom: 0;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.more-btn {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.more-btn:hover {
  color: #a0a0ff;
}

/* Upcoming Projects */
.upcoming-projects {
  margin: 5rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent-color);
}

.upcoming-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.upcoming-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--accent-color);
}

.upcoming-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.upcoming-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.upcoming-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.progress-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Newsletter */
.newsletter {
  background-color: var(--secondary-bg);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 6px 0 0 6px;
  background-color: var(--card-bg);
  color: var(--text-primary);
}

.newsletter-form button {
  padding: 0 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-form button:hover {
  background-color: #3a70e0;
}

/* Footer */
.innovation-footer {
  background-color: var(--secondary-bg);
  padding: 4rem 0 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 30px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.link-group a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-group a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.footer-bottom strong {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-content h1 {
    font-size: 2.2rem;
  }
  
  .project-details {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-content h1 {
    font-size: 1.8rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    border-radius: 6px;
  }
  
  .newsletter-form button {
    padding: 1rem;
    justify-content: center;
  }
}

/* Adjusted Drawer to appear below navbar */
.mobile-drawer {
  position: fixed;
  top: 60px; /* change this if your navbar is taller/shorter */
  right: -100%;
  width: 260px;
  height: calc(100vh - 60px);
  background: #121212;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  transition: right 0.35s ease-in-out;
  z-index: 999;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.7);
}


/* Opened Drawer */
.mobile-drawer.open {
  right: 0;
}

/* Drawer Sections */
.drawer-section {
  margin-bottom: 2rem;
}

.drawer-section h4 {
  color: #00ffe0;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
  font-size: 1.1rem;
}

.drawer-section a {
  display: block;
  color: #eee;
  padding: 0.5rem 0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.drawer-section a:hover {
  color: #00ffe0;
}

/* ===== Modal Image Viewer CSS ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
  position: relative;
  margin: auto;
  max-width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.close {
  position: absolute;
  top: 15px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ccc;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: 0.3s;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}


/* Overlay for backdrop */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

/* When overlay is active */
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Hide on Desktop */
@media (min-width: 992px) {
  .mobile-drawer,
  .drawer-overlay {
    display: none;
  }
}

