/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #0a0e2a; color: #fff; overflow-x: hidden; width: 100%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== VARIABLES ===== */
:root {
  --primary: #1a3a8f;
  --accent: #00c8ff;
  --teal: #00d4aa;
  --dark: #060b1f;
  --darker: #0a0e2a;
  --card-bg: rgba(255,255,255,0.05);
  --text-muted: #a0aec0;
  --btn-blue: #1a56db;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%;
  background: rgba(6, 11, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,200,255,0.1);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-img { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0,200,255,0.4); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .brand { font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: 1px; }
.nav-logo-text .tagline { font-size: 0.62rem; color: #7a9cc0; letter-spacing: 0.5px; text-transform: uppercase; }
.nav-logo span { font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: #cdd6f4; font-size: 0.95rem; font-weight: 500;
  transition: color 0.3s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 25px; height: 2px; background: #fff; transition: all 0.3s; border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #060b1f 0%, #0d1b4b 40%, #0a1a3a 70%, #060b1f 100%);
  display: flex; align-items: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,150,80,0.15) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 30%, rgba(0,200,255,0.08) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.05rem; color: #a0b4d0; margin-bottom: 36px; line-height: 1.7; max-width: 420px; }
.btn-primary {
  display: inline-block; padding: 14px 36px;
  background: var(--btn-blue); color: #fff;
  border: none; border-radius: 4px; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 1px; cursor: pointer; transition: all 0.3s;
  text-transform: uppercase;
}
.btn-primary:hover { background: #1648c0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,122,78,0.4); }

/* ===== SECTION BASE ===== */
section { padding: 90px 5%; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 56px; }

/* ===== SERVICES ===== */
.services { background: linear-gradient(180deg, #060b1f 0%, #0a1230 50%, #060b1f 100%); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 36px 28px;
  text-align: center; transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,200,255,0.3);
  background: rgba(0,150,80,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.service-icon { font-size: 2.8rem; margin-bottom: 20px; display: block; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; color: #fff; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.services-cta { text-align: center; }

/* ===== WHY CHOOSE ===== */
.why-choose {
  background: linear-gradient(135deg, #060b1f 0%, #0d1b4b 60%, #060b1f 100%);
  display: flex; align-items: center; gap: 60px;
}
.why-content { flex: 1; }
.why-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 20px; }
.why-content p { color: #a0b4d0; line-height: 1.8; margin-bottom: 36px; font-size: 1rem; max-width: 480px; }
.why-features { list-style: none; margin-bottom: 36px; }
.why-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #cdd6f4; font-size: 0.95rem; }
.why-features li::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 1rem; }
.why-illustration { flex: 1; display: flex; justify-content: center; align-items: center; }
.why-illustration .illus-box {
  width: 100%; max-width: 420px; aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(0,150,80,0.15), rgba(0,200,255,0.08));
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 32px;
  position: relative; overflow: hidden;
}
.illus-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(0,200,255,0.1), transparent 60%);
}
.illus-screens { display: flex; gap: 10px; position: relative; z-index: 1; }
.illus-screen {
  background: rgba(13,122,78,0.4); border: 1px solid rgba(0,200,255,0.3);
  border-radius: 6px; padding: 8px;
}
.illus-screen.main { width: 120px; height: 90px; }
.illus-screen.side { width: 70px; height: 60px; margin-top: 20px; }
.illus-screen-lines { display: flex; flex-direction: column; gap: 5px; }
.illus-screen-lines span { display: block; height: 3px; background: rgba(0,200,255,0.5); border-radius: 2px; }
.illus-screen-lines span:nth-child(1) { width: 80%; }
.illus-screen-lines span:nth-child(2) { width: 60%; }
.illus-screen-lines span:nth-child(3) { width: 70%; }
.illus-figure {
  width: 50px; height: 80px; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.illus-head { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; opacity: 0.8; }
.illus-body { width: 28px; height: 40px; background: rgba(0,200,255,0.4); border-radius: 4px 4px 0 0; }
.illus-shield {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 36px; height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  min-height: 40vh;
  background: linear-gradient(135deg, #060b1f 0%, #0d1b4b 60%, #060b1f 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 5% 60px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.page-hero p { color: var(--text-muted); margin-top: 16px; font-size: 1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; }
.about-text p { color: #a0b4d0; line-height: 1.8; margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.stat-card { text-align: center; padding: 32px 20px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
.stat-card .number { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stat-card .label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.team-card { text-align: center; padding: 32px 20px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; transition: all 0.3s; }
.team-card:hover { transform: translateY(-4px); border-color: rgba(0,200,255,0.3); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px; }
.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.team-card p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== SERVICES PAGE ===== */
.services-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-full-card {
  background: var(--card-bg); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 40px 28px; transition: all 0.3s;
}
.service-full-card:hover { transform: translateY(-6px); border-color: rgba(0,200,255,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.service-full-card .service-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.service-full-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.service-full-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.service-full-card ul { list-style: none; }
.service-full-card ul li { color: #a0b4d0; font-size: 0.88rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 8px; }
.service-full-card ul li::before { content: '→'; color: var(--accent); }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; }
.contact-info p { color: #a0b4d0; line-height: 1.8; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item .icon { font-size: 1.4rem; color: var(--accent); margin-top: 2px; }
.contact-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.contact-form-box { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 40px; }
.contact-form-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; color: #a0b4d0; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: #fff; font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-message { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; display: none; }
.form-message.success { background: rgba(0,212,170,0.15); border: 1px solid var(--teal); color: var(--teal); display: block; }
.form-message.error { background: rgba(255,80,80,0.1); border: 1px solid #ff5050; color: #ff8080; display: block; }

/* ===== FOOTER ===== */
footer {
  background: #040810;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 5% 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; color: #fff; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(6,11,31,0.98); backdrop-filter: blur(10px);
  padding: 24px 5%; z-index: 999;
  border-bottom: 1px solid rgba(0,200,255,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu ul a { color: #cdd6f4; font-size: 1.05rem; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid, .services-full-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 5% 60px; min-height: 90vh; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero-content p { font-size: 0.95rem; max-width: 100%; }
  .why-choose { flex-direction: column; padding: 60px 5%; }
  .why-illustration { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 5%; }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; padding: 0 16px; }
  .footer-brand, .footer-col { width: 100%; }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-col:nth-child(2) { grid-column: 1; grid-row: 2; }
  .footer-col:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .footer-col:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; }
}
@media (max-width: 480px) {
  .services-grid, .services-full-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 4% 50px; }
  .hero-content h1 { font-size: 1.6rem; line-height: 1.3; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 24px; }
  .btn-hero, .btn-primary { padding: 12px 24px; font-size: 0.85rem; }
  section { padding: 50px 4%; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.88rem; margin-bottom: 36px; }
  nav { padding: 12px 4%; }
  footer { padding: 50px 4% 24px; }
}

/* ===== THEME TOGGLE BUTTON ===== */
#themeToggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  background: rgba(26, 86, 219, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  display: flex; align-items: center; justify-content: center;
}
#themeToggle:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --accent: #2979ff;
  --bg-main: #f0f4ff;
  --bg-section: #e8eeff;
  --text-main: #0d1b3e;
  --text-muted: #4a5a80;
  --card-bg-light: rgba(255,255,255,0.85);
  --border-light: rgba(26,86,219,0.15);
}

[data-theme="light"] body {
  background: var(--bg-main);
  color: var(--text-main);
}

[data-theme="light"] nav {
  background: rgba(240, 244, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
}
[data-theme="light"] .nav-links a { color: #1a2a5e; }
[data-theme="light"] .nav-logo span,
[data-theme="light"] .brand { color: #0d1b3e !important; }
[data-theme="light"] .tagline { color: #4a5a80 !important; }

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #c8d8ff 0%, #dce8ff 40%, #e8f0ff 100%);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 55% 70% at 75% 45%, rgba(26,86,219,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 30% 50% at 85% 20%, rgba(0,100,255,0.1) 0%, transparent 55%);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(26,86,219,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.07) 1px, transparent 1px);
}
[data-theme="light"] .hero-content h1 { color: #0d1b3e; }
[data-theme="light"] .hero-content p { color: #3a5080; }

[data-theme="light"] .services,
[data-theme="light"] section[style*="background"] {
  background: var(--bg-section) !important;
}
[data-theme="light"] .service-card {
  background: var(--card-bg-light);
  border-color: var(--border-light);
  box-shadow: 0 2px 12px rgba(26,86,219,0.08);
}
[data-theme="light"] .service-card h3 { color: #0d1b3e; }
[data-theme="light"] .service-card p { color: #4a5a80; }
[data-theme="light"] .service-card:hover {
  border-color: rgba(26,86,219,0.4);
  background: rgba(255,255,255,0.95);
}

[data-theme="light"] .section-title { color: #0d1b3e; }
[data-theme="light"] .section-subtitle { color: #4a5a80; }

[data-theme="light"] .why-choose {
  background: linear-gradient(135deg, #dce8ff 0%, #e8f0ff 60%, #dce8ff 100%);
}
[data-theme="light"] .why-content h2 { color: #0d1b3e; }
[data-theme="light"] .why-content p { color: #3a5080; }
[data-theme="light"] .why-features li { color: #1a2a5e; }

[data-theme="light"] .page-hero {
  background: linear-gradient(135deg, #c8d8ff 0%, #dce8ff 60%, #c8d8ff 100%);
}
[data-theme="light"] .page-hero h1 { color: #0d1b3e; }
[data-theme="light"] .page-hero p { color: #4a5a80; }

[data-theme="light"] .about-text h2,
[data-theme="light"] .about-text p { color: #0d1b3e; }
[data-theme="light"] .stat-card { background: var(--card-bg-light); border-color: var(--border-light); }
[data-theme="light"] .stat-card .label { color: #4a5a80; }
[data-theme="light"] .team-card { background: var(--card-bg-light); border-color: var(--border-light); }
[data-theme="light"] .team-card h3 { color: #0d1b3e; }
[data-theme="light"] .team-card p { color: #4a5a80; }

[data-theme="light"] .service-full-card {
  background: var(--card-bg-light);
  border-color: var(--border-light);
}
[data-theme="light"] .service-full-card h3 { color: #0d1b3e; }
[data-theme="light"] .service-full-card p,
[data-theme="light"] .service-full-card ul li { color: #4a5a80; }

[data-theme="light"] .contact-form-box {
  background: var(--card-bg-light);
  border-color: var(--border-light);
}
[data-theme="light"] .contact-form-box h3 { color: #0d1b3e; }
[data-theme="light"] .form-group label { color: #3a5080; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: #fff;
  border-color: rgba(26,86,219,0.2);
  color: #0d1b3e;
}
[data-theme="light"] .contact-info h2 { color: #0d1b3e; }
[data-theme="light"] .contact-info p { color: #3a5080; }
[data-theme="light"] .contact-item h4 { color: #0d1b3e; }
[data-theme="light"] .contact-item p { color: #4a5a80; }

[data-theme="light"] footer { background: #dce8ff; border-top-color: rgba(26,86,219,0.15); }
[data-theme="light"] .footer-brand p { color: #4a5a80; }
[data-theme="light"] .footer-col h4 { color: #0d1b3e; }
[data-theme="light"] .footer-col ul li a { color: #4a5a80; }
[data-theme="light"] .footer-bottom { color: #6a7a9a; border-top-color: rgba(26,86,219,0.1); }

.social-link { color: #fff; }
[data-theme="light"] .social-link { color: #1a2a5e; }

[data-theme="light"] .mobile-menu { background: rgba(240,244,255,0.98); }
[data-theme="light"] .mobile-menu ul a { color: #1a2a5e; }

[data-theme="light"] #themeToggle { background: rgba(26,86,219,0.9); }

/* ===== PORTFOLIO ===== */
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,200,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,255,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* ===== INDUSTRIES & TECH ===== */
.industry-card:hover, .tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,200,255,0.3);
  background: rgba(0,150,80,0.08);
}

/* ===== LIGHT MODE - NEW SECTIONS ===== */
[data-theme="light"] .portfolio,
[data-theme="light"] .testimonials,
[data-theme="light"] .industries {
  background: var(--bg-section) !important;
}

[data-theme="light"] .portfolio-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .industry-card,
[data-theme="light"] .tech-card {
  background: var(--card-bg-light);
  border-color: var(--border-light);
  box-shadow: 0 2px 12px rgba(26,86,219,0.08);
}

[data-theme="light"] .portfolio-card h3,
[data-theme="light"] .testimonial-card h4,
[data-theme="light"] .industry-card h4,
[data-theme="light"] .tech-card p {
  color: #0d1b3e;
}

[data-theme="light"] .portfolio-card p,
[data-theme="light"] .testimonial-card p {
  color: #4a5a80;
}

[data-theme="light"] .portfolio-card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .industry-card:hover,
[data-theme="light"] .tech-card:hover {
  border-color: rgba(26,86,219,0.4);
  background: rgba(255,255,255,0.95);
}

/* ===== RESPONSIVE - NEW SECTIONS ===== */
@media (max-width: 1024px) {
  .portfolio-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .portfolio-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-card, .testimonial-card, .industry-card { padding: 24px 20px; }
  .portfolio-image { height: 160px !important; font-size: 2.5rem !important; }
}

@media (max-width: 480px) {
  .industries-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card h3, .testimonial-card h4 { font-size: 1rem; }
  .portfolio-card p, .testimonial-card p { font-size: 0.85rem; }
  .industry-card, .tech-card { padding: 20px 16px; }
}

/* ===== ADDITIONAL MOBILE FIXES ===== */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  body, html { max-width: 100vw; overflow-x: hidden; }
  
  /* Portfolio section mobile fixes */
  .portfolio { padding: 60px 4% !important; }
  .portfolio-grid { 
    grid-template-columns: 1fr !important; 
    gap: 20px !important; 
  }
  
  /* Testimonials section mobile fixes */
  .testimonials { padding: 60px 4% !important; }
  .testimonials-grid { 
    grid-template-columns: 1fr !important; 
    gap: 20px !important; 
  }
  
  /* Industries section mobile fixes */
  .industries { padding: 60px 4% !important; }
  .industries-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 16px !important; 
  }
  
  /* Tech grid mobile fixes */
  .tech-grid { 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 12px !important; 
  }
  
  /* Inline style overrides for mobile */
  section[style*="padding"] { 
    padding: 60px 4% !important; 
  }
  
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  div[style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  /* Card padding adjustments */
  div[style*="padding: 32px"] {
    padding: 20px !important;
  }
  
  div[style*="padding: 28px 20px"] {
    padding: 20px 16px !important;
  }
  
  /* Font size adjustments */
  h2[style*="font-size: 2rem"],
  h2[style*="font-size: 1.8rem"] {
    font-size: 1.5rem !important;
  }
  
  h3[style*="font-size: 1.6rem"] {
    font-size: 1.3rem !important;
  }
  
  /* Image height adjustments */
  div[style*="height: 200px"] {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .industries-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important; 
  }
  
  .tech-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important; 
  }
  
  /* Further reduce padding */
  .portfolio, .testimonials, .industries { 
    padding: 50px 3% !important; 
  }
  
  /* Smaller cards */
  .portfolio-card, .testimonial-card, .industry-card, .tech-card {
    padding: 16px !important;
  }
  
  /* Smaller fonts */
  .portfolio-card h3, .testimonial-card h4 {
    font-size: 0.95rem !important;
  }
  
  .portfolio-card p, .testimonial-card p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }
  
  /* Tech card adjustments */
  .tech-card div[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }
  
  .tech-card p {
    font-size: 0.75rem !important;
  }
  
  /* Industry card emoji size */
  .industry-card div[style*="font-size: 2.5rem"] {
    font-size: 2rem !important;
  }
}

/* Fix for hero section overflow on mobile */
@media (max-width: 768px) {
  .hero {
    overflow: hidden;
    position: relative;
  }
  
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-right: 10%;
  }
  
  .hero-visual {
    max-width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
  
  .hero-orbit-system {
    width: 300px !important;
    height: 300px !important;
  }
  
  #networkCanvas {
    max-width: 100vw;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-right: 5%;
  }
  
  .hero-orbit-system {
    width: 260px !important;
    height: 260px !important;
  }
}
