/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

/* Updated Font and Background */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header / Navigation with Glassmorphism */
header {
  background: rgba(2, 62, 138, 0.7);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 20px;
}

/* Logo Image Styling using the actual image */
.logo a {
  display: block;
  width: 140px;
  height: auto;
}

/* Logo Image Styling using the actual image */
.logo a {
  display: block;
  width: 140px;
  height: auto;
}
.logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-top: 30px;  /* Adjust as desired */
  /* Removed box-shadow effect */
}
.logo-img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fafafa;
}

/* Hero Section */
.hero {
  position: relative;
  margin-top: 80px; /* below fixed header */
  min-height: calc(100vh - 80px);
  background: url('../images/hero-bg.svg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #023e8a;
  background-color: rgba(255,255,255,0.9);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in-out;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Main Content */
main {
  margin: 0;
  padding-bottom: 120px;
}

/* Shared Section Styles */
.content-section {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 60px;
  text-align: center;
  transition: transform 0.3s ease;
}

.content-section:hover {
  transform: translateY(-3px);
}

.content-section:last-of-type {
  margin-bottom: 0;
}

.content-section h1,
.content-section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #023e8a;
}

.content-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Services Section */
#services {
  background: #f8fbff;
  padding: 60px 20px;
  border-radius: 12px;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

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

.service-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  word-wrap: break-word;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: #ff6b6b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #fa5252;
}

.btn-secondary {
  display: inline-block;
  background-color: rgba(2, 62, 138, 0.1);
  color: #023e8a;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(2, 62, 138, 0.2);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(2, 62, 138, 0.18);
  color: #012a63;
}

.nav-links li a.active-link {
  background: rgba(255, 255, 255, 0.25);
}

/* Forms */
form {
  background: #f7faff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: left;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

form input[type="file"] {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 16px;
  background-color: #fff;
}

form button {
  background-color: #ff6b6b;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #fa5252;
}

.auth-container {
  padding-top: 140px;
  padding-bottom: 80px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5f0;
  border-radius: 8px;
  margin-bottom: 16px;
}

.auth-switch {
  margin-top: 16px;
}

/* Flash Messages */
.flash-messages {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
  text-align: center;
}

.flash-messages li {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.flash.success {
  background: #d4edda;
  color: #155724;
}

.flash.error {
  background: #f8d7da;
  color: #721c24;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #023e8a;
  color: #fff;
  margin-top: 0;
}

.apa-section h2 {
  font-size: 2.2rem;
}

.apa-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.apa-form {
  background: #f6f9ff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(2, 62, 138, 0.08);
  border: 1px solid rgba(2, 62, 138, 0.08);
}

.apa-form .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.apa-form .form-row small {
  color: #4b4b4b;
  margin-top: 6px;
  font-size: 0.85rem;
}

.apa-form input,
.apa-form textarea,
.apa-form select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f0;
  background: #fff;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.apa-preview {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.citation-output {
  min-height: 180px;
  background: rgba(2, 62, 138, 0.05);
  padding: 20px;
  border-radius: 12px;
  line-height: 1.6;
  color: #012a63;
  border: 1px dashed rgba(2, 62, 138, 0.2);
}

.helper-text {
  font-size: 0.9rem;
  color: #4b4b4b;
}

.apa-tips {
  margin-top: 40px;
}

.apa-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}

.apa-tips-grid div {
  background: rgba(255, 255, 255, 0.85);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(2, 62, 138, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.apa-tips-grid h4 {
  color: #023e8a;
  margin-bottom: 10px;
}

.hidden {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav.container {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    display: none;
    width: 100%;
    margin-top: 10px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .content-section {
    margin-bottom: 40px;
    padding: 20px;
  }
  
  #services {
    padding: 40px 10px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  .hero-content {
    padding: 20px 25px;
  }
}
