@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  --bg-primary: #05070f;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(11, 15, 25, 0.65);
  
  --accent-teal: #00f2fe;
  --accent-blue: #4facfe;
  --accent-teal-glow: rgba(0, 242, 254, 0.35);
  --accent-blue-glow: rgba(79, 172, 254, 0.35);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(79, 172, 254, 0.15);
  --border-hover: rgba(0, 242, 254, 0.4);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
}

/* Cyberpunk Background Grid & Glows */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(79, 172, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 172, 254, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  z-index: 1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
  filter: blur(80px);
}

.glow-teal {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-teal-glow) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
  filter: blur(80px);
}

/* Main Container */
main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Top Header Bar */
header {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem 2rem 0;
  z-index: 20;
  position: relative;
}

/* Language Switcher Widget */
.lang-selector {
  display: flex;
  gap: 0.25rem;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: fadeIn 1s ease-out;
}

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

/* Coming Soon Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-teal);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
  position: relative;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Brand Title & Gradient */
.brand-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 70%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.brand-title span {
  font-weight: 300;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.status-msg {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* Portfolio Section */
.portfolio {
  margin: 0 auto 4rem;
  width: 100%;
  max-width: 750px;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Custom Cards styling */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

/* Interactive Card state */
.app-card.interactive {
  text-decoration: none;
  cursor: pointer;
}

.app-card.interactive:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 242, 254, 0.15);
}

.app-card.interactive:hover::before {
  opacity: 1;
}

.app-card.interactive:hover .card-arrow {
  transform: translateX(5px);
  color: var(--accent-teal);
}

/* Disabled Card state */
.app-card.disabled {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.app-card.disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.01) 0%, transparent 80%);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.card-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.app-card.interactive:hover .card-icon {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.05);
  color: var(--accent-teal);
}

.card-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
}

.card-badge.active {
  background: rgba(79, 172, 254, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(79, 172, 254, 0.2);
}

.card-badge.soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
  z-index: 2;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Signup Section */
.signup-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(11, 15, 25, 0.4);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.signup-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.02), transparent, rgba(0, 242, 254, 0.02));
  pointer-events: none;
}

.signup-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.signup-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .signup-form {
    flex-direction: row;
  }
}

.form-group {
  flex: 1;
  position: relative;
}

.signup-input {
  width: 100%;
  background: rgba(5, 7, 15, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  outline: none;
  transition: var(--transition-smooth);
}

.signup-input:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.signup-btn {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: #05070f;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
  filter: brightness(1.1);
}

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

/* Toast Notification (Feedback for Mock Signup) */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid var(--accent-teal);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 100;
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 10;
  letter-spacing: 0.05em;
}

footer span {
  color: var(--text-secondary);
}
