/* Base Variables & Reset */
:root {
  --bg-color: #0a0a0f;
  --card-bg: rgba(20, 20, 30, 0.6);
  --primary-color: #00ff9d; /* Neon Green */
  --secondary-color: #7000ff; /* Neon Purple */
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
  --accent-color: #00bcd4;
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --font-heading: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

h1,
h2,
h3 {
  color: var(--heading-color);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: var(--glass-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

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

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

.btn-primary {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: rgba(0, 255, 157, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  z-index: 2;
}

.hero h2 {
  font-family: var(--font-mono);
  color: var(--primary-color);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 9rem;
  line-height: 1.1;
  margin-bottom: 15px;
  position: relative;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--secondary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 var(--accent-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(20px, 9999px, 80px, 0);
  }
  10% {
    clip: rect(50px, 9999px, 10px, 0);
  }
  100% {
    clip: rect(10px, 9999px, 90px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(60px, 9999px, 40px, 0);
  }
  10% {
    clip: rect(20px, 9999px, 10px, 0);
  }
  100% {
    clip: rect(80px, 9999px, 30px, 0);
  }
}

.hero .subtitle {
  font-size: clamp(1rem, 4.2vw, 3rem);
  white-space: nowrap;
  color: var(--heading-color);
  opacity: 0.8;
  margin-bottom: 20px;
}

.hero .description {
  max-width: 1000px;
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: #a0a0a0;
}

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

.btn-secondary {
  padding: 10px 25px;
  color: var(--text-color);
  font-family: var(--font-mono);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  color: var(--primary-color);
}

.hero-bg-effect {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 255, 157, 0.05),
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* Hero Social Sidebar */
.hero-social-sidebar {
    position: absolute;
    right: 40px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero-social-sidebar a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.hero-social-sidebar a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-social-sidebar .social-line {
    width: 1px;
    height: 100px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}

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

/* Section Titles */
.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-left: 20px;
}

.section-title::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
  bottom: 10px;
  right: -80px;
  opacity: 0.5;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
}

.profile-card {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 255, 157, 0.1),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.about-text p {
  margin-bottom: 20px;
}

.industries {
  margin-top: 30px;
}

.industries-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.industry-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  padding: 10px 16px;
  border-radius: 8px;
  border: var(--glass-border);
  font-size: 0.95rem;
  transition: var(--transition);
}

.industry-item i {
  color: var(--primary-color);
}

.industry-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  padding: 28px;
  border-radius: 10px;
  border: var(--glass-border);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 157, 0.15);
}

.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: var(--transition);
}

.skill-card:hover .skill-icon {
  background: rgba(0, 255, 157, 0.16);
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--primary-color);
  border: 1px solid rgba(0, 255, 157, 0.35);
  border-radius: 4px;
  padding: 3px 8px;
}

.skill-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 20px;
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto; /* keeps tags on the bottom edge so cards in a row line up */
}

.skill-tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 10px;
}

@media (max-width: 960px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}



/* Companies I've Hacked */
.hacked-companies {
  background-color: #000;
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hacked-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 50px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.logo-strip i {
  font-size: 3rem;
  color: #fff;
  transition: var(--transition);
  opacity: 0.8;
}

.logo-strip .text-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.8;
  transition: var(--transition);
  text-transform: uppercase;
  font-family: sans-serif; /* Fallback for specific brands */
}

.logo-strip .img-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
     text-transform: uppercase;
    font-family: sans-serif; 
}

.logo-strip i:hover,
.logo-strip .text-logo:hover,
.logo-strip .img-logo-placeholder:hover {
  opacity: 1;
  color: var(--brand, #fff);
  transform: scale(1.1);
  text-shadow: 0 0 15px var(--brand, rgba(255, 255, 255, 0.5));
}

/* Image logos: white by default, original colours on hover */
.logo-strip .img-logo {
  height: 3rem;
  width: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.logo-strip .img-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
  transform: scale(1.1);
}

/* Badge logos (white text on a coloured shape): greyscale by default so the text stays readable */
.logo-strip .img-logo--badge {
  filter: grayscale(1) brightness(var(--grey-brightness, 1));
}

.logo-strip .img-logo--badge:hover {
  filter: drop-shadow(0 0 12px var(--glow, rgba(0, 209, 95, 0.5)));
}

/* Solid wordmarks fill their whole image height, so they sit a little smaller */
.logo-strip .img-logo--wordmark {
  height: 2.2rem;
}

/* Rectangular badge logos get softened corners */
.logo-strip .img-logo--rounded {
  border-radius: 8px;
}

/* Stacked (icon above name) logos need extra height so the name stays readable */
.logo-strip .img-logo--tall {
  height: 4.5rem;
}

/* Contact Section */
.contact-wrapper {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 60px;
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 16px;
  position: relative;
}

.contact-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.contact-wrapper p {
  margin-bottom: 30px;
  color: #a0a0a0;
}

.hobby-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.hobby-item {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-color);
}

.hobby-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--primary-color);
  font-size: 1.6rem;
  transition: var(--transition);
}

.hobby-item:hover .hobby-icon {
  background: rgba(0, 255, 157, 0.16);
  transform: translateY(-4px);
}

.hobby-svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #888;
}

/* Mobile Responsiveness */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 6rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 300px;
    margin: 0 auto;
  }
}
