/* ============================================
   Sections - Page Sections Styling
   ============================================ */

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 40%,
      rgba(102, 126, 234, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 60%,
      rgba(118, 75, 162, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 100%
  );
  animation: heroLightSweep 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  opacity: 0.04;
  will-change: transform;
}

.floating-shape--1 {
  top: 15%;
  left: 10%;
  width: 300px;
  height: 300px;
  border: 1px solid var(--color-gradient-1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: floatShape1 20s ease-in-out infinite;
}

.floating-shape--2 {
  top: 60%;
  right: 15%;
  width: 200px;
  height: 200px;
  border: 1px solid var(--color-gradient-2);
  transform: rotate(45deg);
  animation: floatShape2 15s ease-in-out infinite;
}

.floating-shape--3 {
  top: 30%;
  right: 30%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  animation: floatShape3 18s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-title-wrapper {
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.title-line {
  overflow: hidden;
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-subtitle {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subtitle-line {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  opacity: 0;
  transform: translateX(-20px);
}

.hero-description {
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-description p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-3d {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll span {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--color-text-secondary);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 1.5s ease infinite;
}

.hero-bg-text {
  position: absolute;
  bottom: 5%;
  right: -5%;
  font-family: var(--font-primary);
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-3d {
    width: 50%;
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 24px 80px;
  }
  .hero-3d {
    width: 100%;
    opacity: 0.3;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-scroll {
    left: 24px;
  }
}

/* About Section */
.about {
  padding: 32px 48px 120px 48px;
  background: var(--color-bg-secondary);
}

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

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-gradient-1),
    var(--color-gradient-2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder span {
  font-family: var(--font-primary);
  font-size: 10rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.image-border {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  pointer-events: none;
}

.about-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--color-text-secondary);
}

.about-location svg {
  color: var(--color-accent);
}

.about-text {
  padding-top: 20px;
}

.about-intro {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--color-text);
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gradient-1),
    var(--color-gradient-2),
    transparent
  );
  transition: left 0.5s ease;
}

.stat:hover::before {
  left: 100%;
}

.stat:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(108, 99, 255, 0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--color-gradient-1),
    var(--color-gradient-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-number::after {
  content: "+";
  -webkit-text-fill-color: inherit;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .image-wrapper {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 80px 24px;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat {
    padding: 24px;
  }
}

/* Projects Section */
.projects {
  padding: 32px 48px 64px 48px;
  background: var(--color-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
  justify-items: stretch;
}

.project-card {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center center;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
  will-change: transform;
  width: 100%;
  height: 400px;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(
    135deg,
    var(--color-gradient-1),
    var(--color-gradient-2),
    var(--color-gradient-1)
  );
  border-radius: 21px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(8px);
}

.project-card:hover::before {
  opacity: 0.4;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-1deg) scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(108, 99, 255, 0.15),
    0 0 0 1px rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.3);
}

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-placeholder {
  transform: scale(1.1);
}

.project-placeholder span {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-overlay {
  opacity: 1;
  visibility: visible;
}

.view-project {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  transform: translateY(20px) scale(0.9);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    border-color 0.3s ease;
  white-space: nowrap;
}

.project-card:hover .view-project {
  transform: translateY(0) scale(1);
}

.view-project:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px) scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: var(--color-bg-secondary);
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tags span {
  padding: 8px 12px;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease;
}

.project-tags span:hover {
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.2),
    rgba(118, 75, 162, 0.2)
  );
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-1px);
}

.projects-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
  padding-top: 40px;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-card {
    height: 350px;
  }
  .project-image {
    height: 180px;
  }
  .project-info {
    height: 170px;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 80px 24px;
  }
  .project-card {
    height: 320px;
  }
  .project-image {
    height: 160px;
  }
  .project-info {
    height: 160px;
    padding: 20px;
  }
  .project-title {
    font-size: 1.25rem;
  }
  .project-placeholder span {
    font-size: 3rem;
  }
}

/* Skills Section */
.skills {
  padding: 32px 48px 120px 48px;
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-item {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  --mouse-x: 50%;
  --mouse-y: 50%;
  transition:
    border-color 0.3s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.4s ease;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: radial-gradient(
    200px circle at var(--mouse-x) var(--mouse-y),
    rgba(108, 99, 255, 0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item:hover {
  border-color: rgba(108, 99, 255, 0.3);
  background: rgba(108, 99, 255, 0.05);
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(108, 99, 255, 0.1);
}

.skill-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--color-gradient-1),
    var(--color-gradient-2)
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon svg {
  color: var(--color-text);
}

.skill-info h3 {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-info p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.skills-marquee {
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.skills-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .skills {
    padding: 80px 24px;
  }
  .skills-list {
    grid-template-columns: 1fr;
  }
  .skill-item {
    padding: 24px;
  }
}

/* Contact Section */
.contact {
  padding: 0px 48px 0px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
}

.contact-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: -72px;
}

.contact-title span:last-child {
  background: linear-gradient(
    135deg,
    var(--color-gradient-1),
    var(--color-gradient-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 500px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s ease;
}

.contact-link:hover::before {
  transform: translateY(-50%) scale(1.5);
}

.contact-link:hover {
  border-color: var(--color-accent);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(108, 99, 255, 0.15);
}

.contact-link:hover .link-icon {
  transform: scale(1.1);
}

.link-icon {
  display: flex;
  color: var(--color-accent);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-text {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-visual {
  position: relative;
  height: 500px;
}

.contact-sphere {
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-visual {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 80px 24px;
  }
  .contact-links {
    flex-direction: column;
  }
  .contact-link {
    justify-content: center;
  }
  .contact-visual {
    height: 300px;
  }
}

/* Footer */
.footer {
  padding: 32px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left span,
.footer-center span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.back-to-top::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.back-to-top:hover::before {
  transform: scaleX(1);
}

.back-to-top:hover {
  color: var(--color-accent);
}

.back-to-top svg {
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer {
    padding: 24px;
  }
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-center {
    order: 3;
  }
}
