:root {
  --primary-dark: #090909;
  --secondary-dark: #2c2c2c;
  --accent-color: #cbcbcb;
  --accent-light: #949494;
  --text-light: #cbcbcb;
  --text-muted: #8c8c8c;
  --border-color: #444444;
  --glass-bg: rgba(0, 0, 0, 0.05);
  --glass-border: rgba(203, 203, 203, 0.1);
  --secondary-dark-t: rgba(44, 44, 44, 0.8);
}

body {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-family: 'Open Sans', sans-serif;
  font-display: swap;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background: radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.15) 0%, transparent 50%), radial-gradient(circle at 70% 60%, rgba(255, 140, 66, 0.1) 0%, transparent 50%);*/
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(33,37,41,1) 100%), url('../../assets/img/headerimg/events_rouell.webp?h=b75f291b7784cce86a80c1b75d6c3fe6');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  filter: blur(2px);
  z-index: -1;
}

/* Portfolio Container */

.portfolio-container {
  padding: 3rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header */

.portfolio-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.portfolio-header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.portfolio-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Filter Buttons - Centered */

.portfolio-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  margin: 0.5rem;
  min-width: 100px;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  background: var(--secondary-dark);
  color: var(--text-light);
}

.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(203, 203, 203, 0.3);
}

/* Portfolio Items Grid - Centered */

.portfolio-items-container {
  display: flex;
  justify-content: center;
}

.portfolio-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

.portfolio-item {
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

/* Glass Cards - Centered Content */

.portfolio-card {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  box-shadow: 0 12px 40px rgba(203, 203, 203, 0.2);
  border-color: rgba(203, 203, 203, 0.3);
}

.portfolio-card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.05);
}

.portfolio-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  background: var(--secondary-dark-t);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio-card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.portfolio-card-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* View Buttons */

.portfolio-view-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--primary-dark);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  width: fit-content;
}

.portfolio-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(203, 203, 203, 0.4);
}

/* Lightbox */

.portfolio-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.portfolio-lightbox-content {
  width: 90%;
  height: 90%;
  background: var(--secondary-dark-t);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.3s ease;
}

/* Portfolio Lightbox Close Button with Font Awesome and WEBP Background */

.portfolio-lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: var(--secondary-dark-t) url('data:image/webp;base64,UklGRkIAAABXRUJQVlA4IDYAAACwAQCdASoQABAABUBMJZANCwAzgCQAABAAEAAlJqS6AAAAAA==') center/cover;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  color: var(--accent-color);
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Fallback gradient background if WEBP isn't supported */

.portfolio-lightbox-close {
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.9), rgba(9, 9, 9, 0.9));
}

.portfolio-lightbox-close:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--primary-dark);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(203, 203, 203, 0.4);
}

/* Font Awesome icon styling */

.portfolio-lightbox-close i {
  display: block;
  font-size: 1.2em;
}

/* Hide the text '×' when using Font Awesome */

.portfolio-lightbox-close span {
  display: none;
}

.portfolio-lightbox-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Page Viewer for Multi-image Projects */

.portfolio-page-viewer {
  position: relative;
  width: 100%;
  height: calc(100% - 80px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
}

.portfolio-page {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portfolio-page.active {
  opacity: 1;
  z-index: 1;
}

.portfolio-page.inactive {
  opacity: 0;
  z-index: 0;
}

.portfolio-page-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: var(--secondary-dark-t);
  border-top: 1px solid var(--glass-border);
  height: 80px;
}

.portfolio-page-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
  min-width: 120px;
}

.portfolio-page-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.portfolio-page-indicator {
  color: var(--text-light);
  font-weight: 600;
  min-width: 80px;
  text-align: center;
  font-size: 1.1rem;
}

/* Note Section */

.portfolio-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--secondary-dark-t);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-note strong {
  color: var(--accent-color);
}

/* Animation Keyframes */

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Adjustments */

@media (max-width: 768px) {
  .portfolio-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-card-img-container {
    height: 150px;
  }
}

@media (max-width: 768px) {
  .portfolio-lightbox-content {
    width: 95%;
    height: 95%;
  }
}

@media (max-width: 768px) {
  .portfolio-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portfolio-lightbox-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .portfolio-page-controls {
    gap: 1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .portfolio-page-btn {
    padding: 0.5rem 1rem;
    min-width: 100px;
    font-size: 0.9rem;
  }
}

/* ========================================
   SECTION HEADERS WITH WEBP BACKGROUNDS
   ======================================== */

/* Unified Section Header Structure */

.section-header {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
  z-index: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px);
  z-index: 0;
}

.section-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(44, 44, 44, 0.3);
  z-index: 1;
}

.section-header > * {
  position: relative;
  z-index: 2;
}

.section-header h1 {
  margin-top: 60px;
}

/* Experience Header with WEBP Background */

.experience-header {
  composes: section-header;
  height: 15vh;
  min-height: 200px;
}

.experience-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(33,37,41,1) 100%), url('../../assets/img/headerimg/workexperience.webp?h=79d598c4a67139361a3f481b66cd0af5');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(4px);
  z-index: -1000;
}

.experience-header > * {
  position: relative;
  z-index: 2;
}

.experience-header h1 {
  margin-top: 60px;
  color: #fff;
}

.experience-header p {
  color: #ccc;
}

/* Services Header with WEBP Background */

.services-header {
  composes: section-header;
  height: 15vh;
  min-height: 200px;
}

.services-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(33,37,41,1) 100%), url('../../assets/img/headerimg/services.webp?h=9d9f1112512e6d65c71b4670f868f89f');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(4px);
  z-index: -1000;
}

/* Projects Header with WEBP Background */

.projects-header {
  composes: section-header;
  height: 15vh;
  min-height: 200px;
}

.projects-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(33,37,41,1) 100%), url('../../assets/img/headerimg/projects.webp?h=1eb03d77794ce0bb8c7e1e86fa9a2ac0');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(4px);
  z-index: -1000;
}

.projects-header h1 {
  margin-top: 60px;
}

/* Contacts Header with WEBP Background */

.contacts-header {
  composes: section-header;
  height: 15vh;
  min-height: 200px;
}

.contacts-header {
  composes: section-header;
  height: 15vh;
  min-height: 200px;
}

.contacts-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(33,37,41,1) 100%), url('../../assets/img/headerimg/contact_rouell.webp?h=d4407bf5c2d2f2d15e5a6ba5dae4f739');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1000;
}

.experience-header h1 {
  margin-top: 60px;
}

.services-header h1 {
  margin-top: 60px;
}

/* About Header */

.about-header {
  composes: section-header;
  text-align: right;
  background: none !important;
  justify-content: flex-end;
}

.about-header::before {
  background: none;
  filter: none;
}

.about-header::after {
  background-color: rgba(44, 44, 44, 0.3);
}

.about-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: right;
  margin-top: 60px;
  margin-bottom: 0rem;
  color: #fff;
}

.about-header p {
  font-size: 1rem;
  margin-top: 0;
  color: #ccc;
  max-width: 600px;
  margin-left: auto;
}

/* ========================================
   PROFILE SECTIONS WITH WEBP BACKGROUNDS
   ======================================== */

/* Privacy Section with WEBP Background */

.privacy-section {
  background: url('../../assets/img/headerimg/privacy_rouell.webp?h=220b1d99cb0fb6aba70e73f4d253b046') no-repeat left top;
  background-position: left 0%;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
  color: white;
}

@media (max-width: 768px) {
  .privacy-section {
    background-position: left top;
    background-size: cover;
    min-height: 50vh;
    background-attachment: fixed;
  }
}

/* Terms Section with WEBP Background */

.terms-section {
  background: url('../../assets/img/headerimg/terms_rouell.webp?h=65a70e8849e1d664752b951e03fc2347') no-repeat left top;
  background-position: left 0%;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
  color: white;
}

@media (max-width: 768px) {
  .terms-section {
    background-position: left top;
    background-size: cover;
    min-height: 50vh;
    background-attachment: fixed;
  }
}

/* Profile Section with WEBP Background */

.profile-section {
  background: url('../../assets/img/headerimg/about_rouell.webp?h=fff55678186caddac4f4a87fcaf5b7fa') no-repeat left top;
  background-position: left 0%;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
  color: white;
}

@media (max-width: 768px) {
  .profile-section {
    background-position: left top;
    background-size: cover;
    min-height: 50vh;
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  .profile-image {
    object-position: left center;
    max-height: 300px;
  }
}

/* ========================================
   TIMELINE STYLES
   ======================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-date {
  position: absolute;
  top: 0;
  width: 120px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .timeline-date, .timeline-content {
    width: auto;
    left: 70px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .timeline-date {
    position: relative;
    left: 0;
    transform: none;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .timeline-content {
    margin-left: 60px !important;
  }
}

/* ========================================
   GALLERY STYLES
   ======================================== */

.gallery-item {
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-control {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-light) !important;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(203, 203, 203, 0.25);
  border-color: var(--accent-color) !important;
}

.form-label {
  color: var(--accent-color);
  font-weight: 500;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-content {
  padding: 60px 0;
  flex: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .gallery-controls, .schedule-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .event-date {
    font-size: 1rem;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .event-details {
    padding: 20px;
  }
}

/* ========================================
   SCROLL BEHAVIOR
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
   TAB NAVIGATION
   ======================================== */

.tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
}

.tab-link {
  padding: 15px 15px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-link:hover, .tab-link.active {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal-content {
  background: var(--secondary-dark);
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.event-selector {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 50px;
  width: 100%;
  max-width: 500px;
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 200px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

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

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* ========================================
   SCHEDULE SECTION
   ======================================== */

.schedule-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.schedule-filter {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.schedule-filter.active, .schedule-filter:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--primary-dark);
}

.event-card {
  margin-bottom: 30px;
  position: relative;
}

.event-date {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--primary-dark);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 2;
  font-size: 1.2rem;
}

.event-details {
  padding: 30px;
}

.event-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 20px;
  color: var(--accent-light);
}

.past-event {
  background-color: var(--past-event) !important;
}

.past-event .btn {
  background: var(--secondary-dark);
  cursor: not-allowed;
}

.event-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.event-header h2 {
  flex: 1 1 100%;
  margin: 0;
  font-size: 1.4rem;
  word-break: break-word;
}

.event-date {
  font-size: 0.95rem;
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* For very small screens */

@media (max-width: 480px) {
  .event-header {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .event-header h2 {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .event-date {
    align-self: flex-end;
  }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: 800px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  border-radius: 16px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-link {
  color: #f0c040;
  text-decoration: underline;
}

.cookie-btn {
  background: #f0c040;
  color: #000000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-btn:hover {
  background: #ffd65c;
}

/* ========================================
   LOGIN STYLES
   ======================================== */

.login-container {
  max-width: 450px;
  width: 100%;
  margin: 4rem auto;
  animation: fadeInUp 0.5s ease;
}

.login-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: rgba(203, 203, 203, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.login-card-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
}

.login-card-body {
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
}

.btn-login {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
  color: var(--primary-dark);
  border-radius: 0.35rem;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(203, 203, 203, 0.2);
}

.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-color);
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  z-index: 0;
}

.divider-text {
  display: inline-block;
  background: var(--glass-bg);
  padding: 0 1rem;
  position: relative;
  z-index: 1;
  border-radius: 2rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.social-login .btn {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 0.35rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-google {
  background-color: #ea4335;
  color: white;
  border: 1px solid #d33426;
}

.btn-facebook {
  background-color: #3b5998;
  color: white;
  border: 1px solid #2d4373;
}

.social-login .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-light);
}

.login-footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-footer a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.form-floating > label {
  padding: 1rem 0.75rem;
  color: var(--text-light);
  opacity: 0.8;
}

.form-floating > .form-control:focus ~ label {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .login-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .login-card-header, .login-card-body {
    padding: 1.5rem;
  }
}

/* ========================================
   CONTACT ICONS AND STEP NUMBERS
   ======================================== */

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-right: 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

/* NUCLEAR FIX: Remove all pointer-events restrictions */

.portfolio-card, .portfolio-card-body, .portfolio-card-img-container, .portfolio-card-title, .portfolio-card-text {
  pointer-events: auto !important;
}

/* Force button to be clickable */

.portfolio-view-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 9999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  transform: none !important;
}

/* Make sure nothing is overlapping */

.portfolio-card::before, .portfolio-card::after, .portfolio-card-body::before, .portfolio-card-body::after {
  display: none !important;
}

