/* ============================================================
   FERTEKA SOLUTIONS — STYLESHEET
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  --navy:       #0B1D3A;
  --navy-deep:  #070F1E;
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --blue-pale:  #EFF6FF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --gray-900:   #0F172A;
  --white:      #FFFFFF;

  --font: 'Inter', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(11,29,58,.07);
  --shadow-md: 0 8px 40px rgba(11,29,58,.11);
  --ease:      cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--font); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 96px 0; }

/* ===== TYPOGRAPHY HELPERS ===== */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--navy);
}
.section-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 520px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-title { margin-bottom: 14px; }
.section-header .section-desc { margin: 0 auto; }

p { line-height: 1.7; color: var(--gray-500); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all .25s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,.35);
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.5);
}
.btn-block { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 22px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--gray-200);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo-svg { width: 38px; height: 38px; }
.brand-name {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.88);
  letter-spacing: -.01em;
}
.brand-name strong { font-weight: 700; }
.brand-white { color: var(--white); }
.navbar.scrolled .brand-name { color: var(--navy); }

.nav-menu {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover { color: var(--blue); background: var(--blue-pale); }

.btn-nav {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.btn-nav:hover { background: var(--blue-light); transform: translateY(-1px); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s var(--ease);
}
.navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    border-top: 1px solid var(--gray-200);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { color: var(--gray-700); }
  .nav-menu .nav-link:hover { color: var(--blue); }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  overflow: hidden;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(37,99,235,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(59,130,246,.35);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp .8s var(--ease) both;
}
.hero-title {
  font-size: clamp(38px, 7vw, 70px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp .8s var(--ease) .1s both;
}
.hero-title .accent { color: var(--blue-light); }
.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.6);
  max-width: 580px;
  margin: 0 auto 40px;
  animation: fadeUp .8s var(--ease) .2s both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .8s var(--ease) .3s both;
}
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.35);
  border-radius: 50%;
  animation: bounce 2.2s ease-in-out infinite;
}

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .label { margin-bottom: 14px; }
.about-text .section-title { margin-bottom: 20px; }
.about-text p { font-size: 16px; margin-bottom: 16px; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* about cards */
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.about-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.card-main { grid-column: 1 / -1; }
.card-icon-wrap {
  width: 48px; height: 48px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon-wrap svg { width: 24px; height: 24px; stroke: var(--blue); }
.about-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.about-card p { font-size: 14px; }
.card-stat {
  font-size: 40px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
}

/* ===== ABOUT PHOTO ===== */
.about-visual { position: relative; }
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0d2347 0%, #1a3d7a 50%, #0b1d3a 100%);
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-badges {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
}
.about-badge {
  flex: 1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.badge-stat {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.about-badge p {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.3;
}

/* ===== SERVICES ===== */
.services { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity .25s;
}
.service-card:hover,
.service-card.featured { border-color: transparent; }
.service-card:hover::after,
.service-card.featured::after { opacity: 1; }
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.service-card.featured {
  background: var(--navy);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.service-card.featured .service-num  { color: rgba(255,255,255,.15); }
.service-card.featured .service-icon { background: rgba(255,255,255,.08); }
.service-card.featured .service-icon svg { stroke: var(--blue-light); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p  { color: rgba(255,255,255,.6); }
.service-card.featured .service-tags span {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
}

/* service card images */
.service-img-wrap {
  margin: -36px -30px 28px;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2347 0%, #1a3d7a 100%);
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.service-card:hover .service-img { transform: scale(1.05); }
.service-card.featured .service-img-wrap {
  background: linear-gradient(135deg, #060f1d 0%, #0d2347 100%);
}
.service-card.featured .service-img { opacity: .7; }

.service-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gray-300);
  margin-bottom: 20px;
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--blue); }
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p { font-size: 14px; margin-bottom: 24px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--gray-100);
  border-radius: 100px;
  color: var(--gray-500);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--blue);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}
.stat-num {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-sfx {
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* ===== IMAGE BREAK ===== */
.image-break {
  height: 400px;
  background: url('images/banner.jpg') center / cover fixed;
  background-color: var(--navy);
  position: relative;
}
.image-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 30, .45);
}

/* ===== SOLUTIONS ===== */
.solutions { background: var(--white); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sol-item {
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.sol-item:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.sol-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.sol-icon svg { width: 24px; height: 24px; stroke: var(--blue); }
.sol-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.sol-item p { font-size: 14px; }

/* ===== CONTACT ===== */
.contact { background: var(--gray-50); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.c-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.c-icon svg { width: 20px; height: 20px; stroke: var(--blue); }
.c-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.contact-item a,
.contact-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
}
.contact-item a:hover { color: var(--blue); }
.contact-quote {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,.65);
  border: none;
  line-height: 1.6;
}

/* contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }
.form-group textarea { min-height: 130px; }

.contact-form .btn-primary { margin-top: 4px; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  border: 1px solid rgba(37,99,235,.15);
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.form-success p { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
  max-width: 240px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a,
.footer-col li {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; }
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.25);
  margin: 0;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0);   opacity: .35; }
  50%       { transform: translateY(10px); opacity: .7; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid    { gap: 48px; }
  .services-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-frame { aspect-ratio: 3 / 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .image-break { background-attachment: scroll; height: 260px; }
}

@media (max-width: 480px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.2); }
  .hero-title { font-size: clamp(32px, 10vw, 52px); }
}
