:root {
  --primary: #2c3e50; /* Dark Blueish */
  --secondary: #3498db; /* Light Blue */
  --accent: #e74c3c; /* Red Highlight */
  --light: #ecf0f1; /* Light Gray */
  --dark: #1a252f; /* Deeper Dark */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: var(--dark);
}

p {
  font-family: "Merriweather", serif;
}

.text-accent {
  color: var(--accent);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.bg-accent {
  background-color: var(--accent);
  color: white;
  transition: var(--transition);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  transition: var(--transition);
  border: none;
}
.btn-accent:hover {
  background-color: #c0392b;
  color: white;
}

.bg-light-subtle {
  background-color: #f9fafb;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.98);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  padding: 0.5rem 0;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
  z-index: 1001;
}

.logo:hover {
  transform: scale(1.02);
}

.logo span {
  color: var(--accent);
}

.nav-container {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 2rem;
}

.nav-links li {
  margin-left: 2rem;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
  font-size: 1.05rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-links a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-button {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.login-button:hover {
  color: var(--accent);
  background-color: rgba(231, 76, 60, 0.1);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001; /* Higher than nav-container */
  font-size: 1.5rem;
  color: var(--primary);
  padding: 0.5rem;
  position: relative; /* Add this */
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000; /* Add this */
  }

  .mobile-menu-open .nav-container {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    display: block;
    margin-right: 0;
    width: 100%;
    margin-bottom: 2rem;
  }

  .nav-links li {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .nav-links a {
    padding: 0.8rem 1rem;
    display: block;
    border-radius: 4px;
    color: #1a252f;
  }

  .nav-links a:hover {
    background-color: rgba(231, 76, 60, 0.1);
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .login-button,
  .cta-button {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-open {
    overflow: hidden;
  }

  .mobile-menu-open header {
    box-shadow: none;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1.5rem;
  }

  .nav-container {
    width: 100%;
    padding-top: 5rem;
  }
}

.cta-button {
  background-color: var(--accent);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(44, 62, 80, 0.6), rgba(26, 37, 47, 0.85)),
    url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80")
      no-repeat center center/cover;
  padding-top: 80px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  color: var(--light);
}

.hero-content {
  background: rgba(44, 62, 80, 0.35);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-section h1 {
  font-family: "Merriweather", serif;
  font-size: 3rem;
  line-height: 1.3;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-section h1 .text-accent {
  color: var(--accent);
}

.hero-section p {
  font-size: 1.2rem;
  font-family: "Merriweather", serif;
  opacity: 0.95;
}

.hero-section .btn-light {
  background-color: var(--light);
  color: var(--primary);
  border: none;
  transition: var(--transition);
}

.hero-section .btn-light:hover {
  background-color: var(--accent);
  color: white;
}

.hero-section .btn-outline-light {
  color: var(--light);
  border: 2px solid var(--light);
  transition: var(--transition);
}

.hero-section .btn-outline-light:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 40px;
  }
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: #7f8c8d;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: white;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
  border-top: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--accent);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.4rem;
}

/* Journals Section */
.journals {
  padding: 6rem 0;
  background-color: white;
}

.journal-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-button {
  padding: 0.8rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 5px;
}

.tab-button:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

.tab-button.active {
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
  background-color: rgba(231, 76, 60, 0.1);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.journal-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  background-color: white;
}

.journal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.journal-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.journal-card:hover .journal-image {
  transform: scale(1.05);
}

.journal-info {
  padding: 2rem;
}

.journal-info h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  transition: var(--transition);
}

.journal-card:hover .journal-info h3 {
  color: var(--secondary);
}

.journal-meta {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

.journal-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.journal-link:hover {
  color: var(--accent);
}

.journal-link i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.journal-link:hover i {
  transform: translateX(5px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/images/pattern.png") repeat;
  opacity: 0.05;
}

.cta-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.9;
  font-size: 1.2rem;
  position: relative;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.footer-column h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1.8rem;
  font-size: 1.4rem;
  position: relative;
  padding-bottom: 1rem;
  color: white;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 0.95rem;
  position: relative;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .features-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-tabs {
    flex-direction: column;
    align-items: center;
  }
}

.object-cover {
  object-fit: cover;
  height: 100%;
  border-right: 5px solid var(--accent);
}

.carousel .carousel-item {
  padding: 1.5rem 0;
  min-height: 350px;
}

.carousel .carousel-item .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--primary);
}

.carousel .carousel-item h5 {
  color: var(--accent);
}

.carousel .carousel-item .row {
  min-height: 350px;
}

/* About Page */

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Button hover effects */
.shadow-lg-hover {
  transition: all 0.3s ease;
}
.shadow-lg-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure proper contrast */
.text-white-80 {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-hero {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .about-hero h1 {
    font-size: 2.5rem;
  }
  .about-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 6rem;
  }
  .about-hero h1 {
    font-size: 2rem;
  }
  .about-hero .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Submit Page */
.icon-lg {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-soft-primary {
  background-color: rgba(13, 110, 253, 0.1);
}

.file-upload-card {
  border: 2px dashed #dee2e6;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-card:hover {
  border-color: #0d6efd;
  background-color: #f0f7ff;
}

.card-header {
  border-radius: 0.375rem 0.375rem 0 0 !important;
}

/* Login Styling */
.login-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.login-header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.login-body {
  padding: 2rem;
  background: white;
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d3e2;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

.btn-login {
  background: var(--primary);
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--accent);
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #d1d3e2;
}

.brand-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
