/* Section Styles */
@import 'colors.css';

/* Landing Section */
#landing {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: 70px; /* Account for fixed header */
}

.landing-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: var(--z-normal);
  padding: var(--space-8);
  box-sizing: border-box;
  text-align: center;
  max-width: var(--container-lg);
}

.intro {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-5);
  max-width: 600px;
  text-align: center;
  color: var(--light-gray-1);
  line-height: var(--line-height-relaxed);
}

.cta-container {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-down {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: var(--font-size-xl);
  text-decoration: none;
  animation: bounce 2s infinite;
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

.scroll-down:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-below);
}

/* Hero Section */
.hero-section {
  padding: var(--space-10) var(--space-4);
  position: relative;
  overflow: hidden;
  background: var(--gradient-matrix);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-below);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-below);
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.shape-1 {
  background: var(--accent);
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.shape-2 {
  background: var(--primary);
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -150px;
}

.shape-3 {
  background: var(--secondary);
  width: 250px;
  height: 250px;
  bottom: 100px;
  left: 30%;
}

.glass-container {
  background: rgba(15, 10, 30, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--elevation-3);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8);
  position: relative;
  z-index: var(--z-normal);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero-text-column {
  flex: 1;
  min-width: 300px;
}

.hero-intro {
  margin-bottom: var(--space-6);
}

.hero-greeting {
  font-size: var(--font-size-lg);
  color: var(--accent);
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
}

.hero-name {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin: var(--space-2) 0;
  background: linear-gradient(to right, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-bottom: var(--space-1);
  border-bottom: none;
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--white);
}

.hero-company {
  font-size: var(--font-size-lg);
  color: var(--accent);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-2);
  font-size: var(--font-size-md);
  margin-top: var(--space-2);
}

.hero-bio {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--light-gray-1);
  margin-bottom: var(--space-6);
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.profile-card {
  background: rgba(30, 20, 60, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--elevation-2);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--elevation-3);
}

.profile-header {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  box-shadow: var(--elevation-2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  20%, 100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.profile-info h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--white);
  padding-left: 0;
}

.profile-info h3::before {
  display: none;
}

.profile-info p {
  margin: var(--space-1) 0 0;
  color: var(--gray-2);
  font-size: var(--font-size-md);
}

.profile-body {
  padding: var(--space-4);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skill-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.skill-label {
  font-size: var(--font-size-sm);
  color: var(--light-gray-1);
}

.skill-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--primary));
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.profile-footer {
  padding: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.tech-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(45, 27, 78, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: var(--font-size-md);
  box-shadow: var(--elevation-1);
  border: 1px solid rgba(138, 99, 210, 0.2);
  transition: all var(--transition-normal);
}

.tech-badge:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--elevation-2);
  color: var(--white);
  background: var(--primary);
}

.code-snippet {
  background: rgba(20, 15, 35, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--elevation-2);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.code-snippet:hover {
  transform: translateY(-5px);
  box-shadow: var(--elevation-3);
}

.code-header {
  background: rgba(30, 20, 50, 0.8);
  padding: var(--space-2) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-title {
  font-family: monospace;
  color: var(--light-gray-1);
  font-size: var(--font-size-sm);
}

.code-actions {
  display: flex;
  gap: var(--space-2);
}

.code-action {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: rgba(0, 0, 0, 0.6);
}

.code-action:nth-child(1) {
  background: #ff5f56;
}

.code-action:nth-child(2) {
  background: #ffbd2e;
}

.code-action:nth-child(3) {
  background: #27c93f;
}

.code-content {
  padding: var(--space-4);
  margin: 0;
  font-family: monospace;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--light-gray-1);
  overflow-x: auto;
}

.code-content code {
  display: block;
}

/* Syntax highlighting for code */
.code-content .keyword {
  color: #ff79c6;
}

.code-content .string {
  color: #f1fa8c;
}

.code-content .comment {
  color: #6272a4;
}

.code-content .type {
  color: #8be9fd;
}

.code-content .method {
  color: #50fa7b;
}

/* About Section */
#about .card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Education Section */
.education-item {
  display: flex;
  margin-bottom: var(--space-8);
  position: relative;
  padding-left: var(--space-4);
}

.education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary-light));
  border-radius: var(--radius-full);
}

.education-year {
  flex: 0 0 120px;
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  padding-right: var(--space-4);
}

.education-details {
  flex: 1;
}

.education-details h3 {
  padding-left: 0;
  margin-bottom: var(--space-1);
}

.education-details h3::before {
  display: none;
}

.education-details p {
  margin-bottom: var(--space-2);
  color: var(--gray-2);
}

.education-details ul {
  margin-top: var(--space-3);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* Contact Section */
.contact-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-8) auto;
}

.contact-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.contact-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(45, 27, 78, 0.3);
  border-radius: var(--radius-full);
  color: var(--light-gray-1);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 1px solid rgba(138, 99, 210, 0.2);
}

.contact-option:hover {
  background: rgba(45, 27, 78, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--elevation-2);
  border-color: rgba(138, 99, 210, 0.4);
  color: var(--white);
}

.contact-option i {
  color: var(--accent);
  font-size: var(--font-size-lg);
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-content {
    gap: var(--space-6);
  }

  .education-year {
    flex: 0 0 100px;
  }
}

@media (max-width: 768px) {
  #landing {
    padding-top: 60px;
  }

  .landing-container {
    padding: var(--space-4);
  }

  .intro {
    font-size: var(--font-size-md);
  }

  .hero-section {
    padding: var(--space-6) var(--space-4);
  }

  .glass-container {
    padding: var(--space-5);
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
  }

  .hero-text-column {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-name {
    font-size: var(--font-size-3xl);
  }

  .hero-title {
    font-size: var(--font-size-lg);
  }

  .hero-company {
    font-size: var(--font-size-md);
  }

  .hero-bio {
    font-size: var(--font-size-md);
    margin: 0 auto var(--space-5) auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .profile-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .code-snippet {
    max-width: 400px;
    margin: 0 auto;
  }

  .education-item {
    flex-direction: column;
  }

  .education-year {
    margin-bottom: var(--space-2);
  }

  .contact-option {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--space-4) var(--space-3);
    min-height: auto;
  }

  .glass-container {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .hero-name {
    font-size: var(--font-size-2xl);
  }

  .hero-title-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: var(--font-size-md);
  }

  .hero-company {
    font-size: var(--font-size-sm);
  }

  .hero-bio {
    font-size: var(--font-size-sm);
  }

  .hero-stats {
    gap: var(--space-4);
  }

  .stat-value {
    font-size: var(--font-size-2xl);
  }

  .stat-label {
    font-size: var(--font-size-xs);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
  }

  .hero-cta .cta-button {
    width: 100%;
  }

  .profile-card {
    max-width: 100%;
  }

  .code-snippet {
    max-width: 100%;
  }

  .profile-header {
    padding: var(--space-3);
  }

  .profile-avatar {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }

  .profile-info h3 {
    font-size: var(--font-size-md);
  }

  .profile-info p {
    font-size: var(--font-size-sm);
  }

  .profile-body {
    padding: var(--space-3);
  }

  .skill-label {
    font-size: var(--font-size-xs);
  }

  .skill-progress {
    height: 6px;
  }

  .tech-badge {
    width: 30px;
    height: 30px;
    font-size: var(--font-size-sm);
  }

  .code-content {
    font-size: var(--font-size-xs);
    padding: var(--space-3);
  }

  .highlight-item {
    width: 100%;
    justify-content: center;
  }
}
