/* -------------------------------------------
   1. ROOT / VARIABLES
------------------------------------------- */
:root {
  --color-primary: #10b981; 
  --color-secondary: #059669;
  --color-bg-dark: #000;
  --color-bg-card: #0a0a0a;
  --color-border: #1f1f1f;
  --color-text-light: #fff;
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-gray: #9ca3af;
  --spacing-default: 32px;
  --nav-height: 80px; 
  --font-family-default: 'Inter', sans-serif;
}

/* -------------------------------------------
   2. BASE / RESET
------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-family-default);
  -webkit-font-smoothing: antialiased;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow-x: hidden; 
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* -------------------------------------------
   3. UTILITIES
------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-default);
}
section { padding: 100px 0; }

/* Page Header */
.page-header-section {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
}
.page-header-section p {
  max-width: 600px;
  margin: 20px auto 0;
  color: var(--color-text-gray);
  font-size: 18px;
}

.section-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.1;
}
.cta-button {
  padding: 12px 32px;
  background: var(--color-text-light);
  color: var(--color-bg-dark);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.cta-button:hover { transform: scale(1.05); }

/* -------------------------------------------
   4. NAVIGATION
------------------------------------------- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50; padding: 20px;
  display: flex; justify-content: center;
}
.nav-content {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 14px 32px;
  gap: 60px;
  width: auto; max-width: 95%;
}
.nav-left { display: flex; align-items: center; gap: 48px; }
.logo { color: var(--color-text-light); font-weight: 700; font-size: 18px; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--color-text-muted); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--color-text-light); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 10px;
  background: rgba(40, 40, 40, 0.8); border-radius: 12px;
}
.hamburger span { width: 24px; height: 2px; background: var(--color-text-light); border-radius: 2px; }

/* -------------------------------------------
   5. MOBILE MENU
------------------------------------------- */
.mobile-menu {
  display: none; position: fixed; top: 10px; left: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(40px);    
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px; padding: 24px;
  z-index: 100; flex-direction: column;
  max-height: calc(100vh - 20px); overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.mobile-menu.active { display: flex; animation: menuFadeIn 0.3s ease-out forwards; }
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.mobile-header-btn {
  background: rgba(255, 255, 255, 0.08); border: none;
  padding: 12px 20px; border-radius: 12px;
  color: white; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-close-btn { padding: 12px; font-size: 24px; line-height: 1; width: 44px; height: 44px; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 24px; margin-bottom: 60px; }
.mobile-menu-links a { font-size: 36px; font-weight: 400; color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.mobile-menu-links a:hover, .mobile-menu-links a.active { color: white; }
.mobile-menu-cta {
  background: white; color: black; padding: 16px 32px;
  border-radius: 14px; font-weight: 600; font-size: 16px;
  border: none; align-self: flex-start; cursor: pointer;
  transition: transform 0.2s;
}

/* -------------------------------------------
   6. COMPONENT STYLES
------------------------------------------- */
/* Hero */
.hero-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding-top: var(--nav-height); position: relative; 
}
.hero-title { font-size: clamp(4rem, 15vw, 11rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; text-align: center; }
.side-text-container { position: absolute; max-width: 280px; top: 50%; transform: translateY(-50%); }
.side-text-container.left { left: var(--spacing-default); }
.side-text-container.right { right: var(--spacing-default); top: 25%; transform: none; }
.side-text { color: var(--color-text-gray); font-size: 13px; margin-bottom: 20px;}
.side-button {
  padding: 10px 20px; background: transparent;
  border: 1px solid #374151; color: var(--color-text-light);
  font-size: 14px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color 0.2s;
}
.side-button:hover { border-color: #fff; }

/* Tech Stack (New) */
.tech-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.tech-pill {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 24px; border-radius: 50px; color: var(--color-text-gray); font-size: 14px;
  transition: all 0.3s;
}
.tech-pill:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

/* FirovaForge/Visuals */
.firova-section {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.firova-title { font-size: clamp(3rem, 10vw, 8rem); font-weight: 800; text-align: center; position: relative; z-index: 2; }
.firova-title span {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bars-container {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 20px; opacity: 0.4;
}
.bar {
  width: 40px; background: linear-gradient(180deg, #10b981, #059669);
  border-radius: 4px; animation: barPulse 1.5s ease-in-out infinite;
}
.bar:nth-child(odd) { height: 200px; animation-delay: 0s; }
.bar:nth-child(even) { height: 350px; animation-delay: 0.2s; }
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(1.5); opacity: 0.7; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--color-border);
  border-radius: 24px; padding: 40px; transition: transform 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--color-primary); background: rgba(255,255,255,0.04); }
.service-icon {
  width: 56px; height: 56px; background: rgba(255,255,255,0.05);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 28px;
}
.service-card h3 { font-size: 24px; margin-bottom: 16px; font-weight: 700; }
.service-card p { color: var(--color-text-gray); font-size: 15px; line-height: 1.7; }

/* Portfolio */
.portfolio-grid { display: grid; gap: 60px; }
.portfolio-grid a { display: block; color: inherit; }
.portfolio-item {
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px;
  padding: 16px; transition: transform 0.3s ease, background 0.3s;
}
.portfolio-grid a:hover .portfolio-item { transform: translateY(-5px); background: rgba(255, 255, 255, 0.06); }
.portfolio-image-wrapper {
  position: relative; width: 100%; height: 500px;
  border-radius: 20px; overflow: hidden; background: #111;
}
.portfolio-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.portfolio-grid a:hover .portfolio-image-wrapper img { transform: scale(1.05); }
.portfolio-arrow {
  position: absolute; top: 20px; right: 20px; width: 56px; height: 56px;
  background: white; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: black;
  z-index: 2; box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: transform 0.3s ease;
}
.portfolio-grid a:hover .portfolio-arrow { transform: rotate(45deg); }
.portfolio-info { padding: 32px 10px 10px 10px; }
.portfolio-info h3 { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: white; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.portfolio-tag {
  background: #fff; color: #000; padding: 8px 20px;
  border-radius: 50px; font-size: 14px; font-weight: 600; display: inline-block;
}

/* Contact Form (New) */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;   background: var(--color-bg-card); border: 1px solid #fff;
  padding: 40px; border-radius: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 24px;  }
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid #fff; 
  padding: 16px 20px; border-radius: 12px; color: #fff; font-size: 16px; font-family: inherit;
  transition: border-color 0.3s;
}
.form-group textarea { height: 150px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); }
.contact-info-card {
  background: var(--color-bg-card); border: 1px solid #fff;
  padding: 40px; border-radius: 24px;
}
.info-item { margin-bottom: 32px; }
.info-label { color: var(--color-text-gray); font-size: 14px; margin-bottom: 8px; display: block; }
.info-value { font-size: 20px; font-weight: 600; color: #fff; }

/* FAQ Accordion (New) */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); padding: 24px 0; }
.faq-question { font-size: 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.faq-answer { color: var(--color-text-gray); margin-top: 16px; display: none; line-height: 1.6; }
.faq-item.active .faq-answer { display: block; }

/* Footer */
footer { padding: 80px 0 40px; border-top: 1px solid var(--color-border); text-align: center; margin-top: 60px; }
.footer-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 40px; }
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-links a { color: var(--color-text-gray); font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: var(--color-text-gray); font-size: 14px; margin-top: 40px; opacity: 0.6; }

/* Widgets */
.sphere-container { position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; pointer-events: none; }
.sphere { position: relative; width: 100%; height: 100%; }
.sphere-blur { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(55, 65, 81, 0.3), transparent 70%); filter: blur(80px); }
.sphere-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(75, 85, 99, 0.3); }
.sphere-ring:nth-child(2) { inset: 10%; } .sphere-ring:nth-child(3) { inset: 20%; }
.sphere-ring:nth-child(4) { inset: 30%; background: radial-gradient(circle, rgba(55, 65, 81, 0.1), transparent); }

.chat-widget { position: fixed; bottom: var(--spacing-default); right: var(--spacing-default); z-index: 100; }
.chat-bubble { margin-bottom: 16px; background: white; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); padding: 16px; max-width: 300px; }
.bubble-header { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-button { width: 100%; padding: 10px 16px; background: #f3f4f6; color: #1f2937; font-size: 14px; border: none; border-radius: 8px; cursor: pointer; margin-top: 8px; text-align: left; transition: background 0.2s; }
.chat-button:hover { background: #e5e7eb; }
.status-container { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.status-dot { width: 12px; height: 12px; background: #ef4444; border-radius: 50%; position: relative; }
.status-dot::after { content: '1'; position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; background: white; border: 2px solid #ef4444; border-radius: 50%; font-size: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #ef4444; }

/* Media Queries */
@media (max-width: 1024px) {
  .nav-links, .cta-button { display: none; }
  .hamburger { display: flex; }
  .nav-content { width: calc(100% - 40px); padding: 12px 24px; }
  .side-text-container { display: none; }
  .contact-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .footer-links { flex-direction: column; gap: 20px; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
}