/* Page Container */
.pages-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: 80px;
}

@media (max-width: 768px) {
  .pages-container {
    padding-top: 100px; /* Extra space for wrapped navigation */
  }
  
  .page {
    top: 100px;
    height: calc(100vh - 100px);
  }
}

/* Hide scrollbar globally */
body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

html {
  overflow-x: hidden;
}

* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

.page {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  min-height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  opacity: 0;
  transform: translateX(100%);
  transition: all var(--transition-duration) var(--transition-timing);
  overflow-y: auto;
  overflow-x: hidden;
  /* Hide scrollbar but keep functionality */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.page::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

@media (max-width: 768px) {
  .page {
    top: 120px; /* Match increased nav height */
    height: calc(100vh - 120px);
  }
}

.page.active {
  opacity: 1;
  transform: translateX(0);
}

.page.slide-out-left {
  opacity: 0;
  transform: translateX(-100%);
}

.page.slide-out-right {
  opacity: 0;
  transform: translateX(100%);
}

/* Page Content */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  min-height: calc(100vh - 80px);
  position: relative;
  z-index: 1;
}

.page-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 229, 204, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: auto;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding: 2rem 0;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-display {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-secondary) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 229, 204, 0.2);
  position: relative;
  overflow: hidden;
}

.logo-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.1) 0%, transparent 100%);
  z-index: 1;
}

.logo-display img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 229, 204, 0.3));
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-cyan);
  color: var(--dark-bg-primary);
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 229, 204, 0.4);
}

/* Experience Boxes */
.experience-box {
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.03) 0%, rgba(0, 229, 204, 0.01) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
}

.experience-box:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 50px rgba(0, 229, 204, 0.3);
}

.experience-image {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.experience-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
  transition: all var(--transition-base);
}

.experience-box:hover .experience-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
}

.experience-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: var(--primary-cyan);
  text-shadow: 0 0 20px rgba(0, 229, 204, 0.5);
  transition: all var(--transition-base);
  z-index: 2;
}

.experience-box:hover .experience-icon {
  transform: translate(-50%, -50%) scale(1.1);
  text-shadow: 0 0 30px rgba(0, 229, 204, 0.8);
}

.experience-content {
  padding: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.experience-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.experience-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 229, 204, 0.3);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.card {
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.05) 0%, rgba(0, 229, 204, 0.02) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-md);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(0, 229, 204, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 229, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
}

.card-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.project-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.project-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.portfolio-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.portfolio-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--dark-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 229, 204, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid var(--dark-bg-primary);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.portfolio-item:hover .play-button {
  transform: scale(1.1);
}

.portfolio-info {
  padding: var(--spacing-md);
}

.portfolio-title {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.portfolio-description {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-md);
  text-align: center;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-sm);
  border: 2px solid var(--primary-cyan);
}

.testimonial-name {
  font-size: 1.125rem;
  color: var(--primary-cyan);
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  color: var(--text-muted);
  font-style: italic;
}

/* Contact Info */
.contact-list {
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  background: var(--card-bg);
  border-radius: 8px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.contact-text {
  flex: 1;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  background: var(--dark-bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-lg);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-hover);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .page-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }

  .hero-image {
    margin-top: var(--spacing-md);
  }

  .logo-display {
    width: 200px;
    height: 200px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

