/* Dark Theme Portfolio Styles */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-accent: #60a5fa;
  --border-color: #333333;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* Section styling */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
}

/* Card components */
.card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--text-accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text-accent);
  color: var(--text-accent);
}

.btn-secondary:hover {
  background: var(--text-accent);
  color: white;
}

/* Contact icons */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  background: #333333;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--text-accent);
  flex-shrink: 0;
}

/* Project cards */
.project-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--text-accent);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.1);
}

/* Header styling */
.header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

/* Navigation */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text-accent);
  background: var(--bg-tertiary);
}

/* Form elements */
input[type="file"] {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  color: var(--text-secondary);
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: var(--text-accent);
  background: rgba(96, 165, 250, 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .contact-item {
    padding: 0.75rem;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

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

/* Loading spinner */
.spinner {
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--text-accent);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Authentication and Edit Mode Styles */
.modal-overlay {
  backdrop-filter: blur(5px);
}

.editable-active {
  border: 2px dashed var(--text-accent) !important;
  background: rgba(96, 165, 250, 0.05) !important;
  padding: 4px !important;
  border-radius: 4px !important;
  min-height: 1.2em !important;
  cursor: text !important;
}

.editable-active:hover {
  background: rgba(96, 165, 250, 0.1) !important;
}

.editable-active:focus {
  outline: 2px solid var(--text-accent) !important;
  outline-offset: 2px !important;
  background: rgba(96, 165, 250, 0.15) !important;
}

.edit-control {
  position: relative;
  z-index: 10;
}

/* Logo container styles */
.logo-container {
  position: relative;
  display: inline-block;
}

.logo-container:hover #logo-upload {
  display: block !important;
}

#logo-upload {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Authentication buttons */
.btn-auth {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Edit mode indicators */
.edit-mode-active {
  position: relative;
}

.edit-mode-active::before {
  content: "✏️ Edit Mode";
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--text-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
  .header nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .header .flex.items-center.space-x-3 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .btn, .btn-secondary {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}