/* ============================================
   PARALLELE.DEV - Premium Landing Page
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

:root {
  --accent: #8B5CF6;
  --warm: #FB7185;
  --text-gradient: linear-gradient(135deg, var(--accent), var(--warm));
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background-color: #050813;
  color: #e4e4e7;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
  font-size: 1rem;
  color: #a1a1a6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 20, 0.45);
  border-bottom: 1px solid rgba(139, 92, 246, 0.28);
  padding: 1rem 5vw;
}

.header-container {
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-gradient);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(251, 113, 133, 0.55);
}

.btn-tertiary {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.btn-tertiary:hover {
  color: #e4e4e7;
}

/* ============================================
   HERO SECTION
   ============================================ */

main {
  padding-top: 80px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 1;
}

/* Shader Animation Container */
#shader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.shader-background {
  background: radial-gradient(circle at 20% 20%, #0b1735 0%, #050813 50%, #03050d 100%);
  overflow: hidden;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 80px);
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1rem;
  background: rgba(6, 10, 24, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #a1a1a6;
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-primary-cta {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.hero-secondary-text {
  font-size: 0.9rem;
  color: #71717a;
  margin-bottom: 1rem;
}

.hero-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

.hero-portfolio-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, transparent);
  animation: slideIn 0.6s ease-out 0.8s both;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
  }
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-portfolio-link:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   MODAL / CONTACT POPUP
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: linear-gradient(135deg, #0f1535 0%, #0a0e27 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a1a1a6;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #e4e4e7;
}

.modal h2 {
  margin-bottom: 2rem;
  color: #ffffff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(139, 92, 246, 0.16);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.9rem;
  color: #71717a;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: #e4e4e7;
  font-weight: 500;
  word-break: break-all;
}

.contact-value a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: #e4e4e7;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1a6;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(251, 113, 133, 0.45);
  color: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: rgba(6, 9, 20, 0.65);
  border-top: 1px solid rgba(251, 113, 133, 0.3);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  text-align: center;
  color: #71717a;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 1rem;
}

.footer-link {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #e4e4e7;
}

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

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-actions {
    gap: 1rem;
  }

  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 5rem 1.5rem;
  }

  .hero-cta-group {
    gap: 1rem;
  }

  .hero-primary-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .modal {
    padding: 2rem;
    margin: 1rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }

}

@media (max-width: 480px) {
  header {
    padding: 1rem 5vw;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 4rem 1rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    gap: 1rem;
    margin-top: 2rem;
  }

  .hero-primary-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .modal {
    padding: 1.5rem;
    width: 95%;
  }

  .modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-info {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }

}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

/* Disable transitions for reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
