/* ===== PAGES SHARED STYLES ===== */

/* Network Background for inner pages */
.bg-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/bg-network.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: -2;
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(10, 16, 20, 0.85) 0%, 
    rgba(10, 16, 20, 0.75) 50%,
    rgba(10, 16, 20, 0.9) 100%
  );
}

/* Project Screenshots */
.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--bg-secondary);
}

.project-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-full:hover .project-screenshot {
  transform: scale(1.05);
}

.project-screenshot + .project-placeholder {
  display: none;
}

/* Page Hero */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 20px;
}

/* Skills Page */
.skills-section {
  padding-bottom: 60px;
}

.skill-category {
  margin-bottom: 60px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: var(--transition-medium);
}

.skill-category:hover {
  border-color: var(--border-glow);
}

.skill-category.highlight-category {
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.05) 0%, rgba(0, 180, 216, 0.05) 100%);
  border-color: var(--border-glow);
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.category-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon svg,
.category-icon i {
  width: 28px;
  height: 28px;
  color: var(--bg-primary);
}

.category-icon.ml-icon {
  background: linear-gradient(135deg, #00b4d8 0%, #ff6b6b 100%);
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.learning-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

/* Tech Grid Enhanced */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-medium);
}

.tech-item:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 229, 204, 0.05);
  transform: translateY(-5px);
}

.tech-item i,
.tech-item img {
  width: 48px;
  height: 48px;
  font-size: 48px;
  object-fit: contain;
}

.tech-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

.tech-item:hover span {
  color: var(--text-primary);
}

/* Trading Skills Grid */
.trading-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.trading-skill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition-fast);
}

.trading-skill:hover {
  border-color: var(--accent-primary);
}

.trading-skill i,
.trading-skill svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.trading-skill span {
  font-weight: 500;
  color: var(--text-secondary);
}

.trading-skill:hover span {
  color: var(--text-primary);
}

/* Languages Grid */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.language-flag {
  font-size: 2rem;
}

.language-info {
  flex: 1;
}

.language-name {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.language-level {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.language-bar {
  width: 60px;
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.language-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
}

/* Learning Section */
.learning-section {
  background: var(--bg-secondary);
}

.learning-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.learning-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition-medium);
}

.learning-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-5px);
}

.learning-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.learning-icon svg,
.learning-icon i {
  width: 28px;
  height: 28px;
  color: var(--accent-secondary);
}

.learning-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.learning-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.progress-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-secondary);
  border-radius: 3px;
  transition: width 1s ease;
}

/* About Page */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

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

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--text-primary);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
  color: var(--bg-primary);
}

.highlight-text {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Projects Page */
.projects-section {
  padding: 80px 0;
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0, 229, 204, 0.1);
}

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
}

.project-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-medium);
}

.project-card-full:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 229, 204, 0.15);
}

.project-card-full .project-image {
  height: 220px;
}

.project-card-full .project-content {
  padding: 28px;
}

.project-card-full .project-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.project-card-full .project-description {
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.project-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.project-btn.primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--bg-primary);
}

.project-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 229, 204, 0.3);
}

.project-btn svg {
  width: 18px;
  height: 18px;
}

/* Experience Page */
.experience-section {
  padding: 80px 0;
}

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

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

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 50px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:first-child .timeline-dot {
  width: 20px;
  height: 20px;
  left: -9px;
  animation: pulse 2s infinite;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition-medium);
}

.timeline-content:hover {
  border-color: var(--accent-primary);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.timeline-company {
  color: var(--accent-primary);
  font-weight: 500;
  margin-top: 4px;
}

.timeline-date {
  padding: 6px 14px;
  background: rgba(0, 229, 204, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.contact-method:hover {
  border-color: var(--accent-primary);
  transform: translateX(8px);
}

.contact-method-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 28px;
  height: 28px;
  color: var(--bg-primary);
}

.contact-method-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-method-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 204, 0.4);
}

/* References Section */
.references-section {
  background: var(--bg-secondary);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.reference-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.reference-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.reference-title {
  color: var(--accent-primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.reference-company {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.reference-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reference-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.reference-contact a:hover {
  color: var(--accent-primary);
}

.reference-contact svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .projects-full-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--nav-height) + 50px) 0 50px;
  }
  
  .skill-category {
    padding: 24px;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 8px;
  }
  
  .timeline-item {
    padding-left: 30px;
  }
  
  .timeline-dot {
    left: 1px;
  }
  
  .timeline-header {
    flex-direction: column;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
}
