/* ==========================================
   INDUSTRIAL PORTFOLIO THEME
   I based it on the Templatemo Axis template
   because I like the metal/engineering look.
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #f39c12;          /* orange like sparks */
  --primary-dark: #e67e22;
  --bg-dark: #1e1e1e;
  --bg-darker: #141414;
  --bg-card: #2a2a2a;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --border: #444444;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- background, no clouds, just industrial gradient ---------- */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background:
    radial-gradient(circle at 20% 30%, #2c2c2c 0%, #141414 70%),
    repeating-linear-gradient(45deg, #1a1a1a 0px, #1a1a1a 2px, #222222 2px, #222222 4px);
  z-index: -1;
  will-change: transform;
  transform: translateZ(0);
}

/* scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  z-index: 999;
  border-bottom: 2px solid var(--primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.admin-link {
  font-size: 1.3rem;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  user-select: none;
}

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(243,156,18,0.5);
  animation: fadeInUp 0.8s ease;
}

.tagline {
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: #1e1e1e;
  text-decoration: none;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 25px rgba(243,156,18,0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background: transparent;
  color: #6c757d;
}

/* sections */
.section {
  padding: 5rem 2rem;
  background: rgba(20, 20, 20, 0.9);
  border-top: 1px solid var(--border);
}

.light-bg {
  background: rgba(30, 30, 30, 0.9);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 0;
}

/* about grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.skill-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(243,156,18,0.3);
  transform: translateY(-5px);
}

.skill-card .icon {
  font-size: 2.5rem;
}

.skill-card h3 {
  margin: 0.5rem 0;
  color: var(--primary);
  text-transform: uppercase;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* interests */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.interest-item {
  background: var(--bg-card);
  padding: 2rem 1rem;
  border-radius: 0;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: default;
}

.interest-item:hover {
  border-color: var(--primary);
  background: #333;
  color: var(--primary);
  transform: scale(1.03);
}

/* page content */
.page-content {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 3rem;
  background: rgba(20, 20, 20, 0.95);
}

.page-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(243,156,18,0.2);
  transform: translateY(-8px);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background-color: #333;
}

.project-info {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* contact */
.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card {
  background: var(--bg-card);
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: 0;
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.email-btn {
  margin: 1.5rem 0;
}

.email-display {
  font-weight: 600;
  color: var(--text-muted);
  word-break: break-all;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-size: 2rem;
  text-decoration: none;
  transition: var(--transition);
  filter: grayscale(1);
}

.social-links a:hover {
  transform: scale(1.2);
  filter: grayscale(0);
}

/* admin */
.admin-page {
  padding-bottom: 4rem;
}

.admin-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.admin-form-card,
.admin-project-list {
  background: var(--bg-card);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0;
}

.admin-form-card h2,
.admin-project-list h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(243,156,18,0.3);
}

.admin-list {
  max-height: 500px;
  overflow-y: auto;
}

.admin-project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-bottom: 1px solid #333;
}

.admin-project-item:last-child {
  border-bottom: none;
}

.admin-project-item .item-info {
  flex: 1;
}

.admin-project-item .item-actions {
  display: flex;
  gap: 0.5rem;
}

.item-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.item-actions .edit-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.item-actions .delete-btn:hover {
  color: #e74c3c;
  transform: scale(1.1);
}

/* footer */
footer {
  background: #141414;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 2px solid var(--primary);
}

/* animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease both;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(20,20,20,0.98);
    width: 70%;
    height: calc(100vh - 70px);
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    border-left: 2px solid var(--primary);
  }

  .nav-menu.active {
    right: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .admin-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}