/* Modern, Elegant Stylesheet for GTNJ Studios */

:root {
  --primary-color: #1a237e; /* Deep Blue */
  --secondary-color: #3949ab; /* Medium Blue */
  --accent-color: #00bcd4; /* Cyan Accent */
  --text-primary: #212121;
  --text-secondary: #757575;
  --background-light: #ffffff;
  --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-gradient);
  color: white;
  text-align: center;
  padding: 6rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom center;
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-logo {
  max-width: 200px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  margin-top: 1rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Section Styles */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.app-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.app-icon {
  width: 80px;
  height: 80px;
  background: var(--background-gradient);
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.app-card h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.app-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
}

.app-button:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Privacy Policy Page */
.privacy-container {
  max-width: 900px;
  margin: 100px auto 50px;
  padding: 0 2rem;
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
}

.privacy-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.privacy-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.privacy-content h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.privacy-content p,
.privacy-content ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.privacy-content ul {
  padding-left: 2rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.warning-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.external-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Delete Account Page */
.delete-container {
  max-width: 700px;
  margin: 100px auto 50px;
  padding: 0 2rem;
}

.delete-form-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.warning-section {
  background: #ffebee;
  border-left: 4px solid #f44336;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.warning-section h3 {
  color: #c62828;
  margin-bottom: 1rem;
}

.warning-list {
  list-style: none;
  padding-left: 0;
}

.warning-list li {
  color: #d32f2f;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 500;
}

.warning-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.captcha-container {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.captcha-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.captcha-input {
  width: 150px;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.submit-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
  display: none;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
  display: none;
}

/* Admin Dashboard */
.admin-container {
  min-height: 100vh;
  background: #f5f5f5;
  padding-top: 80px;
}

.admin-header {
  background: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

.admin-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.login-card {
  max-width: 400px;
  margin: 50px auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.logout-button {
  padding: 0.75rem 1.5rem;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.logout-button:hover {
  background: #d32f2f;
}

.requests-table {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.requests-table h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background: var(--primary-color);
  color: white;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

table tbody tr {
  transition: var(--transition);
}

table tbody tr:hover {
  background: #f5f5f5;
}

table tbody tr.done {
  background: #ffebee;
  color: #c62828;
}

.action-button {
  padding: 0.5rem 1rem;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.action-button:hover {
  background: #388e3c;
}

.action-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.pending {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.done {
  background: #ffebee;
  color: #c62828;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1rem;
  }

  .privacy-content,
  .delete-form-card {
    padding: 2rem 1.5rem;
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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