/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #0A0A0A;
  --bg-tertiary: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-tertiary: #999999;
  --accent-white: #FFFFFF;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-light: rgba(255, 255, 255, 0.05);
  --shadow-medium: rgba(255, 255, 255, 0.1);
  --shadow-glow: rgba(255, 255, 255, 0.2);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Background Elements */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.bg-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-lines::before,
.bg-lines::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
  animation: lineMove 15s ease-in-out infinite;
}

.bg-lines::before {
  left: 20%;
  animation-delay: 0s;
}

.bg-lines::after {
  right: 20%;
  animation-delay: 7.5s;
}

@keyframes lineMove {
  0%, 100% {
    opacity: 0;
    transform: translateY(-100%);
  }
  50% {
    opacity: 1;
    transform: translateY(100%);
  }
}

/* App Showcase */
.app-showcase {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.showcase-content {
  width: 100%;
  max-width: 1400px;
  position: relative;
}

.title-section {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.main-title {
  font-size: 6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1;
  animation: titleFadeIn 1s ease-out;
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: titleFadeIn 1s ease-out 0.3s both;
}

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

.app-circle-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-circle {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-item {
  position: absolute;
  width: 140px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-item:hover {
  z-index: 10;
}

.app-icon-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--border-color), 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 2px solid var(--border-color);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.app-icon-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-item:hover .app-icon-wrapper::before {
  opacity: 1;
}

.app-item:hover .app-icon-wrapper {
  transform: scale(1.25) rotate(8deg);
  box-shadow: 0 0 0 2px var(--accent-white), 0 0 40px var(--shadow-glow), 0 0 60px var(--shadow-glow);
  border-color: var(--accent-white);
  background: var(--bg-secondary);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
  filter: grayscale(0%);
}

.app-item:hover .app-icon {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1.1);
}

.app-item-name {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  max-width: 140px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.app-item:hover .app-item-name {
  color: var(--text-primary);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

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

.footer-email {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-email:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Privacy Policy Page */
.privacy-container {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.privacy-content {
  max-width: 800px;
  width: 100%;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.back-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.back-link:hover {
  color: var(--text-primary);
  transform: translateX(-5px);
}

.privacy-header {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.privacy-header h1 {
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-style: italic;
  font-weight: 300;
}

.privacy-body {
  line-height: 1.8;
}

.intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
}

.privacy-section {
  margin-bottom: 50px;
}

.privacy-section h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.privacy-section h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 25px;
  margin-bottom: 15px;
}

.privacy-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 300;
}

.privacy-section ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.privacy-section ul li {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  font-weight: 300;
}

.privacy-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

.privacy-section strong {
  color: var(--text-primary);
  font-weight: 400;
}

.contact-info {
  margin-top: 20px;
  padding: 25px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-info a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .privacy-container {
    padding: 30px 15px;
  }
  
  .privacy-header h1 {
    font-size: 2.2rem;
  }
  
  .privacy-section h2 {
    font-size: 1.5rem;
  }
  
  .privacy-section h3 {
    font-size: 1.2rem;
  }
  
  .intro {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .privacy-container {
    padding: 20px 10px;
  }
  
  .privacy-header h1 {
    font-size: 1.8rem;
  }
  
  .privacy-section {
    margin-bottom: 40px;
  }
  
  .privacy-section h2 {
    font-size: 1.3rem;
  }
  
  .privacy-section h3 {
    font-size: 1.1rem;
  }
  
  .privacy-section p,
  .privacy-section ul li {
    font-size: 0.95rem;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 0 1px var(--border-color), 0 40px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-primary);
  transition: stroke 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-white);
  border-color: var(--accent-white);
  transform: rotate(90deg);
}

.modal-close:hover svg {
  stroke: var(--bg-primary);
}

.modal-content {
  padding: 60px 50px;
}

.modal-header {
  text-align: center;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 40px;
}

.modal-app-icon {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  margin: 0 auto 30px;
  box-shadow: 0 0 0 1px var(--border-color), 0 12px 40px rgba(0, 0, 0, 0.6);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.modal-app-name {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.modal-app-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.modal-screenshots {
  margin-bottom: 50px;
}

.screenshot-gallery {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-primary);
  padding: 20px 0;
}

.screenshot-gallery::-webkit-scrollbar {
  height: 8px;
}

.screenshot-gallery::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.screenshot-gallery::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.screenshot-gallery::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.screenshot-scroll {
  display: flex;
  gap: 16px;
  padding: 0 10px;
  min-width: min-content;
}

.screenshot-item {
  flex-shrink: 0;
  width: 280px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.screenshot-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-white);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-item:hover img {
  transform: scale(1.02);
}

.modal-download {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.download-button {
  display: inline-block;
  padding: 18px 48px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--accent-white);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-white);
  transition: left 0.3s ease;
  z-index: -1;
}

.download-button:hover {
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.download-button:hover::before {
  left: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-title {
    font-size: 4.5rem;
  }
  
  .app-item {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 3.5rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .title-section {
    margin-bottom: 50px;
  }
  
  .app-circle-container {
    height: auto;
    min-height: auto;
    padding: 40px 20px;
  }

  .app-circle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 40px;
    width: 100%;
    height: auto;
    position: static;
  }

  .app-item {
    position: static;
    margin: 0 auto;
    width: 100px;
  }
  
  .app-icon-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .app-item-name {
    max-width: 100px;
    font-size: 0.7rem;
    margin-top: 10px;
  }

  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-content {
    padding: 40px 30px;
  }

  .modal-app-icon {
    width: 120px;
    height: 120px;
  }

  .modal-app-name {
    font-size: 2rem;
  }
  
  .screenshot-item {
    width: 240px;
    height: 430px;
  }
  
  .screenshot-scroll {
    gap: 14px;
  }
  
  .footer {
    padding: 50px 20px 30px;
    margin-top: 60px;
  }
  
  .footer-email {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2.5rem;
  }
  
  .app-showcase {
    padding: 40px 15px;
  }

  .app-item {
    width: 90px;
  }
  
  .app-icon-wrapper {
    width: 90px;
    height: 90px;
  }
  
  .app-item-name {
    max-width: 90px;
    font-size: 0.65rem;
    margin-top: 8px;
  }
  
  .footer {
    padding: 40px 15px 25px;
    margin-top: 40px;
  }
  
  .footer-email {
    font-size: 0.85rem;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-app-name {
    font-size: 1.6rem;
  }

  .modal-app-description {
    font-size: 1rem;
  }
  
  .screenshot-item {
    width: 200px;
    height: 360px;
    border-radius: 16px;
  }
  
  .screenshot-scroll {
    gap: 12px;
    padding: 0 5px;
  }
  
  .modal-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-item {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.app-item:nth-child(1) { animation-delay: 0.1s; }
.app-item:nth-child(2) { animation-delay: 0.2s; }
.app-item:nth-child(3) { animation-delay: 0.3s; }
.app-item:nth-child(4) { animation-delay: 0.4s; }
.app-item:nth-child(5) { animation-delay: 0.5s; }
.app-item:nth-child(6) { animation-delay: 0.6s; }

/* Scrollbar styling */
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.modal-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}
