/* style.css - Modern Dark Theme for Appdore Hub */

/* CSS Variables for easy theming */
:root {
  --bg-dark: #1a1d29;
  --bg-darker: #13151f;
  --bg-card: #252936;
  --text-primary: #e8eaed;
  --text-secondary: #9ca3af;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-purple: #8b5cf6;
  --border-color: #2d3139;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header - Light background for black logo */
header {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e5e7eb;
}

.logo-container {
  text-align: center;
  margin-bottom: 8px;
}

.logo {
  width: 160px;
  height: auto;
}

nav {
  text-align: center;
}

nav a {
  display: inline-block;
  margin: 0 20px;
  padding: 6px 0;
  text-decoration: none;
  color: #1a1d29;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--accent-blue);
}

nav a:hover::after {
  width: 100%;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section - Full width animated gradient */
.hero {
  text-align: center;
  padding: 50px 24px 40px;
  background: linear-gradient(-45deg, #1a1d29, #252936, #1e2230, #2d3139);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  margin: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Projects Section */
.projects {
  margin: 60px 0;
}

.projects h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 48px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Modern Project Cards */
.project-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 28px 22px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.project-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 48px;
}

/* Modern Buttons */
.btn, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn {
  background: var(--accent-blue);
  color: #ffffff !important; /* Force white text */
}

.btn:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: #ffffff !important; /* Keep white on hover */
}

.btn i {
  font-size: 0.8rem;
  color: #ffffff; /* Ensure icons are white too */
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue) !important;
  border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  color: #ffffff !important;
}

/* About/Origin Story */
.about {
  margin: 60px 0;
  padding: 40px 32px;
  background: var(--bg-card);
  border-radius: 10px;
  border-left: 3px solid var(--accent-purple);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-purple);
}

.about h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 28px;
  font-weight: 600;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.about p strong {
  color: var(--text-primary);
}

/* Contact Summary */
.contact-summary {
  text-align: center;
  margin: 60px 0;
  padding: 36px 24px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.contact-summary h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-summary p {
  margin: 10px 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-summary a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-summary a:hover {
  color: var(--accent-blue-hover);
}

/* Contact Page */
.contact-page, .legal-page {
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin: 32px 0;
}

.contact-page h1, .legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-details {
  margin: 28px 0;
  padding: 24px;
  background: var(--bg-darker);
  border-radius: 8px;
  border-left: 3px solid var(--accent-blue);
}

.contact-details p {
  margin: 10px 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-details strong {
  color: var(--text-primary);
}

.contact-details a {
  color: var(--accent-blue);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.map-container {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Legal Pages */
.legal-page h2 {
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 1.4rem;
  font-weight: 600;
}

.legal-page p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-page ul {
  margin: 14px 0;
  padding-left: 24px;
  color: var(--text-secondary);
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-page a {
  color: var(--accent-blue);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: 60px;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-darker);
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

footer p {
  margin: 6px 0;
}

footer a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-blue-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 48px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 1.1rem;
  }
  
  .projects h2 {
    font-size: 1.8rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  nav a {
    margin: 0 12px;
    font-size: 0.9rem;
  }
  
  .about, .contact-page, .legal-page {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 16px 40px;
    margin: 0 -16px 48px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .project-card {
    padding: 24px 18px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  nav a {
    margin: 0 8px;
  }
}