/* TwistedTech Global Styles - Updated Theme */
/* Based on logo colors: Blue (#1e88e5, #0d47a1) and Orange (#ff6f00, #f57c00) */

:root {
  /* Background colors - Deep blues inspired by logo */
  --bg-primary: #0a1628;
  --bg-secondary: #0d1b2e;
  --bg-card: #112240;
  
  /* Border and subtle accents */
  --border: #1e3a5f;
  --border-light: #2a4a6f;
  
  /* Text colors */
  --text-primary: #e6f1ff;
  --text-secondary: #a8b8d8;
  --text-muted: #8892b0;
  
  /* Brand colors from logo */
  --brand-blue: #1e88e5;
  --brand-blue-light: #42a5f5;
  --brand-blue-dark: #0d47a1;
  --brand-orange: #ff6f00;
  --brand-orange-light: #ff9800;
  
  /* Semantic colors */
  --accent-primary: var(--brand-blue);
  --accent-secondary: var(--brand-orange);
  --success: #10b981;
  --error: #ef4444;
  
  /* Spacing */
  --radius: 12px;
  --radius-lg: 16px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: color 0.2s ease;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img { 
  height: 40px; 
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(30, 136, 229, 0.3));
}

.nav-links {
  display: flex;
  /*align-items: center;*/
  gap: 0.3rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(30, 136, 229, 0.08);
}

.nav-links a:hover::after {
  width: 80%;
  left: 10%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.cta-btn {
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-orange) 100%);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(30, 136, 229, 0.4);
}

.cta-btn:hover::before {
  left: 100%;
}

/* Cards */
.card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(17, 34, 64, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 136, 229, 0.15);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--bg-primary);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p:first-child {
  margin-bottom: 0.5rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Section Styling */
section {
  max-width: 1200px;
  margin: auto;
  padding: 4.5rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 { 
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p { 
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 700px) {
  .hamburger { 
    display: flex; 
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 1px solid var(--border);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 1rem 0;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    text-align: center;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }

  section {
    padding: 3rem 1.25rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(255, 111, 0, 0.08));
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.highlight-box strong {
  color: var(--brand-orange);
}