/* MyCurriculum Website Styles */
/* Using theme colors from src/constants/theme.ts */

:root {
  /* Theme Colors from LightColors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --background: #ffffff;
  --background-secondary: #f8f9fa;
  --background-tertiary: #f1f5f9;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --border: #e5e7eb;
  --border-secondary: #d1d5db;
  --card-background: #ffffff;
  --overlay: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(0, 0, 0, 0.1);
  
  /* Spacing from theme.ts */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-xxl: 24px;
  --spacing-xxxl: 32px;
  --spacing-xxxxl: 60px;
  
  /* Typography from theme.ts */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-xxl: 24px;
  --font-size-xxxl: 32px;
  
  /* Border Radius from theme.ts */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--font-size-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xxxl);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-mobile {
  display: none;
  cursor: pointer;
  font-size: var(--font-size-xl);
  color: var(--primary);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.mobile-menu-content {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  /* Fallback for when hero-bg.jpg is not available */
  /* background: url('../assets/images/hero-bg.jpg') center/cover no-repeat; */
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.9) 0%, 
    rgba(79, 70, 229, 0.8) 50%, 
    rgba(99, 102, 241, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxxxl);
  align-items: center;
  padding: var(--spacing-xxxxl) 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-xl);
  color: var(--text-inverse);
}

.text-primary {
  color: #f1f5f9;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  margin-bottom: var(--spacing-xxxl);
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xxxxl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-xxl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--text-inverse);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--background-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text-inverse);
  border-color: var(--text-inverse);
}

.btn-secondary:hover {
  background: var(--text-inverse);
  color: var(--primary);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xxxl);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-inverse);
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--spacing-xs);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 400px;
  height: 800px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 30px;
  padding: 10px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  /* Fallback gradient when image is not available */
  background: linear-gradient(145deg, var(--background-tertiary) 0%, var(--background-secondary) 100%);
}

/* Handle missing image gracefully */
.app-screenshot::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Features Section */
.features {
  padding: var(--spacing-xxxxl) 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxxxl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xxxl);
}

.feature-card {
  background: var(--card-background);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xxxl);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-xxl);
  color: var(--text-inverse);
}

.feature-icon.ai-generated {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.feature-icon.cross-platform {
  background: linear-gradient(135deg, var(--info), #1e40af);
}

.feature-icon.progress-tracking {
  background: linear-gradient(135deg, var(--success), #065f46);
}

.feature-icon.latex-rendering {
  background: linear-gradient(135deg, var(--warning), #92400e);
}

.feature-icon.secure-auth {
  background: linear-gradient(135deg, var(--error), #dc2626);
}

.feature-icon.personalized {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.feature-list .fa-check {
  color: var(--success);
  font-size: var(--font-size-sm);
}

/* Download Section */
.download {
  padding: var(--spacing-xxxxl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
}

.download-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxxxl);
  align-items: center;
  text-align: center;
}

.download-text {
  max-width: 700px;
  text-align: center;
}

.download-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.download-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xxxl);
  opacity: 0.9;
  line-height: 1.6;
}

.download-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.download-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.download-feature .fa-check-circle {
  color: var(--success);
  font-size: var(--font-size-lg);
}

.download-buttons {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  align-items: center;
  justify-content: center;
}

.download-btn {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.download-btn img {
  width: 350px;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.download-btn:hover img {
  transform: scale(1.03);
}

/* Hide text elements - we only want the SVG */
.download-btn-text {
  display: none;
}

/* Contact Section */
.contact {
  padding: var(--spacing-xxxxl) 0;
  background: var(--background);
}

.contact-content {
  display: flex;
  justify-content: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xxxl);
  max-width: 800px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-xxl);
  background: var(--card-background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.contact-details p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: var(--spacing-xxxxl) 0 var(--spacing-xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--spacing-xxxl);
  margin-bottom: var(--spacing-xxxl);
}

.footer-brand {
  grid-column: 1 / 2;
}

.footer-brand .footer-logo {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-title {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-light);
  margin: var(--spacing-sm) 0 var(--spacing-md) 0;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xxxl);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-heading {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-inverse);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xxl);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: var(--spacing-xl);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-buttons {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .download-btn img {
    width: 280px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .contact-item {
    margin: 0 auto;
    max-width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    grid-column: 1;
    margin-bottom: var(--spacing-xl);
  }
  
  .footer-links {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}

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

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

.phone-mockup {
  animation: float 3s ease-in-out infinite;
}

/* Scroll animations */
.feature-card,
.tech-item,
.contact-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Utilities */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
