/* Modern CSS for Campus Connect */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin-top: 70px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: linear-gradient(135deg, #004080, #002244);
  color: #fff;
  flex-wrap: wrap;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 5%;
  background: linear-gradient(135deg, #003366, #001122);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  height: 40px;
  border-radius: 50%;
}

/* Navigation */
nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  font-size: 28px;
  cursor: pointer;
  display: none;
}

/* Main Content */
section {
  padding: 80px 5%;
  min-height: 80vh;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 64, 128, 0.8), rgba(0, 34, 68, 0.9)), url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 120px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #ffd700;
  color: #004080;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: #ffc400;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  text-align: center;
}

.features h2 {
  color: #004080;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.card h3 {
  color: #004080;
  margin-bottom: 15px;
}

/* Importance Section */
.importance {
  background: linear-gradient(135deg, #004080, #002244);
  color: white;
  text-align: center;
}

.importance h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.importance ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.importance li {
  font-size: 1.2rem;
  padding: 20px;
  margin: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.importance li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

/* Feedback Section */
.feedback {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  text-align: center;
}

.feedback h2 {
  color: #004080;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.feedback form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback input,
.feedback textarea {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.feedback input:focus,
.feedback textarea:focus {
  border-color: #004080;
  outline: none;
  box-shadow: 0 0 10px rgba(0, 64, 128, 0.2);
}

.feedback button {
  padding: 15px;
  background: #004080;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedback button:hover {
  background: #003366;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery {
  background: white;
  text-align: center;
}

.gallery h2 {
  color: #004080;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-grid figure {
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-grid figure:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #004080;
  background: white;
}

/* Footer */
footer {
  background: #002244;
  color: white;
  text-align: center;
  padding: 40px 5%;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 34, 68, 0.95);
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  nav.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

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

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

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 5%;
  }

  section {
    padding: 60px 5%;
  }

  .hero {
    padding-top: 100px;
  }

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

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