/* === CSS VARIABLES & RESET === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Aesthetic Dark Theme - Pure Black & Silver Space */
  --bg-color: #030303;         /* Abyss Black */
  --card-bg: #0a0a0c;          /* Obsidian Card */
  --border-subtle: #1c1c20;
  
  --text-main: #f0f0f5;        /* Starlight White */
  --text-muted: #80808a;       /* Ash Gray */
  
  --accent-1: #ffffff;         /* Pure Light */
  --accent-dark: #121214;      /* Deep structural grey */
  
  /* Rocket Thruster Glow (Cyan to Electric Blue) */
  --rocket-fire-1: #00f2fe;    
  --rocket-fire-2: #4facfe;

  --shadow-dark: 10px 15px 30px rgba(0,0,0,0.8), -5px -5px 15px rgba(255,255,255,0.01);
  --shadow-hover: 15px 25px 40px rgba(0, 0, 0, 1), -5px -5px 15px rgba(255,255,255,0.03);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-main: 'Inter', sans-serif;
  
  --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  --max-width: 1050px;
}

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

html {
  scroll-behavior: smooth;
  cursor: none; /* Aesthetic Custom Cursor Active */
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  font-size: 16px;
}

::selection {
  background: var(--text-main);
  color: var(--bg-color);
}

/* === SHINY ROCKET CURSOR === */
#rocket-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  pointer-events: none;
  z-index: 10000;
  /* Transformed by JS based on mouse angle */
  transform-origin: center center;
  mix-blend-mode: screen;
}

.rocket-body {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg); /* Base rotation so tip points right */
  font-size: 22px;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px var(--rocket-fire-1);
  transition: transform 0.1s ease;
}

.rocket-fire {
  position: absolute;
  top: 60%; left: -60%;
  width: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rocket-fire-1), #ffffff);
  box-shadow: 0 0 15px var(--rocket-fire-1), 0 0 30px var(--rocket-fire-2);
  transform: rotate(-45deg); /* Angle back opposite to rocket direction */
  animation: thrust 0.1s infinite alternate;
}

.rocket-sparkles {
  position: absolute;
  top: 60%; left: -80%;
  width: 40px; height: 10px;
  background: radial-gradient(circle, var(--rocket-fire-2) 10%, transparent 60%);
  filter: blur(5px);
  animation: thrust-wobble 0.2s infinite alternate;
}

@keyframes thrust { 100% { transform: rotate(-45deg) scaleX(1.5); opacity: 0.8; } }
@keyframes thrust-wobble { 100% { transform: scale(1.3) translateY(2px); opacity: 0.5; } }

/* Click Effect */
body.clicking #rocket-cursor .rocket-body {
  transform: translate(-50%, -50%) rotate(45deg) scale(0.8);
}
body.clicking #rocket-cursor .rocket-fire {
  box-shadow: 0 0 30px #ffffff, 0 0 50px var(--rocket-fire-1);
  width: 30px;
}

/* === AESTHETIC BACKGROUND === */
.dark-mesh {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

.dark-glow {
  position: fixed;
  top: -10vh; right: -10vw;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
}

/* === TEXT STYLES === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.shimmer-text {
  background: linear-gradient(90deg, #71717a, #ffffff 30%, #a1a1aa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite;
  display: inline-block;
}

@keyframes textShimmer {
  to { background-position: 200% center; }
}

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

ul {
  list-style: none;
}

/* === AESTHETIC DARK CARDS (NEO-BRUTAL MINIMAL) === */
.dark-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-dark);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.border-shine {
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transition: 1.5s ease;
  z-index: 10;
}

.dark-card:hover .border-shine, .tilt-card:hover .border-shine {
  left: 200%;
}

.dark-btn {
  background: var(--text-main);
  color: var(--bg-color);
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(255,255,255,0.05);
  transition: var(--transition);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.dark-btn:hover {
  background: #cdcdcd;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

.dark-btn:active {
  transform: translateY(1px);
}

/* Inner Glare Effect (Requires JS) */
.glare-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.glare {
  position: absolute;
  width: 250%; height: 250%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 40%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* === UTILITIES & REUSABLE === */
section {
  padding: 140px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  font-size: 2.2rem;
  letter-spacing: -1px;
}

.section-title .number {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: 20px;
  font-weight: 500;
  font-family: var(--font-heading);
}

.section-title::after {
  content: "";
  display: block;
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-subtle);
  margin-left: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 15px;
  border: 1px solid transparent;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === NAVBAR === */
.dark-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.dark-nav.scrolled {
  padding: 15px 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text-muted);
}

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

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1.1;
  padding-right: 40px;
}

.dark-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(50px, 7vw, 90px);
  margin-bottom: 5px;
}

.hero h3 {
  font-size: clamp(20px, 3vw, 32px);
  margin-bottom: 30px;
  color: var(--text-muted);
}

.hero p {
  max-width: 550px;
  font-size: 1.1rem;
  margin-bottom: 45px;
  line-height: 1.7;
}

.hero p strong {
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.image-wrapper {
  position: relative;
  width: 330px;
  height: 420px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--accent-dark);
  padding: 8px;
  box-shadow: var(--shadow-dark);
  transform-style: preserve-3d;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(100%);
  transition: filter 1s ease;
}

.image-wrapper:hover .profile-img {
  filter: grayscale(30%) contrast(1.1);
}

/* === ABOUT SECTION === */
.about-content {
  padding: 50px;
}

.about-text p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.skills-heading {
  margin-top: 40px;
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 15px;
}

.skills-list li {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-color);
  border: 1px solid rgba(255,255,255,0.02);
  padding: 15px 20px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: var(--transition);
}

.skills-list li:hover {
  color: var(--text-main);
  border-color: rgba(255,255,255,0.1);
  transform: translateX(4px);
}

.skills-list li i {
  color: var(--text-main);
  font-size: 1.1rem;
  opacity: 0.5;
}

/* === PROJECTS SECTION === */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  overflow: visible;
}

.project-card:nth-child(even) {
  flex-direction: row-reverse;
}

.project-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-color);
  min-height: 350px;
}

.project-card:nth-child(even) .project-image {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 1s;
  filter: brightness(0.7) grayscale(60%);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
  filter: brightness(1) grayscale(0%);
}

.collage-wrapper {
  display: flex;
  padding: 15px;
  gap: 15px;
}

.collage-1, .collage-2 {
  flex: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.project-content {
  flex: 1;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-overline {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.company-text {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.summary {
  margin-bottom: 25px;
}

.bullet-list {
  padding-left: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--text-main);
  opacity: 0.5;
  font-family: monospace;
}

/* === CONTACT SECTION === */
.contact-card {
  padding: 80px 40px;
  text-align: center;
}

.contact .section-title {
  justify-content: center;
}

.contact .section-title::after {
  display: none;
}

.contact-heading {
  font-size: clamp(35px, 6vw, 60px);
  margin-bottom: 30px;
}

.contact p {
  max-width: 650px;
  margin: 0 auto 40px auto;
  font-size: 1.15rem;
}

.btn-large {
  padding: 18px 45px;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  margin-top: 50px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.icon-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  font-size: 1.2rem;
  border-radius: 4px;
}

/* === MEDIA QUERIES === */
@media (max-width: 900px) {
  .project-card, .project-card:nth-child(even) {
    flex-direction: column;
    padding: 0;
  }
  
  .project-image {
    min-height: 250px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .project-card:nth-child(even) .project-image {
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .project-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
  }
  
  .hero-content {
    margin-top: 50px;
    padding-right: 0;
  }
  
  .hero p {
    margin: 0 auto 30px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .skills-list {
    grid-template-columns: 1fr;
  }
  
  html, a, .btn {
    cursor: auto; 
  }
  #rocket-cursor {
    display: none;
  }
}
