/* ============================================
   Portfolio Website - Styles
   Mohammad Almomani - Actuarial Analyst
   ============================================ */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
  /* Colors - Professional Blue Palette */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #06b6d4;
  --accent: #8b5cf6;
  
  /* Dark Theme */
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-light: #f8fafc;
  --text-gray: #94a3b8;
  
  /* Glass Effect */
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --text-light: #0f172a;
  --text-gray: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Background Effect
   ============================================ */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.blob-1 {
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--primary);
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: var(--accent);
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] header.scrolled {
  background: rgba(248, 250, 252, 0.9);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-light);
  background: none;
  border: none;
  padding: 0.5rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--secondary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--secondary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Skills Section
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.skill-category h3 i {
  color: var(--secondary);
  font-size: 1.75rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  padding: 0.75rem 0;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-list li::before {
  content: '▹';
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.25rem;
}

.coming-soon {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 0.5rem;
  border: 1px dashed var(--secondary);
}

.coming-soon p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
}

/* ============================================
   Experience Timeline
   ============================================ */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--glass-border);
}

.timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.timeline-content {
  background: var(--glass-bg);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
}

.timeline-date {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.timeline-content h4 {
  color: var(--text-gray);
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.timeline-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
#contact {
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
}

.contact-intro {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--secondary);
  background: rgba(0, 0, 0, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.25rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.social-icon:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-3px);
  border-color: var(--secondary);
}

.contact-info {
  margin-top: 1.5rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-gray);
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .contact-container {
    padding: 2rem;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
}
