@font-face {
  font-family: 'Avenir';
  src: url('../assets/fonts/AvenirLTStd-Book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --main-red: #ff6f6f;
  --main-pink: #ffb1b1;
  --main-pink-light: #ffebeb;
  --text-dark: #222;
  --text-light: #fff;
  --bg-light: #fafafa;
  --font-main: 'Avenir', 'Inter', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

button, .btn {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  padding: 0.75em 2em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--main-red);
  color: var(--text-light);
  border: 2px solid var(--main-red);
}

.btn-primary:hover {
  background: #ff5555;
}

.btn-outline {
  background: transparent;
  color: var(--main-red);
  border: 2px solid var(--main-red);
}

.btn-outline:hover {
  background: rgba(255, 111, 111, 0.1);
}

.btn-outline-red {
  background: transparent;
  color: var(--main-red);
  border: 2px solid var(--main-red);
  border-radius: 4px;
}

.btn-light {
  background: white;
  color: var(--main-red);
  border: 2px solid white;
}

.btn-light:hover {
  background: #f8f8f8;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 0.5em 0;
  line-height: 1.3;
}

section {
  padding: 3em 0;
}

/* Header Styles */
header {
  padding: 1rem 0;
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 20px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--main-red);
}

/* Hero Section */
#hero {
  padding: 4rem 0 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  margin-bottom: 3rem;
}

.hero-text {
  max-width: 900px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-image {
  max-width: 100%;
  margin: 0 auto;
}

.app-preview {
  max-width: 100%;
  height: auto;
}

/* Value Proposition Section */
#value-prop {
  padding: 3rem 0;
  background-color: #f8f8f8;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  flex: 0 0 auto;
  width: 160px;
  text-align: center;
  padding: 0.5rem;
}

.feature-icon {
  margin-bottom: 0.5rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-height: 100%;
  max-width: 40px;
}

.feature-item h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 400;
  color: #444;
}

/* Universities Section */
#universities {
  padding: 4rem 0;
  background-color: #fff;
}

.universities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.university-logo {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.university-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.university-logo.empty {
  background: none;
  border: none;
}

.university-cta {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.university-cta p {
  font-size: 1.2rem;
  margin: 0;
}

/* App Features Section */
.curve-svg-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

#app-features.curved-section {
  position: relative;
  background-color: var(--main-pink-light);
  padding-top: 100px; /* half the SVG height for overlap */
  overflow: hidden;
}

#app-features .container {
  position: relative;
  z-index: 3;
}

.app-features-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.app-feature-item {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.app-feature-item.reverse {
  flex-direction: row-reverse;
}

.app-feature-text {
  flex: 1;
}

.app-feature-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.app-feature-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.app-feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.app-feature-image img {
  max-width: 250px;
  height: auto;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.0); */
  border-radius: 12px;
}

/* Call to Action Section */
.cta-section {
  position: relative;
  background-color: var(--main-red);
  color: white;
  text-align: center;
  padding: 150px 0 8rem;
  overflow: hidden;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Footer */
footer {
  background-color: #f8f9fa;
  padding: 3rem 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links img {
  width: 30px;
  height: 30px;
  transition: opacity 0.2s;
}

.social-links a:hover img {
  opacity: 0.8;
}

.copyright {
  font-size: 0.9rem;
  color: #777;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .features-grid {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .university-logo {
    height: 140px;
  }
  
  .universities-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  
  .app-feature-item, 
  .app-feature-item.reverse {
    flex-direction: column;
    gap: 2rem;
  }
  
  .app-feature-text {
    text-align: center;
  }
  
  .app-feature-text h2 {
    font-size: 2rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }
  
  .main-nav ul {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .features-grid {
    justify-content: center;
  }
  
  .feature-item {
    width: 130px;
  }
  
  .university-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .university-logo {
    height: 110px;
  }
  
  .app-feature-text h2 {
    font-size: 1.8rem;
  }
  
  .app-feature-image img {
    max-width: 240px;
  }
  
  .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Remove the duplicate .curve-bottom from cta section if it exists */
.cta-section .curve-bottom {
  display: none;
}

/* App Download Section */
.app-download-section {
    background-color: #fff;
    padding: 80px 0;
    text-align: center;
}

.app-download-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-download-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.app-download-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.app-store-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-button img {
    height: 70px;
    width: auto;
    border-radius: 8px;
}

.app-store-button:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .app-store-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .app-store-button img {
        height: 60px;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--main-red);
    margin-top: 0;
    font-size: 24px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--main-red);
} 