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

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

:root {
  --background: #0a0a0c;
  --card-bg: #141417;
  --primary: #ff5000; /* Husqvarna Orange */
  --primary-hover: #e64800;
  --secondary: #2a2a2e;
  --accent: #3b82f6;
  --text-main: #ffffff;
  --text-muted: #d1d5db;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 23, 0.7);
  --glass-blur: 12px;
  --ui-scale: 1;

  /* Legacy variable mapping for compatibility during transition */
  --primary-color: var(--primary);
  --primary-dark: var(--primary-hover);
  --secondary-color: var(--secondary);
  --accent-color: var(--accent);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --text-light: #94a3b8;
  --bg-primary: var(--background);
  --bg-secondary: var(--card-bg);
  --bg-dark: #000000;
  --border-color: var(--border);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #7d2a00 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utility Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 80, 0, 0.3);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 80, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 80, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 80, 0, 0); }
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

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

.shimmer-bg {
  position: relative;
  overflow: hidden;
}

.shimmer-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.05rem;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.brand-name {
  color: #fff;
}

.brand-domain {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(255, 80, 0, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 40%),
              var(--background);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.alpha-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 80, 0, 0.1);
  border: 1px solid var(--primary);
  border-radius: 2rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1;
  letter-spacing: -0.15rem;
}

.title-line {
  display: block;
  background: linear-gradient(to bottom, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-subtitle {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: rgba(255, 80, 0, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 80, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
  background: rgba(255, 80, 0, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 80, 0, 0.3), 0 0 15px rgba(255, 80, 0, 0.2);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 80, 0, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 80, 0, 0.2);
  border-radius: 1.5rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 30px -10px rgba(255, 80, 0, 0.2);
}

.floating-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 1.5rem;
}

.card-1 {
  width: 180px;
  height: 120px;
  top: 10%;
  right: 15%;
  animation-delay: 0s;
  border-color: rgba(255, 80, 0, 0.4);
}

.card-2 {
  width: 140px;
  height: 100px;
  bottom: 20%;
  right: 5%;
  animation-delay: 2s;
  border-color: rgba(255, 80, 0, 0.2);
}

.card-3 {
  width: 120px;
  height: 140px;
  top: 40%;
  left: -5%;
  animation-delay: 4s;
  border-color: rgba(255, 80, 0, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Sections */
.section-header {
  text-align: left;
  margin-bottom: 5rem;
  border-left: 5px solid var(--primary);
  padding-left: 2rem;
  margin-top: 2rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: -0.1rem;
  text-transform: uppercase;
  line-height: 1;
}

.section-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.4;
}

/* Features Section */
.about {
  padding: 10rem 0;
  background: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 2.5rem;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-item {
  height: 100%;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(20, 20, 23, 0.8) 0%, rgba(10, 10, 12, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height 0.5s ease;
}

.skill-item:hover::before {
  height: 100%;
}

.skill-item:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 80, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 80, 0, 0.05) 0%, rgba(10, 10, 12, 0.95) 100%);
  box-shadow: 0 40px 80px -20px rgba(255, 80, 0, 0.15);
}

.skill-item h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025rem;
}

.skill-item p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.15rem;
}

.skill-icon {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  display: block;
}

/* Roadmap Section */
.projects {
  padding: 12rem 0;
  background: var(--card-bg);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.roadmap-phase {
  height: 100%;
  padding: 4.5rem;
  border-radius: 3.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-phase:hover {
  transform: translateY(-10px);
}

.phase-badge {
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 3rem;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  width: fit-content;
  color: var(--text-muted);
}

.active-phase {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 80, 0, 0.1) 0%, transparent 100%);
  box-shadow: 0 40px 80px -20px rgba(255, 80, 0, 0.25);
}

.active-phase .phase-badge {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 80, 0, 0.1);
}

.beta-phase {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
  box-shadow: 0 40px 80px -20px rgba(59, 130, 246, 0.15);
}

.beta-phase .phase-badge {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.beta-phase .phase-list li::before {
  color: var(--accent);
}

.horizon-phase {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.horizon-phase .phase-badge {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.horizon-phase .phase-list li::before {
  color: rgba(255, 255, 255, 0.3);
}

.horizon-phase:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 40px 80px -20px rgba(255, 255, 255, 0.06);
}

.phase-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -0.05rem;
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.phase-list li {
  position: relative;
  padding-left: 2.5rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.phase-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

/* Contact Section */
.contact {
  padding: 12rem 0;
  background: var(--background);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info > a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.contact-item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column; /* Vertical layout for more premium feel */
  align-items: center; /* Center horizontally */
  text-align: center; /* Center text */
  gap: 2.5rem;
  padding: 4rem;
  background: linear-gradient(165deg, rgba(30, 30, 35, 0.7) 0%, rgba(10, 10, 12, 0.95) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 3rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
}

.contact-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 3rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-item:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 80, 0, 0.3);
  background: linear-gradient(165deg, rgba(40, 40, 45, 0.8) 0%, rgba(10, 10, 12, 0.95) 100%);
  box-shadow: 0 40px 80px -20px rgba(255, 80, 0, 0.2);
}

.contact-icon {
  width: 100px; /* Slightly larger */
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 80, 0, 0.05);
  border: 1px solid rgba(255, 80, 0, 0.2);
  border-radius: 2rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 80, 0, 0.1);
}

.premium-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.contact-item:hover .premium-icon {
    transform: scale(1.1);
}

.contact-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

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

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

.footer-brand {
    font-size: 2rem;
    font-weight: 900;
}

.footer p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Vision Callout */
.vision-callout {
    padding: 8rem 0;
    background: radial-gradient(circle at center, rgba(255, 80, 0, 0.03), transparent);
}

.vision-card {
    padding: 6rem;
    border-radius: 4rem;
    text-align: center;
    border: 1px solid rgba(255, 80, 0, 0.2);
    box-shadow: 0 40px 100px -40px rgba(255, 80, 0, 0.2);
}

.vision-card h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.1rem;
    line-height: 1;
}

.vision-card p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.vision-stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--text-muted);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .about-content { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .section-header { text-align: center; border-left: none; border-top: 5px solid var(--primary); padding-left: 0; padding-top: 1.5rem; }
    .vision-card { padding: 4rem 2rem; }
    .vision-card h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  .section-title { font-size: 2.5rem; }
  .roadmap-phase { padding: 3rem; border-radius: 2rem; }
  .footer-content { flex-direction: column; gap: 3rem; text-align: center; }
  .about, .projects, .contact, .vision-callout { padding: 6rem 0; }
  .vision-stats { gap: 3rem; }
  .stat-value { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .vision-card h2 { font-size: 2rem; }
    .vision-card p { font-size: 1.1rem; }
}
