@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Fira+Code:wght@400;600;700&display=swap');

:root {
  /* Tech Developer Dark Theme */
  --bg-deep: #09090b;
  --bg-surface: #121217;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-card: rgba(0, 229, 255, 0.15);
  
  /* Accents */
  --accent-magenta: #D81159;
  --accent-blue: #00E5FF;
  
  /* Text */
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  
  --glass-blur: blur(10px);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-deep);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent-blue);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-magenta);
}

/* Typography Tokens */
h1, h2, h3, h4, h5 {
  font-family: 'Fira Code', monospace;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.q-sol { color: var(--accent-magenta); font-weight: 700; }
.soft-sol { color: var(--accent-blue); font-weight: 700; }

h2.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Navigation - Floating Glass Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-card);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
}
.css-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}
.logo-red {
  color: #FF3366; /* Vibrant Red/Magenta for dark mode */
}
.logo-blue {
  color: #4D88FF; /* Vibrant Blue for dark mode */
}
.logo-sub {
  font-family: 'Fira Code', monospace;
  font-style: italic;
  font-size: 0.65rem;
  color: #A0AAB2;
  margin-top: 3px;
  text-align: right;
  letter-spacing: 0.5px;
}
.css-logo:hover {
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

/* Button Styling */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--accent-blue);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  border-radius: 4px; /* More angular for tech feel */
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  transition: all 0.3s ease;
  border: 1px solid var(--accent-blue);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(216, 17, 89, 0.4);
  background: rgba(216, 17, 89, 0.1);
  color: #fff;
  border-color: var(--accent-magenta);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 50% 50%, #151025 0%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
}

/* Tech Backgrounds */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.3;
}
.orb.magenta { background: var(--accent-magenta); top: -100px; left: -100px; }
.orb.blue { background: var(--accent-blue); bottom: 10%; right: -50px; }

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.cursor-blink {
  display: inline-block;
  width: 15px;
  height: 1em;
  background-color: var(--accent-magenta);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

/* Tech Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-card);
  border-radius: 8px; /* Sharper */
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
  background: rgba(255,255,255,0.03);
  border-color: rgba(0, 229, 255, 0.3);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  align-items: center;
}

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

.about-img {
  width: 100%;
  border-radius: 8px;
  mix-blend-mode: luminosity;
  opacity: 0.8;
  border: 1px solid var(--border-card);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

/* Projects Section */
.project-card {
  padding: 30px;
}

.project-card h4 {
  font-size: 1.2rem;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

/* Contact Section */
#contact {
  background: radial-gradient(circle at 100% 100%, #1a0f2e 0%, var(--bg-deep) 100%);
  text-align: center;
}

.contact-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 50px auto;
  position: relative;
}

.contact-quote::before {
  content: "“";
  font-size: 5rem;
  font-family: 'Montserrat';
  color: var(--border-card);
  position: absolute;
  top: -30px;
  left: -20px;
}

/* Footer */
footer {
  background-color: #030406;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-card);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s;
}
.social-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px var(--accent-blue));
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  h2.section-title { font-size: 2rem; margin-bottom: 2rem; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .header-inner { flex-direction: column; gap: 15px; padding: 15px 5%; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
  .glass-card { padding: 25px 20px; }
  .contact-quote::before { font-size: 4rem; top: -20px; left: -10px; }
  .contact-quote { font-size: 1rem; margin-bottom: 30px; padding: 0 10px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  h2.section-title { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.8rem; }
}
