/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #0e0e0e;
  --accent-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent-color: #ff6b35;
  --accent-hover: #e55a2e;
  --border-color: #2a2a2a;
  --gradient-start: #ff6b35;
  --gradient-end: #f7931e;
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.15) 1px,
    transparent 0
  );
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  color: var(--accent-color);
  font-size: 1.5rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.contact-btn {
  background: var(--accent-color);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background: var(--accent-hover);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Mobile menu active state */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-bg);
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text {
  background: radial-gradient(circle, var(--primary-bg) 60%, transparent 70%);
  margin: 1rem;
  border-radius: 30%;
}

.title-line {
  display: block;
}

.highlight {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.full-width {
  width: 100%;
}

/* Code Window */
.code-window {
  background: var(--secondary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.window-header {
  background: var(--accent-bg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.red {
  background: #ff5f57;
}
.control.yellow {
  background: #ffbd2e;
}
.control.green {
  background: #28ca42;
}

.window-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.code-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.code-line {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.line-number {
  color: var(--text-muted);
  min-width: 20px;
}

/* Syntax highlighting for typing effect */
.code-text .keyword {
  color: #ff79c6;
}
.code-text .variable {
  color: #8be9fd;
}
.code-text .function {
  color: #50fa7b;
}
.code-text .string {
  color: #f1fa8c;
}
.code-text .method {
  color: #bd93f9;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--secondary-bg);
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem; /* fade depth */
  background: linear-gradient(
    to bottom,
    var(--primary-bg),
    var(--secondary-bg)
  );
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
}

.service-features li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.service-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Work Section */
.work {
  padding: 6rem 0;
}

.work-header {
  text-align: center;
  margin-bottom: 4rem;
}

.work-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.work-item {
  background: var(--secondary-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.work-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.work-item.featured {
  grid-row: span 2;
}

.work-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.05);
}

.work-info {
  padding: 1.5rem;
}

.work-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.work-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.work-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-bg);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--secondary-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-points {
  margin-top: 2rem;
}

.point {
  margin-bottom: 2rem;
}

.point h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.point p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--primary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Tool Stack Section */
.tool-stack {
  padding: 10rem 0;
  background: var(--primary-bg); /* Or secondary-bg if you prefer */
}

.tool-stack::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem; /* fade depth */
  background: linear-gradient(
    to bottom,
    var(--secondary-bg),
    var(--primary-bg)
  );
}

.tool-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--secondary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  width: 100%; /* Ensure items take full width in their grid cell */
  max-width: 200px; /* Limit max width for larger screens */
}

.tool-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tool-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.tool-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--primary-bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-value:hover {
  color: var(--accent-color);
}

.contact-form {
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--primary-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Team Section Styles */
.team-section {
  background: var(--secondary-bg);
  color: white;
  padding: 60px 0;
  position: relative; /* required for absolute positioning */
  overflow: hidden; /* optional, keeps gradient inside */
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem; /* fade depth */
  background: linear-gradient(
    to bottom,
    var(--primary-bg),
    var(--secondary-bg)
  );
}

.team-container {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.team-content {
  display: flex;
  flex-direction: column;
}

.team-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 40px;
  line-height: 1.2;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  transition: transform 0.3s ease;
  padding: 20px;
  border-radius: 8px;
}

.team-member:nth-child(1) {
  animation-delay: 0.2s;
}

.team-member:nth-child(2) {
  animation-delay: 0.4s;
}

.team-member:hover {
  transform: translateX(10px);
  background: rgba(255, 107, 53, 0.05);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-name {
  font-size: 1.7rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.member-title {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 12px;
  font-weight: 300;
}

.member-contacts {
  display: flex;

  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  flex-direction: row;

  gap: 8px;
  font-size: 0.9rem;
}

.contact-icon {
  width: 16px;
  height: 16px;
  fill: #ccc;
  margin-top: 3px;
}

.contact-link,
.phone-number {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ff6b35;
}

.team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.08rem;
  color: white;
  position: relative;
}

.logo-text::after {
  content: "•";
  color: #ff6b35;
  margin-left: 4px;
  font-weight: 700;
}

/* Footer Styles */
.footer {
  background: var(--primary-bg);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .team-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .team-title {
    font-size: 2.2rem;
  }

  .logo-text {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }

  .team-container {
    padding: 0 20px;
  }

  .team-section {
    padding: 40px 0;
  }

  .team-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .member-name {
    font-size: 1.3rem;
  }

  .member-title {
    font-size: 0.9rem;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile menu specific styles */
  .nav-links {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: var(--primary-bg); /* Dark background for overlay */
    padding-top: 80px; /* Space for header */
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%); /* Off-screen by default */
  }

  .nav-links.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }

  .nav-link {
    font-size: 1.5rem;
    padding: 1rem;
  }

  .mobile-menu-btn {
    display: flex; /* Show hamburger button */
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .container {
    padding: 0 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Responsive adjustments for tool stack */
  .tool-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .tool-item {
    padding: 1rem;
  }
  .tool-item img {
    width: 50px;
    height: 50px;
  }
  .tool-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .code-content {
    font-size: 0.6rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .work-tags {
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .tool-stack-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns on small screens */
  }
  .tool-item {
    padding: 1rem;
  }
  .tool-item img {
    width: 50px;
    height: 50px;
  }
  .tool-name {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
