/* Reset and Base Styles */
:root {
  --color-primary: #10b981;
  --color-primary-dark: #0da271;
  --color-bg: #0f172a;
  --color-bg-light: rgba(15, 23, 42, 0.85);
  --color-bg-card: rgba(255, 255, 255, 0.05);
  --color-text: #e5e7eb;
  --color-text-light: #d1d5db;
  --color-text-muted: #9ca3af;
  --color-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Accessibility */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-to-main:focus {
  top: 0;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Background pattern */
.logo-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-light);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-title {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download-btn {
  background: var(--color-primary);
  color: #022c22;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.download-btn:hover,
.download-btn:focus {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.download-btn:active {
  transform: translateY(0);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, var(--color-text-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 0.5rem;
}

.hero-subtitle {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-light);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.primary-btn {
  background: var(--color-primary);
  color: #022c22;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  min-width: 160px;
}

.primary-btn:hover,
.primary-btn:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.secondary-btn {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
  font-size: 1rem;
  min-width: 160px;
}

.secondary-btn:hover,
.secondary-btn:focus {
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.campus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
  transition: var(--transition);
  margin: 1.5rem auto;
}
.campus-badge:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.badge-icon {
  font-size: 1.25rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .campus-badge {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    margin: 1rem auto 1.5rem;
  }
  
  .badge-icon {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .campus-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.section.alt {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xl);
  margin: 3rem auto;
  padding: 5rem 1.5rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, var(--color-text-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section p {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Grid and Cards */
.grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* Update the card-icon styles to support SVG */
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #022c22;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding: 12px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

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

.card p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* List */
.list {
  margin-top: 1.5rem;
  list-style: none;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.list li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-light);
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
}

.footer-content {
  max-width: 72rem;
  margin: 0 auto;
}

.copyright {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-description {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-link {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--color-primary);
}

.separator {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0.875rem 1rem;
  }
  
  .hero {
    padding: 6rem 1rem 4rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .primary-btn,
  .secondary-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section.alt {
    margin: 2rem 1rem;
    padding: 3rem 1rem;
  }
  
  .grid {
    gap: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .separator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .nav-title {
    font-size: 1rem;
  }
  
  .download-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* Carousel Section */
.carousel-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  width: fit-content; /* Add this */
  margin: 0 auto; /* Add this */
}


/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16/9;
  max-height: 600px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Change from 2rem to 0 */
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
}

.carousel-image.loading {
  opacity: 0.5;
}

.carousel-image.loaded {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0.5;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.8;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: var(--color-primary);
  color: #022c22;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.carousel-btn:disabled:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-primary);
  transform: translateY(-50%);
}

.carousel-prev {
  left: 1.5rem;
}

.carousel-next {
  right: 1.5rem;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Dots Navigation */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover,
.carousel-dot:focus {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.carousel-counter .current-slide {
  color: var(--color-primary);
  font-weight: 700;
}

/* Simple Contact Section */
.simple-contact {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

.simple-contact p {
  margin-bottom: 0.75rem;
}

.simple-contact a {
  color: var(--color-primary);
  text-decoration: none;
}

.simple-contact a:hover {
  text-decoration: underline;
}

.footer-contact {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-contact a {
  color: var(--color-text-light);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Office Section - Simple */
.office-section {
  padding: 2rem 1.5rem;
  text-align: center;
}

.office-section h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.office-address {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* For <hr> element */
.section-divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 3rem auto;
  max-width: 800px;
}

/* For div with class */
.line-divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem auto;
  max-width: 800px;
}

/* Simple line with less margin */
.simple-line {
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .carousel-btn {
    width: 56px;
    height: 56px;
  }
  
  .carousel-dot {
    width: 12px;
    height: 12px;
  }
  
  .carousel-image {
    cursor: grab;
  }
  
  .carousel-image:active {
    cursor: grabbing;
  }
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .carousel-section {
    padding: 3rem 1rem;
  }
  
  .carousel {
    aspect-ratio: 4/3;
    max-height: 400px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    opacity: 0.9;
  }
  
  .carousel-prev {
    left: 0.75rem;
  }
  
  .carousel-next {
    right: 0.75rem;
  }
  
  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .carousel-dots {
    bottom: 1.5rem;
  }
  
  .carousel-counter {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .carousel {
    aspect-ratio: 1/1;
    max-height: 300px;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .carousel-slide {
    padding: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
  
  .carousel-image.loaded {
    animation: none;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .carousel-container {
    background: rgba(0, 0, 0, 0.2);
  }
  
  .carousel-btn {
    background: rgba(0, 0, 0, 0.7);
  }
}

/* Keyboard Navigation */
.carousel-btn:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* Logo Pattern Base */
.logo-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Individual Logo Styles */
.logo-pattern .logo {
  position: absolute;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><path d="M50 10 L90 50 L50 90 L10 50 Z" fill="rgba(16,185,129,0.1)" stroke="rgba(16,185,129,0.2)" stroke-width="2"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  opacity: 0.05;
}

/* Paused state for page visibility */
.logo-pattern.paused .logo {
  transition: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-pattern .logo {
    transition: none;
  }
}

/* Performance optimizations */
@media (max-width: 768px) {
  .logo-pattern .logo {
    transition-duration: 0.3s;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}