/* === REVISED style.css === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background: #0f172a;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: #1e293b;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header h1 a {
  color: #60a5fa;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
}

.site-header nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-header nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: #60a5fa;
}

/* Hero & About */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid #1e293b;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.4rem;
  color: #94a3b8;
  margin-top: 1rem;
}

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

.project-card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 1rem 1.5rem 0.5rem;
  color: #60a5fa;
}

.project-card p {
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.btn {
  display: inline-block;
  margin: 1rem 1.5rem;
  padding: 0.6rem 1.2rem;
  background: #60a5fa;
  color: #0f172a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #64748b;
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.site-footer a {
  color: #60a5fa;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .site-header nav ul {
    gap: 1rem;
  }
}
.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn.secondary {
  background: #475569;
  color: white;
}

.coming-soon {
  opacity: 0.7;
}

.coming-soon a {
  pointer-events: none;
}

/* Password Generator Styles */
.password-generator-section {
  padding: 2rem 0;
}

.password-generator-section h2 {
  color: #60a5fa;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.password-generator-section > p {
  color: #a1a5b3;
  margin-bottom: 2rem;
}

.generator-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

.password-display {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.password-display input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  color: #60a5fa;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
}

.btn-copy {
  background: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 150ms ease;
}

.btn-copy:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-copy.copied {
  background: #10b981;
}

/* Strength Indicator */
.strength-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.strength-bar {
  flex: 1;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #334155;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: #ef4444;
  transition: width 200ms ease, background-color 200ms ease;
}

.strength-text {
  color: #a1a5b3;
  min-width: 60px;
  text-align: right;
  font-weight: 600;
}

/* Generator Controls */
.generator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-group label {
  color: #e5e7eb;
  font-weight: 500;
}

.control-group input[type="range"] {
  flex: 1;
  height: 6px;
  background: #1e293b;
  border: none;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #60a5fa;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #60a5fa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

#lengthValue {
  color: #60a5fa;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

.checkbox-group {
  flex-direction: column;
  align-items: flex-start;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #e5e7eb;
  font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #60a5fa;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  width: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Weather Dashboard Styles */
.weather-section {
  padding: 2rem 0;
}

.weather-section h2 {
  color: #60a5fa;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.weather-section > p {
  color: #a1a5b3;
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

.loading-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #a1a5b3;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid #334155;
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.error-state {
  background: #7f1d1d;
  border: 1px solid #dc2626;
  border-radius: 8px;
  padding: 1.5rem;
  color: #fecaca;
  text-align: center;
}

.error-state p {
  margin-bottom: 1rem;
}

/* Current Weather Card */
.current-weather-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.location h3 {
  color: #e5e7eb;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.update-time {
  color: #a1a5b3;
  font-size: 0.85rem;
}

.weather-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
}

.temp-section {
  flex: 1;
}

.temperature {
  color: #60a5fa;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.weather-desc {
  color: #e5e7eb;
  font-size: 1.1rem;
  font-weight: 500;
}

.weather-icon {
  font-size: 4rem;
  text-align: center;
  min-width: 100px;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail .label {
  color: #a1a5b3;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.detail .value {
  color: #60a5fa;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Forecast Section */
.forecast-section {
  margin-top: 2rem;
}

.forecast-section h3 {
  color: #e5e7eb;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.forecast-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: all 200ms ease;
}

.forecast-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.2);
  transform: translateY(-4px);
}

.forecast-date {
  color: #a1a5b3;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.forecast-icon {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.forecast-temp {
  color: #60a5fa;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.forecast-desc {
  color: #e5e7eb;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.forecast-detail {
  color: #a1a5b3;
  font-size: 0.75rem;
  margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .weather-display {
    flex-direction: column;
    gap: 1rem;
  }

  .temperature {
    font-size: 2.5rem;
  }

  .weather-icon {
    font-size: 3rem;
  }

  .weather-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .weather-details {
    grid-template-columns: 1fr;
  }

  .temperature {
    font-size: 2rem;
  }

  .weather-icon {
    font-size: 2.5rem;
  }

  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}