/* UNLV Computer Science Student Center Styles */

:root {
  --unlv-red: #b10202;
  --unlv-gray: #4a4a4a;
  --light-gray: #f9f9f9;
  --dark-gray: #1a1a1a;
  --border-color: rgba(74, 74, 74, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: #ffffff;
  transition: background-color 0.3s, color 0.3s;
}

.video{
	max-width: 100%;
	height:auto;
	display:block;
}

/* Circuit Board Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    linear-gradient(90deg, var(--unlv-red) 1px, transparent 1px),
    linear-gradient(0deg, var(--unlv-red) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Dark Mode */
body.dark {
  background-color: #1a1a1a;
  color: #e8e8e8;
}

body.dark::before {
  opacity: 0.05;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  background-color: var(--unlv-gray);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#navtitle {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

#navtitle:hover {
  opacity: 0.9;
}

.navLinks {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navLinks a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.navLinks a:hover,
.navLinks a.active {
  color: white;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
}

/* Theme Toggle */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu */
#hamburgerMenu {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

#hamburgerMenu span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--light-gray));
}

body.dark .hero {
  background: linear-gradient(to bottom, transparent, #2a2a2a);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

body.dark .hero h1 {
  color: #e8e8e8;
}

.hero p {
  font-size: 1.25rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

body.dark .hero p {
  color: #aaa;
}

.icon-badge {
  width: 80px;
  height: 80px;
  background-color: rgba(177, 2, 2, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Content Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s;
}

body.dark .card {
  background: #2a2a2a;
  border-color: rgba(170, 170, 170, 0.2);
}

.card:hover {
  border-color: var(--unlv-red);
  box-shadow: 0 4px 12px rgba(177, 2, 2, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(177, 2, 2, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

body.dark .card p {
  color: #aaa;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--unlv-red);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

/* Policy Links */
.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: 0.75rem;
}

.resource-list a {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: var(--dark-gray);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

body.dark .resource-list a {
  color: #e8e8e8;
}

.resource-list a:hover {
  background-color: var(--light-gray);
}

body.dark .resource-list a:hover {
  background-color: #3a3a3a;
}

.resource-list a::before {
  content: '→';
  color: var(--unlv-red);
  margin-right: 0.75rem;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--unlv-gray);
  color: white;
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
}

footer p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: white;
  color: var(--dark-gray);
}

body.dark .form-group input,
body.dark .form-group textarea {
  background-color: #2a2a2a;
  border-color: rgba(170, 170, 170, 0.2);
  color: #e8e8e8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--unlv-red);
  box-shadow: 0 0 0 3px rgba(177, 2, 2, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navLinks {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--unlv-gray);
    padding: 1rem;
    gap: 0;
  }

  .navLinks.active {
    display: flex;
  }

  .navLinks li {
    width: 100%;
  }

  .navLinks a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }

  .navLinks a:hover,
  .navLinks a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: none;
  }

  #hamburgerMenu {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Info Box Styles */
.info-box {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

body.dark .info-box {
  background: #2a2a2a;
  border-color: rgba(170, 170, 170, 0.2);
}

.info-box h3 {
  margin-bottom: 1rem;
}

.alert {
  padding: 1rem;
  border-left: 4px solid var(--unlv-red);
  background-color: rgba(177, 2, 2, 0.05);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

body.dark .alert {
  background-color: rgba(177, 2, 2, 0.1);
}

.cta-box {
  padding: 3rem;
  background-color: var(--unlv-red);
  color: white;
  border-radius: 0.75rem;
  text-align: center;
}

.cta-box h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-box .btn {
  background-color: white;
  color: var(--unlv-red);
}

.cta-box .btn:hover {
  background-color: #f0f0f0;
}
