/* Articles Page Styles */
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(to bottom, #1a1a1a, #2a2a2a, #333333, #2a2a2a, #1a1a1a) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  margin-top: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  flex: 1;
  background: transparent;
}

/* Hamburger Menu Styles for Articles Page */
.hamburger {
  display: none !important;
  position: fixed;
  z-index: 9999;
  top: 1rem;
  right: auto;
  left: 1rem;
  padding: 3px;
  border: 1px solid #333;
  background: linear-gradient(to right, rgb(200 135 17 / 80%), rgb(2 2 2 / 80%));
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  width: 35px;
  height: 35px;
  justify-content: center;
  align-items: center;
  position: relative;
}



.hamburger span {
  width: 18px;
  height: 2px;
  background: #fff !important;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
  display: block !important;
}

/* Hide hamburger on larger screens */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

/* Show hamburger only on mobile and tablet */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .hamburger {
    width: 30px;
    height: 30px;
    padding: 2px;
    display: flex !important;
  }
  
  .hamburger span {
    width: 15px;
    height: 2px;
    margin: 1.5px 0;
    background: #fff !important;
    display: block !important;
  }
}

/* Article Container Styles */
.article-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin: 20px;
  border: 1px solid rgba(255, 165, 0, 0.2);
  min-height: 350px;
  box-shadow: none !important;
  transition: none !important;
}

.article-container:hover,
.article-container:active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 165, 0, 0.2);
  box-shadow: none !important;
  transform: none !important;
}

.article-container h2 {
  color: #ff8c00;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.article-container p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
}

.article-container img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 15px;
}

/* Text Overlay Styles */
.text-overlay,
.article-container:hover .text-overlay {
  opacity: 0;
  transition: none !important;
}

.text-content {
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.text-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #ff8c00;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../img/articles.jpg') center center / cover no-repeat;
}

.hero-section canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero-heading {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
}

.hero-tagline {
  font-size: 1.5rem;
  color: #cccccc;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

/* Scroll Arrow Styles */
.scroll-arrow {
  display: inline-block;
  color: #ff8c00;
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  color: #ffa500;
  transform: translateY(5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Articles Grid Styles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.articles-grid article,
.articles-grid .article-container,
.articles-grid .canvas-container,
.articles-grid .canvas-container img {
  transition: none !important;
  box-shadow: none !important;
  transform: none !important;
  will-change: auto !important;
  pointer-events: none !important;
}

.articles-grid article a,
.articles-grid .article-container a {
  pointer-events: auto !important;
  text-decoration: none !important;
  color: inherit !important;
}

.articles-grid article:hover,
.articles-grid .article-container:hover,
.articles-grid .canvas-container:hover,
.articles-grid .canvas-container img:hover,
.articles-grid article:active,
.articles-grid .article-container:active,
.articles-grid .canvas-container:active,
.articles-grid .canvas-container img:active,
.articles-grid article:focus,
.articles-grid .article-container:focus,
.articles-grid .canvas-container:focus,
.articles-grid .canvas-container img:focus {
  transition: none !important;
  box-shadow: none !important;
  transform: none !important;
  scale: 1 !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 165, 0, 0.2) !important;
}

/* Circle Container Styles */
.circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  text-align: center;
  position: relative;
}

.outer-canvas {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  z-index: 0;
}

.circle-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  z-index: 1;
}

.inner-circle {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: var(--light-grey-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.circle-container h2 {
  font-size: 1rem;
  margin-top: 10px;
}

.circle-container p {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 5px;
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  z-index: 9999;
}

.loading-bar {
  flex: 1;
  background: #000;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.7s ease-in-out;
}

.loading-bar.slide-up {
  transform: scaleX(0);
}

.loading-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 10000;
}

.loading-content.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Section Arrow Styles */
.section-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.section-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, #ffa500, #ff8c00);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.section-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff8c00, #ffa500);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}

.section-arrow.shadow-visible::before {
  opacity: 0.8;
}

.section-arrow.shadow-visible::after {
  opacity: 0.6;
}

.arrow-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow-container:hover {
  transform: translateX(-50%) translateY(-5px);
}

.arrow-down {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.arrow-down i {
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.arrow-container:hover .arrow-down {
  background: rgba(255, 165, 0, 0.8);
  transform: scale(1.1);
}

.arrow-container:hover .arrow-down i {
  transform: translateY(2px);
}

@keyframes swipe-down {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Utility Classes */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  article, .article-container, .canvas-container, .canvas-container img {
    transition: none !important;
    box-shadow: none !important;
    transform: none !important;
  }
  
  article:hover, .article-container:hover, .canvas-container:hover, .canvas-container img:hover {
    transition: none !important;
    box-shadow: none !important;
    transform: none !important;
  }
} 