@import url('https://fonts.googleapis.com/css?family=Staatliches|Montserrat:400,700&display=swap');

:root {
  --primary-color: #16a085;
  --primary-light: #1abc9c;
  --primary-dark: #0e6252;
  --text-color: #ffffff;
  --accent-color: #f1c40f;
  --font-heading: 'Staatliches', cursive;
  --font-body: 'Montserrat', sans-serif;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.5s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--primary-color);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background pattern */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(14, 98, 82, 0.8) 0%, rgba(14, 98, 82, 0) 100%);
}

.logo-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* CLEAN LOGO WRAPPER */
.logo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  position: relative;
  display: block;
  overflow: visible;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.1);
}

/* Social Media Icons */
.social-media-icons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

.social-icon svg {
  transition: transform 0.3s ease;
}

.social-icon:hover svg {
  transform: scale(1.1);
}

/* Desktop Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

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

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover:before,
.nav-link.active:before {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-color);
}

/* Whimsical Burger Menu - Hidden by default */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 101;
  position: relative;
}

.burger-line {
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
  will-change: transform;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.burger-menu:hover {
  transform: scale(1.05);
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Mobile Navigation Menu */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg, 
    var(--primary-dark) 0%, 
    var(--primary-color) 50%,
    #0a4d3f 100%
  );
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-nav-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(241, 196, 15, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 188, 156, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.mobile-nav-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }

/* Enhanced Navigation Items */
.nav-item-wrapper {
  position: relative;
  margin: 1.8rem 0;
  will-change: transform;
}

.mobile-nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(241, 196, 15, 0.5);
  box-shadow: 0 5px 20px rgba(241, 196, 15, 0.2);
  transform: scale(1.05);
}

.nav-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color);
  text-decoration: none;
  will-change: transform;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-accent {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--accent-color), #f39c12);
  border-radius: 2px;
  transform-origin: left;
  will-change: transform;
  box-shadow: 0 2px 10px rgba(241, 196, 15, 0.4);
}

.mobile-nav-link.active .nav-text {
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
}

.mobile-nav-link.active .nav-accent {
  background: linear-gradient(90deg, #f39c12, var(--accent-color));
  box-shadow: 0 2px 15px rgba(241, 196, 15, 0.8);
}

/* Enhanced Decorative Elements */
.mobile-nav-decoration {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-light));
  opacity: 0.1;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  will-change: transform;
}

.decoration-1 {
  top: 15%;
  left: 8%;
  background: linear-gradient(45deg, var(--accent-color), #f39c12);
  animation: float-decoration 6s ease-in-out infinite;
  animation-delay: 0s;
}

.decoration-2 {
  top: 25%;
  right: 12%;
  background: linear-gradient(45deg, var(--primary-light), #27ae60);
  animation: float-decoration 6s ease-in-out infinite;
  animation-delay: 2s;
}

.decoration-3 {
  bottom: 30%;
  left: 15%;
  background: linear-gradient(45deg, #e74c3c, var(--accent-color));
  animation: float-decoration 6s ease-in-out infinite;
  animation-delay: 4s;
}

.decoration-4 {
  top: 60%;
  right: 8%;
  background: linear-gradient(45deg, #9b59b6, var(--primary-light));
  animation: float-decoration 6s ease-in-out infinite;
  animation-delay: 1s;
}

.decoration-5 {
  bottom: 20%;
  right: 25%;
  background: linear-gradient(45deg, var(--accent-color), #3498db);
  animation: float-decoration 6s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes float-decoration {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Enhanced Social Icons */
.mobile-social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  z-index: 10;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease 0.5s;
}

.mobile-nav-overlay.active .mobile-social-icons {
  opacity: 1;
  transform: translateY(0);
}

.mobile-social-icons .social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  backdrop-filter: blur(10px);
  position: relative;
  will-change: transform;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mobile-social-icons .social-icon:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

.mobile-social-icons .social-icon svg {
  transition: transform 0.3s ease;
}

.mobile-social-icons .social-icon:hover svg {
  transform: scale(1.1);
}

/* Platform-Specific Social Media Hover Effects */
.social-instagram:hover {
  background: linear-gradient(45deg, #E4405F, #F56565) !important;
  border-color: #E4405F !important;
  color: white !important;
}

.social-discord:hover {
  background: linear-gradient(45deg, #5865F2, #7289da) !important;
  border-color: #5865F2 !important;
  color: white !important;
}

.social-tiktok:hover {
  background: linear-gradient(45deg, #000000, #ff0050) !important;
  border-color: #ff0050 !important;
  color: white !important;
}

.social-linkedin:hover {
  background: linear-gradient(45deg, #0077B5, #0e76a8) !important;
  border-color: #0077B5 !important;
  color: white !important;
}

/* Enhanced Mobile Logo */
.mobile-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  z-index: 10;
  position: relative;
}

.mobile-logo-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  position: relative;
  will-change: transform;
  transition: all 0.3s ease;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 8px rgba(241, 196, 15, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.mobile-logo-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), #f39c12, var(--primary-light));
  z-index: -1;
  opacity: 0.8;
}

.mobile-logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 0 12px rgba(241, 196, 15, 0.3),
    0 0 30px rgba(241, 196, 15, 0.6),
    inset 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.mobile-logo-wrapper a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  overflow: hidden;
}

.mobile-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  will-change: transform;
}

.mobile-logo-wrapper:hover .mobile-logo-img {
  transform: scale(1.1) rotate(2deg);
}

/* Main Content */
.home-content {
  min-height: 100vh;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Logo display - Desktop default */
.logo-display {
  width: 1200px;
  height: 500px;
  position: relative;
  margin-bottom: 3rem;
}

.logo-svg {
  width: 40%;
  height: 100%;
  margin-top: 10px;
  margin-left: 370px;
  object-fit: contain;
  display: block;
}

.logo-svg2 {
  position: absolute;
  width: 32%;
  top: 260px;
  left: 400px;
  object-fit: contain;
  display: block;
}

/* Tablet Portrait and down - 968px */
@media screen and (max-width: 968px) {
  .home-hero {
    max-width: none;
    padding: 6rem 1rem 4rem;
  }
  
  .logo-display {
    width: 100%;
    max-width: 800px;
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .logo-svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    min-height: 350px;
    max-height: 400px;
    margin-top: 0;
    margin-bottom: -50px;
    position: relative;
    object-fit: contain;
  }
  
  .logo-svg2 {
    width: 100%;
    height: auto;
    max-width: 800px;
    min-height: 200px;
    max-height: 250px;
    position: relative;
    top: 0;
    left: 0;
    object-fit: contain;
  }
}

/* Mobile Landscape - 768px */
@media screen and (max-width: 768px) {
  .logo-display {
    max-width: 600px;
    min-height: 500px;
  }
  
  .logo-svg img {
    max-width: 600px;
    min-height: 280px;
    max-height: 320px;
    margin-bottom: -40px;
  }
  
  .logo-svg2 img {
    max-width: 600px;
    min-height: 160px;
    max-height: 200px;
  }
}

/* Mobile Portrait - 480px */
@media screen and (max-width: 480px) {
  .logo-display {
    max-width: 380px;
    min-height: 400px;
  }

  .logo-svg {
    width: 80%;
    left: -48%
  }
  
  .logo-svg2 {
    position: absolute;
    width: 100%;
    top: 250px;
  }
}

/* Small Mobile - 320px */
@media screen and (max-width: 320px) {
  .logo-display {
    max-width: 300px;
    min-height: 320px;
  }
  
  .logo-svg {
    max-width: 300px;
    min-height: 180px;
    max-height: 200px;
    margin-bottom: -25px;
  }
  
  .logo-svg2 {
    max-width: 300px;
    min-height: 100px;
    max-height: 120px;
  }
}

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

.cta-button {
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: #333;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background-color: #f39c12;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(241, 196, 15, 0.4);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--accent-color);
}

.cta-button.secondary:hover {
  background-color: var(--accent-color);
  color: #333;
}

/* Floating Images */
.floating-images-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-image {
  position: absolute;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  opacity: 0.8;
}

.floating-image img {
  width: 280px;
}

/* Floating image positions */
#float-img-1 {
  top: 23%;
  left: 28%;
}

#float-img-1 img {
  width: 30%;
}

#float-img-2 {
  top: 22%;
  right: 20%;
}

#float-img-3 {
  bottom: 50%;
  left: 17%;
}

#float-img-3 img {
  width: 35%;
}

#float-img-4 {
  bottom: 30%;
  left: 21%;
}

#float-img-5 {
  bottom: 40%;
  left: 63%;
}

#float-img-5 img {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  width: 30%;
}

#float-img-6 {
  bottom: 20%;
  right: 20%;
}

#float-img-7 {
  top: 15%;
  left: 40%;
}

/* News Section */
.news-section {
  padding: 4rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.news-marquee-container {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.news-section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* IMPROVED NEWS SLIDER STYLES */
.news-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.news-container {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
}

.news-item {
  flex: 0 0 auto;
  width: 180px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.1);
}

.news-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  user-drag: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-item h3 {
  padding: 0.8rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
  user-select: none;
  -webkit-user-select: none;
}

/* Enhanced Slider Controls */
.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: bold;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  user-select: none;
  -webkit-user-select: none;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.slider-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  transform: none;
  box-shadow: none;
}

/* Improved Dots */
.slider-dots {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

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

.slider-dot.active {
  background: var(--accent-color);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.slider-dot.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* News Modal */
.news-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.news-modal {
  width: 90%;
  max-width: 800px;
  background-color: var(--primary-dark);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.news-modal-backdrop.active .news-modal {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 50%;
  color: #333;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
  background-color: #f39c12;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.modal-header h2 {
  color: var(--accent-color);
  margin: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
}

.modal-image {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-text {
  flex: 1;
}

#modal-date {
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.transition-content {
  text-align: center;
}

.loading-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color);
  animation: pulse 2s infinite;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInOut 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(241, 196, 15, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  background-color: rgba(14, 98, 82, 0.3);
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .logo-display {
    width: 900px;
  }
  
  .floating-image {
    transform: scale(0.8);
  }
}

/* Mobile Logo Override */
@media screen and (max-width: 968px) {
  /* Show burger menu, hide desktop nav */
  .burger-menu {
    display: flex;
    margin-left: auto;
  }
  
  .header-nav {
    display: none;
  }
  
  /* Hide logo container and floating images on mobile */
  .logo-container {
    display: none;
  }
  
  .floating-images-container {
    display: none;
  }
  
  .site-header {
    padding: 1rem 2rem 1rem 1rem;
    justify-content: flex-end;
    align-items: center;
  }
  
  /* News slider responsive */
  .news-item {
    width: 150px;
  }
  
  .news-image {
    height: 100px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .slider-controls {
    margin-top: 1rem;
    padding: 0 0.5rem;
  }
  
  .slider-dots {
    gap: 0.6rem;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
  
  /* Enhanced mobile logo */
  .mobile-logo-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .nav-text {
    font-size: 1.8rem;
  }
  
  .mobile-nav-decoration {
    width: 45px;
    height: 45px;
  }
  
  .mobile-social-icons .social-icon {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 6rem 1rem 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .mobile-nav-link {
    font-size: 1.8rem;
  }
  
  .site-header {
    padding: 1rem 1.5rem 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 5rem 1rem 2rem;
  }

  .cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }
  
  .mobile-logo-wrapper {
    width: 180px;
    height: 180px;
  }
  
  .mobile-logo-container {
    margin-bottom: 2rem;
  }
  
  .nav-text {
    font-size: 1.5rem;
  }
  
  .burger-menu {
    padding: 0.3rem;
  }
  
  .burger-line {
    width: 25px;
    height: 2px;
  }
  
  .site-header {
    padding: 0.8rem 1rem 0.8rem 1rem;
  }
  
  /* News slider mobile */
  .news-item {
    width: 130px;
  }
  
  .news-image {
    height: 85px;
  }
  
  .news-item h3 {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
  
  .slider-dot {
    width: 8px;
    height: 8px;
  }
  
  .mobile-nav-decoration {
    width: 35px;
    height: 35px;
  }
  
  .mobile-social-icons .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .mobile-social-icons {
    gap: 1rem;
  }
}

/* Smooth focus states for accessibility */
.slider-btn:focus,
.slider-dot:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Loading state for smoother initialization */
.news-container.loading {
  opacity: 0.7;
  pointer-events: none;
}

.news-container.loading .news-item {
  transform: scale(0.95);
}

/* Animation for news items entering */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-item {
  animation: slideIn 0.6s ease-out;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }

/* Performance Optimizations */
.mobile-nav-overlay * {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-decoration,
  .mobile-logo-wrapper,
  .nav-item-wrapper,
  .mobile-social-icons .social-icon {
    transition: none;
  }
}

/* Smaller phones - Burger menu */
@media (max-width: 375px) {
  /* Mobile Navigation Menu Fixes */
  .mobile-nav-link {
    font-size: 1.4rem !important; /* Smaller text */
    letter-spacing: 1px; /* Less spacing */
    padding: 0.8rem 1.5rem; /* Smaller padding */
  }
  
  .mobile-nav-links li {
    margin: 1rem 0; 
  }
  
  /* Mobile Logo */
  .mobile-logo-wrapper {
    width: 80px !important;
    height: 80px !important;
    border: 2px solid var(--accent-color) !important; 
  }
  
  .mobile-logo-container {
    margin-bottom: 1rem !important;
  }
  
  /* Social Icons - Smaller */
  .mobile-social-icons .social-icon {
    width: 35px !important;
    height: 35px !important;
  }
  
  .mobile-social-icons {
    gap: 0.8rem !important;
    margin-top: 2rem !important;
  }
  
  /* Burger Menu - Smaller */
  .burger-menu {
    padding: 0.2rem !important;
  }
  
  .burger-line {
    width: 22px !important;
    height: 2px !important;
  }
  
  /* Hero Section */
  .home-hero {
    padding: 4rem 0.8rem 2rem !important;
  }
}