/*  CONFIG & VARIABLES */

:root {
  --primary-color: #9d00ff;
  --primary-dark: #6200a3;
  --primary-light: #ce80ff;

  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: #1e1e1e;

  --text-color: #ffffff;
  --text-secondary: #bbbbbb;
  --accent-color: #222222;

  --border-radius: 8px;
  --transition: all 0.3s ease;
  --spacing: 100px;
}

/* 
   RESET & BASE STYLES
    */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography Helpers --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.section-title span,
.highlight-text {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.center-text {
  text-align: center;
}

/* COMPONENTS (Buttons, Forms, Badges)
    */

/* --- Buttons --- */
.cta-button {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(157, 0, 255, 0.2);
}

.cta-button-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-color);
}

.nav-links .cta-button {
  background: linear-gradient(135deg, #7f00ff, #e100ff) !important;

  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 12px 28px;

  box-shadow: 0 4px 15px rgba(189, 0, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links .cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #8f24ff, #e945ff) !important;
  box-shadow: 0 8px 25px rgba(189, 0, 255, 0.6);
  border-color: #ffffff;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 15px;
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.07);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 14px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--primary-dark);
}

/* --- Icons & Boxes --- */
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.icon-danger {
  background: rgba(255, 87, 87, 0.1);
  color: #ff5757;
}
.icon-success {
  background: rgba(40, 200, 64, 0.1);
  color: #28c840;
}

/* 
   NAVIGATION
    */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;

  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary-color);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-game-logo {
  height: 50px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(157, 0, 255, 0.5));
  transition: transform 0.3s ease;
}

.nav-game-logo:hover {
  transform: scale(1.1) rotate(-5deg);
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* 
   HOME PAGE SECTIONS
    */

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--darker-bg);
  padding: 120px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(157, 0, 255, 0.15) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(157, 0, 255, 0.1) 0%,
      transparent 20%
    );
  z-index: -1;
}

/* --- Services / Tech Stack --- */
.section {
  padding: var(--spacing) 0;
}

.services {
  background-color: var(--darker-bg);
  position: relative;
  overflow: hidden;
}

.services-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      135deg,
      rgba(157, 0, 255, 0.05) 25%,
      transparent 25%
    ),
    linear-gradient(225deg, rgba(157, 0, 255, 0.05) 25%, transparent 25%);
  background-size: 60px 60px;
  z-index: 0;
  opacity: 0.3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(157, 0, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(157, 0, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-color);
  font-size: 28px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.service-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Projects Showcase (Home) --- */
.project-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.project-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.project-image:hover img {
  transform: scale(1.02);
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-badge {
  background-color: rgba(157, 0, 255, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(157, 0, 255, 0.2);
}

.project-features {
  list-style: none;
  margin-bottom: 30px;
}
.project-features li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
}
.project-features li::before {
  content: "▹";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.project-buttons {
  display: flex;
  gap: 15px;
}

/* Small Projects Grid */
.subsection-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.projects-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card-small {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.project-card-small:hover {
  background-color: var(--card-bg);
  transform: translateY(-5px);
}

.project-card-small h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.small-link-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
}

/* --- About Section --- */
.about {
  background-color: var(--dark-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.about-content h2 span {
  color: var(--primary-color);
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.stat-item p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- CTA & Contact --- */
.cta-section {
  background-color: var(--dark-bg);
  text-align: center;
  padding: 80px 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact {
  background-color: var(--darker-bg);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}
.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(157, 0, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-text {
  flex-grow: 1;
}
.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.contact-text p,
.contact-text a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.contact-text a:hover {
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 
   CASE STUDY (Deep Dive / Phishing Defender)
    */

/* --- Project Hero (Video) --- */
.project-deep-dive .project-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.back-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s;
}
.back-link:hover {
  opacity: 0.7;
}

.project-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.hero-badge {
  display: inline-block;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  font-size: 6rem;
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* --- Deep Dive Content --- */
.project-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.dark-bg {
  background-color: #080808;
}

.section-heading {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 40px;
  line-height: 1.1;
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 5px;
}

.text-lg {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 20px;
}
.text-muted {
  color: #888;
  font-size: 1rem;
  margin-bottom: 40px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.stats-row {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Cyber Frame & Animation */
.image-frame-cyber {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.image-frame-cyber img {
  width: 100%;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.7;
  box-shadow: 0 0 10px var(--primary-color);
  animation: scanMove 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanMove {
  0% {
    top: 2%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 98%;
    opacity: 0;
  }
}

/* Timeline */
.timeline-steps {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
  position: relative;
}
.timeline-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  background: var(--dark-bg);
  padding: 0 10px;
  text-align: center;
  width: 20%;
}
.t-circle {
  width: 30px;
  height: 30px;
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-color);
}
.t-title {
  font-size: 0.9rem;
  color: white;
  margin-bottom: 5px;
}
.t-desc {
  font-size: 0.8rem;
  color: #666;
}

/* Architecture & Evolution */
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.arch-badges {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.img-caption {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

.evolution-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}
.evo-step {
  flex: 1;
  max-width: 500px;
}
.evo-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.evo-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  height: 300px;
}
.evo-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.evo-arrow {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.5;
}
.evo-desc {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Challenges Grid */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.challenge-card {
  background: #151515;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.challenge-card:hover {
  transform: translateY(-5px);
  border-color: #444;
}
.challenge-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.challenge-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.challenge-desc {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}
.solution-block {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.solution-text {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}
.solution-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 700;
}

/* Documentation Downloads */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.doc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.3s;
}
.doc-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}
.doc-info h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 5px;
}
.doc-info p {
  color: #666;
  font-size: 0.8rem;
  margin: 0;
}
.doc-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Gallery & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  font-size: 2rem;
  color: white;
}

.zoomable-img {
  cursor: zoom-in;
  transition: transform 0.3s;
}
.zoomable-img:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover {
  color: var(--primary-color);
}

/* 
   FOOTER
    */
footer {
  background-color: var(--darker-bg);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about {
  margin-right: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo span {
  color: var(--primary-color);
}
.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-links a i {
  font-size: 12px;
}
.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-copy {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  transition: all 0.3s ease;
  position: relative;
}
.social-icon-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.social-icon-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 15px var(--primary-color), 0 0 30px rgba(157, 0, 255, 0.4);
  transform: translateY(-3px);
}
.social-icon-btn:hover svg {
  transform: scale(1.1);
}

/* 
   ANIMATIONS
    */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}
.wheel {
  width: 4px;
  height: 6px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}
@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.2, 1, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 
   MEDIA QUERIES
    */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  :root {
    --spacing: 80px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .project-showcase,
  .mission-grid,
  .feature-row,
  .content-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image,
  .about-image {
    order: -1;
  }
  .hero-image img,
  .about-image img {
    max-width: 100%;
  }
  .hero-content h1,
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }

  /* Project Deep Dive Mobile */
  .project-image {
    order: -1;
  }
  .evolution-grid {
    flex-direction: column;
  }
  .evo-arrow {
    transform: rotate(90deg);
  }
  .stat-block {
    order: -1;
  }

  /* Feature Row Reverse Fix */
  .feature-row,
  .feature-row.reverse {
    direction: ltr;
  }
  .text-lg {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing: 60px;
  }
  .navbar {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--dark-bg);
    padding: 20px;
    gap: 20px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .cta-button {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }

  .timeline-steps {
    flex-direction: column;
    gap: 30px;
  }
  .timeline-steps::before {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
  }
  .timeline-step {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .service-card,
  .contact-form,
  .project-showcase {
    padding: 30px 20px;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
/* 
   USE CASE & BLUEPRINT STYLES (New)
    */

/* Das Grid für die 3 Use-Case Karten */

.use-case-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.uc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.uc-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--primary-color);
  transform: translateX(5px);
}

.uc-id {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
  padding: 5px 10px;
  background: rgba(157, 0, 255, 0.1);
  border-radius: 4px;
}

.uc-content h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: white;
}

.uc-content p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/*Rahmen für Diagramm */
.blueprint-frame {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.blueprint-header {
  background: #252525;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.blueprint-title {
  margin-left: auto;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: #666;
}

.blueprint-body {
  position: relative;
  padding: 0;
}

.blueprint-body img {
  width: 100%;
  display: block;
  filter: brightness(0.9);
}

.blueprint-footer {
  background: #252525;
  padding: 5px 15px;
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: #555;
  border-top: 1px solid #333;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
/* =========================================
   PROJECT PAGE STYLES (Phishing Defender)
   ========================================= */

html {
  scroll-behavior: smooth;
}

/* --- 1. Navigation --- */
.project-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}

.back-link span {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.back-link:hover span {
  transform: translateX(-5px);
}

.internal-links {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex: 2;
}

.internal-links a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
}

.internal-links a:hover {
  color: white;
  text-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
}

.internal-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.internal-links a:hover::after {
  width: 100%;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-download-btn {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(142, 45, 226, 0.5);
}

@media (max-width: 992px) {
  .internal-links {
    display: none !important;
  }
}

/* --- 2. Download Section & Cards --- */
.download-section {
  background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
  padding-bottom: 50px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.download-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(157, 0, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.primary-card {
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(157, 0, 255, 0.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: bold;
}

.card-icon {
  /* Wichtig: Höhe für das SVG reservieren */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;

  /* Leichter Glow für die Icons */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s ease;
}

/* Cooler Effekt beim Hovern der Karte: Icon wächst */
.download-card:hover .card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.download-card h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: white;
}

.version-info {
  color: #666;
  font-size: 0.9rem;
  font-family: "Courier New", monospace;
  margin-bottom: 20px;
}

.card-specs {
  list-style: none;
  margin-bottom: 25px;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dl-button {
  display: block;
  width: 100%;
  padding: 12px;
  background: white;
  color: black;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s;
}

.dl-button:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 5px 20px rgba(157, 0, 255, 0.4);
}

.dl-button.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.dl-button.outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.dl-button.disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

.checksum {
  margin-top: 15px;
  font-size: 0.7rem;
  color: #444;
  font-family: monospace;
}

/* --- 3. Terminal "How To Run" --- */
.terminal-wrapper {
  max-width: 700px;
  margin: 80px auto 0;
  background: #0f0f0f;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.terminal-header-bar {
  background: #1f1f1f;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.term-title {
  margin-left: auto;
  font-family: monospace;
  color: #666;
  font-size: 0.8rem;
}

.terminal-body {
  padding: 20px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.comment {
  color: #666;
  margin-bottom: 5px;
}
.code-line {
  color: #fff;
  margin-bottom: 15px;
}
.prompt {
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}
.code-output {
  color: #4caf50;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.8;
}
