/*
 * Homepage Styles - 1976uk Creative Theme
 * Specific styles for the front page with background image and menu system
 * Version: 1.0.0
 */

/* ==========================================================================
   ANIMATED GRADIENT BACKGROUND - HOMEPAGE SIGNATURE
   ========================================================================== */

.home .site,
.front-page .site,
body.home,
body.front-page {
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
  background-size: 400% 400%;
  animation: gradientShift 16s ease-in-out infinite;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Remove the tech stripes background on homepage */
body.home .future-tech-background {
  display: none;
}

/* ==========================================================================
   HOMEPAGE HAMBURGER MENU - UNIVERSAL DESIGN
   ========================================================================== */

/* Use the universal hamburger class but enhance for homepage */
body.home .universal-hamburger {
  position: fixed !important;
  top: 2% !important;
  right: 2% !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

body.home .universal-hamburger:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.05) !important;
}

body.home .universal-hamburger span {
  width: 20px !important;
  height: 2px !important;
  background: #ffffff !important;
  border-radius: 1px !important;
  transition: all 0.3s ease !important;
  margin: 2px 0 !important;
}

/* Legacy support for old class name */
.home-hamburger {
  display: none !important; /* Hide old version */
}

/* ==========================================================================
   HOMEPAGE MENU MODAL
   ========================================================================== */

.home-menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.421);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-menu-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-menu-header {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(233, 228, 228);
}

.home-menu-header h3 {
  color: var(--text-primary);
  font-size: 1.8em;
  margin: 0;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-close-btn:hover {
  background: rgba(255, 82, 82, 0.8);
  border-color: rgba(255, 82, 82, 1);
  transform: scale(1.1);
}

.menu-close-btn span {
  color: white;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

/* ==========================================================================
   HOMEPAGE MENU GRID
   ========================================================================== */

.home-menu-body {
  padding: 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.menu-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 25px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.menu-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu-card-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
}

.menu-card h4 {
  color: var(--text-primary);
  font-size: 1.3em;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.menu-card p {
  color: var(--text-tertiary);
  font-size: 0.95em;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   HOMEPAGE HEADER OVERRIDE
   Hide default WordPress header elements on homepage
   ========================================================================== */

body.home #masthead {
  display: none !important;
}

body.home .site-header {
  display: none !important;
}

/* ==========================================================================
   HOMEPAGE SITE TITLE OVERRIDE
   Enhanced glassmorphism site title for homepage
   ========================================================================== */

body.home .site-title {
  font-size: clamp(2.5em, 6vw, 4em);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.home .site-title:hover {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

body.home .site-title .main-title {
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.home .site-title .sub-title {
  font-weight: 400;
  opacity: 0.95;
  margin-top: -8px;
}

/* ==========================================================================
   RESPONSIVE HOMEPAGE
   ========================================================================== */

@media (max-width: 768px) {
  body.home .site-title {
    top: 30px;
    left: 20px;
    font-size: 2em;
    padding: 12px 16px;
  }
  
  body.home .universal-hamburger {
    top: 30px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
  }
  
  body.home .universal-hamburger span {
    width: 18px !important;
  }
  
  .home-menu-content {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .menu-card {
    padding: 20px 15px;
  }
  
  .menu-card-icon {
    font-size: 2em;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  body.home .site-title {
    font-size: 1.6em;
    left: 15px;
    top: 25px;
  }
  
  body.home .universal-hamburger {
    top: 25px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  .home-menu-header h3 {
    font-size: 1.5em;
  }
}