/* CSS Variables */
:root {
  --background: 222 47% 11%;
  --foreground: 210 40% 98%;
  --card: 222 47% 11%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 11%;
  --popover-foreground: 210 40% 98%;
  --primary: 217 91% 60%;
  --primary-foreground: 222 47% 11%;
  --secondary: 217 33% 17%;
  --secondary-foreground: 210 40% 98%;
  --muted: 223 47% 11%;
  --muted-foreground: 215 20% 65%;
  --accent: 216 34% 17%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 63% 31%;
  --destructive-foreground: 210 40% 98%;
  --border: 216 34% 17%;
  --input: 216 34% 17%;
  --ring: 217 91% 60%;
  --radius: 0.5rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Crypto Ticker */
.crypto-ticker {
  background: hsla(var(--card), 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ticker-content {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-content::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-symbol {
  font-weight: 600;
}

.ticker-price {
  color: hsl(var(--muted-foreground));
}

.ticker-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ticker-change.positive {
  color: #22c55e;
}

.ticker-change.negative {
  color: #ef4444;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: hsla(var(--background), 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: hsl(var(--foreground));
  transition: color 0.2s;
  cursor: pointer;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  cursor: pointer;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px hsla(var(--primary), 0.5);
}

.btn-outline {
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background: transparent;
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.glow {
  box-shadow: 0 0 20px hsla(var(--primary), 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    hsla(var(--background), 0.95) 0%, 
    hsla(var(--primary), 0.1) 100%);
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.stat-label {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-description {
  text-align: center;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: hsla(var(--card), 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--primary));
  box-shadow: 0 10px 30px hsla(var(--primary), 0.2);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Portfolio Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  background: hsla(var(--card), 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px hsla(var(--primary), 0.2);
}

.portfolio-video-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: #000;
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-logo {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: hsla(var(--background), 0.9);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  max-width: 150px;
  max-height: 50px;
  object-fit: contain;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.metric {
  text-align: center;
  padding: 1rem;
  background: hsla(var(--accent), 0.5);
  border-radius: 0.5rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.metric-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.875rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsla(var(--primary), 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: hsla(var(--card), 0.5);
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 0%, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsla(var(--background), 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.hidden { display: none; }


.app-overview-section {
    /* Assuming the section is already within a dark-themed container */
    padding: 60px 20px;
    text-align: center;
    color: #f0f0f0; /* Light text color */
}

.app-overview-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    /* Using a strong blue accent color, similar to the site's aesthetic */
    color: #4a90e2; 
}

.app-overview-section p {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.expertise-grid-container {
    display: grid;
    /* 3 columns on desktop, similar to the "Our Expertise" section */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Align content within the grid items */
}

.expertise-item {
    padding: 20px;
    /* No border or background to mimic the clean, unboxed style of the expertise items */
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius);
}

.expertise-item:hover {
    background: hsla(var(--accent), 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px hsla(var(--primary), 0.1);
}

.expertise-icon {
    /* Style for the icon container, mimicking the large, colored icon */
    display: inline-block;
    font-size: 2.5em;
    color: #4a90e2; /* Accent color for the icon */
    margin-bottom: 15px;
}

.expertise-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #f0f0f0; /* Light text color for title */
}

.expertise-item p {
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    max-width: none; /* Override max-width from section p */
}

.cta-container {
    text-align: center;
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4a90e2; /* Primary accent color for CTA */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #357ae8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .expertise-grid-container {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

/* --- New Styles for Application Screenshots --- */
.app-screenshots-container {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--border));
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    background: hsla(var(--card), 0.5);
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: hsl(var(--primary));
    box-shadow: 0 15px 30px hsla(var(--primary), 0.3);
}

.screenshot-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-title {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary));
    text-align: center;
    border-top: 1px solid hsl(var(--border));
}
