/* ============================================
   VS Technologies — Modern Redesign
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --navy: #3d4560;
  --navy-deep: #2a3045;
  --navy-light: #505973;
  --slate: #6b7394;
  --sky: #e8ecf4;
  --sky-light: #f3f5fa;
  --white: #ffffff;
  --accent: #4a7cff;
  --accent-warm: #ff7a4a;
  --text: #3a3f52;
  --text-light: #6e7489;
  --text-faint: #9a9fb5;
  --border: #dfe3ed;
  --shadow-sm: 0 1px 3px rgba(42,48,69,0.06);
  --shadow-md: 0 4px 16px rgba(42,48,69,0.08);
  --shadow-lg: 0 12px 40px rgba(42,48,69,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Instrument Serif', serif;
  --max-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--navy); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--navy-deep); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: 1.35rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.anim-fade-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.anim-fade-up.d1 { animation-delay: 0.1s; }
.anim-fade-up.d2 { animation-delay: 0.2s; }
.anim-fade-up.d3 { animation-delay: 0.3s; }
.anim-fade-up.d4 { animation-delay: 0.4s; }
.anim-fade-up.d5 { animation-delay: 0.5s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; border: none; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  transition: all 0.4s ease;
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
}
.site-header .logo img { height: 40px; width: auto; transition: filter 0.3s ease; }

.site-header.transparent { background: transparent; }
.site-header.transparent .logo img { filter: brightness(0) invert(1); }
.site-header.transparent .nav-links a { color: rgba(255,255,255,0.85); }
.site-header.transparent .nav-links a:hover,
.site-header.transparent .nav-links a.active { color: var(--white); }

.site-header.solid,
.site-header.scrolled {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.site-header.solid .logo img, .site-header.scrolled .logo img { filter: none; }
.site-header.solid .nav-links a, .site-header.scrolled .nav-links a { color: var(--text); }
.site-header.solid .nav-links a:hover, .site-header.scrolled .nav-links a:hover,
.site-header.solid .nav-links a.active, .site-header.scrolled .nav-links a.active { color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 20px; border-radius: 100px; font-size: 0.925rem;
  font-weight: 500; letter-spacing: 0.01em; transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { background: rgba(74,124,255,0.08); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 1001; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s ease; }
.site-header.transparent .hamburger span { background: var(--white); }
.site-header.scrolled .hamburger span { background: var(--navy); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,48,69,0.97); backdrop-filter: blur(20px); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-display); font-size: 2rem; color: var(--white); padding: 12px 24px; }
.mobile-nav .close-btn { position: absolute; top: 24px; right: 24px; font-size: 2rem; color: white; background: none; border: none; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO (Home)
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(74,124,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255,122,74,0.08) 0%, transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 100px;
  color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 5.5vw, 4.2rem); line-height: 1.1; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.6); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.55); max-width: 560px; margin-bottom: 40px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-shapes { position: absolute; right: 0; top: 0; width: 50%; height: 100%; pointer-events: none; z-index: 1; }
.hero-shapes .shape { position: absolute; border-radius: 50%; opacity: 0.07; }
.hero-shapes .s1 { width: 400px; height: 400px; background: var(--accent); top: 15%; right: 5%; animation: float 8s ease-in-out infinite; }
.hero-shapes .s2 { width: 200px; height: 200px; border: 2px solid rgba(255,255,255,0.2); bottom: 20%; right: 25%; animation: float 6s ease-in-out 2s infinite reverse; }
.hero-shapes .s3 { width: 80px; height: 80px; background: var(--accent-warm); top: 30%; right: 35%; animation: float 5s ease-in-out 1s infinite; }

@media (max-width: 768px) {
  .hero { min-height: 85vh; padding-top: 100px; }
}

/* ============================================
   PAGE HERO (Sub pages)
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(74,124,255,0.12) 0%, transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.breadcrumb-nav { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.9rem; color: rgba(255,255,255,0.45); }
.breadcrumb-nav a { color: rgba(255,255,255,0.45); }
.breadcrumb-nav a:hover { color: var(--white); }
.breadcrumb-nav .sep { font-size: 0.7rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section.bg-light { background: var(--sky-light); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-label .line { width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-header h2 { margin-bottom: 18px; }
.section-header p { font-size: 1.05rem; color: var(--text-light); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-text h2 { margin-bottom: 20px; }
.intro-text p { font-size: 1.05rem; line-height: 1.8; }
.visual-card {
  background: linear-gradient(135deg, var(--sky) 0%, var(--white) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px; position: relative; overflow: hidden;
}
.visual-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; background: rgba(74,124,255,0.08); border-radius: 50%;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; position: relative; }
.stat-item .stat-number { font-family: var(--font-display); font-size: 2.8rem; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.stat-item .stat-desc { font-size: 0.85rem; color: var(--text-light); margin: 0; }

@media (max-width: 768px) { .intro-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Services Cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .card-icon {
  width: 56px; height: 56px; background: var(--sky);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 1.3rem; color: var(--navy); transition: all 0.3s ease;
}
.service-card:hover .card-icon { background: var(--navy); color: var(--white); }
.service-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; color: var(--navy-deep); }
.service-card p { font-size: 0.93rem; line-height: 1.7; color: var(--text-light); margin: 0; }

@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* Expertise / Tabs */
.tab-navigation { display: flex; gap: 6px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
  padding: 12px 28px; border-radius: 100px; font-family: var(--font-body);
  font-size: 0.925rem; font-weight: 500; color: var(--text-light);
  background: var(--white); border: 1px solid var(--border); cursor: pointer; transition: all 0.3s ease;
}
.tab-btn:hover { color: var(--navy); border-color: var(--navy-light); }
.tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; animation: fadeUp 0.5s ease; }

.tab-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 48px;
}
.tab-visual {
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, var(--sky) 0%, var(--border) 100%);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.tab-visual img { width: 100%; height: 100%; object-fit: cover; }
.tab-visual .placeholder-icon { font-size: 3rem; color: var(--slate); opacity: 0.4; }
.tab-text h3 { font-size: 1.6rem; margin-bottom: 16px; }
.tab-text p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.93rem; color: var(--text); }
.feature-list li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 768px) { .tab-layout { grid-template-columns: 1fr; padding: 28px; } }

/* About */
.content-layout { display: grid; grid-template-columns: 280px 1fr; gap: 60px; }
.sidebar-nav { position: sticky; top: 120px; }
.sidebar-nav a {
  display: block; padding: 14px 20px; border-radius: var(--radius-sm);
  color: var(--text-light); font-weight: 500; font-size: 0.95rem;
  transition: all 0.3s ease; border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--sky-light); color: var(--navy); border-left-color: var(--accent); }

.content-block { margin-bottom: 56px; }
.content-block h3 { margin-bottom: 18px; font-size: 1.8rem; }
.content-block p { font-size: 1rem; line-height: 1.85; }
.content-block .feature-list { margin-top: 20px; }

@media (max-width: 768px) {
  .content-layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar-nav { position: static; display: flex; gap: 8px; flex-wrap: wrap; }
}

/* Services detail */
.service-block { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-block h3 { font-size: 1.8rem; margin-bottom: 18px; }
.service-block h4 { font-family: var(--font-body); font-weight: 600; margin: 24px 0 12px; color: var(--navy); }
.service-block p { font-size: 1rem; line-height: 1.85; }

.service-sub-items { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.service-sub-item {
  padding: 20px 24px; background: var(--sky-light);
  border-radius: var(--radius-sm); border-left: 3px solid var(--accent);
}
.service-sub-item h5 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.service-sub-item p { font-size: 0.92rem; margin: 0; color: var(--text-light); }

.offshore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; align-items: center; }
.offshore-grid img { border-radius: var(--radius-md); }
@media (max-width: 768px) { .offshore-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.contact-card {
  text-align: center; padding: 40px 28px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md); transition: all 0.3s ease;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-card .card-icon {
  width: 56px; height: 56px; background: var(--sky); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.3rem; color: var(--navy);
}
.contact-card p { font-size: 0.95rem; color: var(--text); margin: 0; }
.contact-card .label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); display: block; margin-bottom: 8px; }

@media (max-width: 768px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-form-wrapper { max-width: 720px; margin: 0 auto; }
.contact-form-wrapper h3 { text-align: center; margin-bottom: 8px; }
.contact-form-wrapper > p { text-align: center; margin-bottom: 36px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.95rem; color: var(--text); background: var(--white);
  transition: all 0.3s ease; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,124,255,0.1); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-submit { text-align: center; grid-column: 1 / -1; margin-top: 12px; }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }

/* Map Embed */
.map-wrapper { max-width: 900px; margin: 0 auto; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 60px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo img { height: 36px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.45); max-width: 320px; }
.footer-nav h4, .footer-info h4 {
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.45); }
.footer-nav a:hover { color: var(--white); }
.footer-info .info-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-info .info-item .info-label { font-weight: 600; color: rgba(255,255,255,0.65); white-space: nowrap; }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.3); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
