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

:root {
  /* Color Palette - OKLCH for precision */
  --bg-color: #060709;
  --bg-alt: #0a0c10;
  --surface: #12151c;
  --surface-hover: #1a1f29;
  
  --accent: oklch(75% 0.18 240);
  --accent-glow: oklch(75% 0.18 240 / 0.4);
  --accent-secondary: oklch(80% 0.15 180);
  
  --text: #f0f2f5;
  --text-muted: #a0a8b3;
  --text-dim: #6b7280;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);

  /* New Lighting Tokens */
  --grid-line: rgba(255, 255, 255, 0.03);
  --glow-primary: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 70%);
  
  /* Glassmorphism */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --blur: 12px;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --container-max: 1300px;
  --section-padding: clamp(4rem, 10vw, 8rem);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, oklch(75% 0.18 240 / 0.05), transparent 40%),
    radial-gradient(circle at 80% 70%, oklch(80% 0.15 180 / 0.05), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding) 0;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px var(--accent-glow));
  text-shadow: 0 0 50px rgba(112, 182, 246, 0.3);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 65px;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.8));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover img {
  transform: scale(1.1) rotate(-2deg);
  filter: brightness(0) invert(1) drop-shadow(0 0 20px var(--accent));
}

.navmenu ul {
  display: flex;
  gap: 2.5rem;
}

.navmenu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.navmenu a:hover, .navmenu a.active {
  color: var(--text);
}

.navmenu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navmenu a:hover::after, .navmenu a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: url('../img/hero-bg.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 7, 9, 0.4), var(--bg-color));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 6rem);
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

/* Glass Card */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* Animations */
@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: floating 4s ease-in-out infinite;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 550px;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-color);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 30px oklch(70% 0.18 250 / 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px oklch(70% 0.18 250 / 0.5);
}

.btn-outline {
  border: 1px solid var(--border-bright);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--accent);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* Roadmap / Workflow */
.roadmap {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0;
  padding-left: 3rem;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.roadmap-item {
  position: relative;
  margin-bottom: 4rem;
}

.roadmap-item::after {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: 0 0 10px var(--accent);
}

.roadmap-content {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.roadmap-item:hover .roadmap-content {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateX(10px);
}

.roadmap-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.roadmap-step {
  position: absolute;
  left: -6rem;
  top: -5px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border-bright);
}

/* Modern Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 15px oklch(70% 0.18 250 / 0.1);
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.bento-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.bento-item:hover .bento-icon {
  transform: scale(1.1) rotate(5deg);
  color: white;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Specific Bento Sizes */
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 992px) {
  .col-4, .col-6, .col-8 { grid-column: span 12; }
}

/* Portfolio Cards */
.portfolio-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.portfolio-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.portfolio-link i {
  transition: transform 0.3s ease;
}

.portfolio-link:hover i {
  transform: translateX(5px);
}

/* Section Titles */
.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-header .tagline {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Footer */
.footer {
  padding: 6rem 0 3rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navmenu {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}
