/* Root & Brand Variables */
:root {
  --blue-primary: #194085; /* Deepoint blue */
  --blue-dark: #0f2756;
  --red-accent: #cc2525;
  --white: #ffffff;
  --bg-light: #f7f9fa;
  --text-dark: #333333;
  --text-gray: #666666;
  --font-main: 'Montserrat', sans-serif;
  --border-light: #e0e0e0;
  --transition: all 0.3s ease;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background-color: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; display: inline-block; }
li { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }

/* Custom Typography */
h1 { font-size: 3.5rem; font-weight: 700; color: var(--white); line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; color: var(--blue-primary); }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
p { line-height: 1.6; color: var(--text-gray); font-size: 1rem; }

/* Highlight Accents */
.red-text { color: var(--red-accent) !important; }
.blue-text { color: var(--blue-primary) !important; }

/* Buttons */
.btn-round { padding: 10px 30px; border-radius: 50px; font-weight: 600; transition: var(--transition); border: 2px solid transparent; }
.btn-blue { background-color: var(--blue-primary); color: var(--white); }
.btn-blue:hover { background-color: var(--red-accent); color: var(--white); } /* specifically requested hover */
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background-color: var(--red-accent); border-color: var(--red-accent); }
.btn-circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--white); color: var(--text-dark); transition: var(--transition); }
.btn-circle:hover { border-color: var(--red-accent); color: var(--red-accent); transform: scale(1.1); }

/* --- HEADER / NAVBAR --- */
.header { position: fixed; top: 0; width: 100%; height: 80px; background: var(--white); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; align-items: center; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; width: 100%; }
.logo { font-size: 2rem; font-weight: 800; color: var(--blue-primary); display: flex; align-items: center; }
.logo span { color: var(--red-accent); }
.logo img { height: 40px; }

.nav-menu { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.nav-item > a { display: flex; align-items: center; gap: 5px; color: var(--text-dark); transition: var(--transition); }
.nav-item:hover > a { color: var(--red-accent); }

/* Dropdown specific */
.dropdown-menu { position: absolute; top: 80px; left: 0; background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,0.1); width: 220px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); border-top: 3px solid var(--red-accent); }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { border-bottom: 1px solid var(--border-light); }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu a { padding: 12px 20px; display: block; width: 100%; font-size: 0.9rem; color: var(--text-gray); transition: var(--transition); }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--red-accent); padding-left: 25px; }

.nav-arrow { display: inline-block; font-size: 1.3em; transform: translateY(3px) scaleX(1.3); margin-left: 4px; font-weight: normal; }

.nav-actions { display: flex; align-items: center; gap: 20px; }

/* --- HERO SECTION --- */
.hero { height: 100vh; position: relative; width: 100%; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: #000; }
.hero-slide { position: absolute; width:100%; height:100%; object-fit: contain; object-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; z-index: 0; }
.hero-content { z-index: 2; position: relative; max-width: 800px; padding-left: 5%; }
.hero-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--white); }

/* --- WHO WE ARE --- */
.whoweare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.stats-banner { display: flex; gap: 20px; margin-top: 30px; }
.stat-box { flex: 1; background: var(--white); border: 1px solid var(--border-light); padding: 20px; text-align: center; border-radius: 8px; cursor: pointer; transition: var(--transition); }
.stat-box:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--white); transform: translateY(-5px); }
.stat-box img { height: 40px; margin: 0 auto 10px; }
.stat-box h4 { font-size: 1.2rem; color: var(--red-accent); margin-bottom: 5px; }

/* --- ADVANTAGES (BLUE STRIP) --- */
.advantages { background-color: var(--blue-primary); color: var(--white); text-align: center; padding: 60px 0; }
.advantages h2 { color: var(--white); }
.advantages h2 span { color: var(--red-accent); }
.adv-video-container { position: relative; max-width: 900px; margin: 40px auto 0; border-radius: 12px; overflow: hidden; height: 500px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.adv-video { width: 100%; height: 100%; object-fit: cover; }
.video-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; z-index: 10; pointer-events: none; }
.video-controls button { width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.55); background: rgba(15, 25, 45, 0.32); color: white; transition: var(--transition); font-size: 1.35rem; pointer-events: auto; backdrop-filter: blur(8px); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.video-controls button:hover { background: rgba(25, 64, 133, 0.92); border-color: rgba(255,255,255,0.9); transform: scale(1.04); }
.play-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.75); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); z-index: 10; backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(0,0,0,0.14);}
.play-center::after { content: ''; display: block; margin-left: 6px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent white; }
.play-center:hover { background: rgba(204,37,37,0.95); border-color: rgba(255,255,255,0.95); transform: translate(-50%, -50%) scale(1.06); }

/* --- CASES PORTFOLIO --- */
.cases-head { display: flex; align-items: center; margin-bottom: 30px; gap: 20px; }
.cases-head h2 { margin: 0; }
.icon-add { background: var(--red-accent); color: white; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.icon-add:hover { transform: rotate(90deg) scale(1.1); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 20px; }
.case-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.case-img:hover { filter: brightness(0.8); }
.case-large { grid-column: span 2; grid-row: span 2; }

/* --- APPLICATIONS --- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-card { background: var(--bg-light); padding: 25px 20px; flex-direction: column; display: flex; cursor: pointer; transition: 0.3s; border-top: 3px solid transparent;}
.app-card:hover { border-color: var(--red-accent); background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.app-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.app-head h4 { font-size: 1.1rem; }
.app-head img { height: 30px; }
.app-pic { width: 100%; height: 200px; object-fit: cover; overflow: hidden; margin-top: 10px; cursor: pointer; }
.app-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.app-pic:hover img { transform: scale(1.1); }

/* --- PRODUCTS (TABS) --- */
.products-layout { display: flex; background: var(--bg-light); border-radius: 20px; overflow: hidden; margin-top: 40px;}
.prod-sidebar { width: 250px; background: var(--white); padding: 40px 0; border-right: 1px solid var(--border-light); }
.prod-tab { display: block; padding: 15px 40px; font-weight: 600; color: var(--text-dark); cursor: pointer; position: relative; transition: 0.3s; }
.prod-tab:hover, .prod-tab.active { background: var(--bg-light); color: var(--red-accent); }
.prod-tab.active::before { content: '▶'; position: absolute; left: 15px; color: var(--red-accent); font-size: 0.8rem; top: 18px; }
.prod-main { flex: 1; padding: 50px; display: flex; align-items: center; flex-direction: column; position: relative; }
.prod-display { display: flex; width: 100%; justify-content: center; gap: 50px; align-items: center; }
.prod-image-main { width: 400px; height: 400px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); }
.prod-desc { width: 250px; display: none; } /* Show when active */
.prod-desc.active { display: block; animation: fadeIn 0.5s ease; }
.prod-desc h3 { font-size: 2rem; color: var(--blue-primary); }
.prod-desc .btn-outline { border-color: var(--text-dark); color: var(--text-dark); padding: 8px 20px; font-size: 0.9rem; margin-top: 10px;}
.prod-desc .btn-outline:hover { background: var(--red-accent); color: var(--white); border-color: var(--red-accent); }
.prod-thumbs { display: flex; gap: 15px; margin-top: 40px; background: var(--white); padding: 15px; border-radius: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.prod-thumb { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border-light); cursor: pointer; transition: 0.3s; object-fit: contain; }
.prod-thumb:hover, .prod-thumb.active { border-color: var(--blue-primary); transform: scale(1.1); }

/* --- FACILITIES (BLUE BANNER) --- */
.facility-banner { background: var(--blue-primary); display: flex; height: 400px; }
.facility-img { flex: 1; background: url('../screens_media/home/facility/8.webp') center/cover; }
.facility-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 10%; color: var(--white); }
.facility-content h2 { color: var(--white); margin-bottom: 20px; }
.facility-content p { color: #cfcfcf; }
.f-arrow-btn { margin-top: 30px; width: 56px; height: 56px; border-radius: 999px; background: rgba(25,64,133,0.08); border: 1px solid rgba(25,64,133,0.18); display: flex; justify-content: center; align-items: center; color: var(--blue-primary); font-size: 1.35rem; transition: 0.3s; cursor: pointer; box-shadow: 0 8px 20px rgba(25,64,133,0.08);}
.f-arrow-btn:hover { background: var(--blue-primary); color: white; border-color: var(--blue-primary); transform: translateY(-2px); }

/* --- FOOTER --- */
.footer { border-top: 1px solid var(--border-light); padding-top: 60px; margin-top: 50px;}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer h4 { color: var(--text-dark); font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; }
.footer ul li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-gray); }
.footer ul a { transition: 0.3s; }
.footer ul a:hover { color: var(--blue-primary); padding-left: 5px; }

form.contact-form { border: 1px solid var(--border-light); padding: 20px; border-radius: 8px;}
form.contact-form .row { display: flex; gap: 10px; margin-bottom: 10px; }
form.contact-form input, form.contact-form textarea { width: 100%; border: 1px solid var(--border-light); padding: 8px 12px; font-family: inherit; font-size: 0.85rem;}
form.contact-form textarea { height: 60px; resize: none; margin-bottom: 10px;}
form.contact-form button { background: var(--white); border: 1px solid var(--text-dark); padding: 8px 25px; transition: 0.3s;}
form.contact-form button:hover { background: var(--blue-primary); color: white; border-color: var(--blue-primary); }

.social-links { display: flex; gap: 15px; margin-top: 40px; border-top: 1px solid var(--border-light); padding-top: 20px;}
.social-links a { font-size: 1.2rem; color: var(--text-dark); transition: 0.3s; font-weight: bold; }
.social-links a:hover { color: var(--red-accent); transform: translateY(-3px);}
.copyright { text-align: center; padding: 20px 0; font-size: 0.8rem; color: var(--text-gray); border-top: 1px solid var(--border-light); margin-top: 20px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- PRODUCTS PAGE --- */
.products-page {
  background: #efefef;
  padding: 130px 0 80px;
}

.product-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.product-category-btn {
  border: none;
  background: transparent;
  text-align: center;
  color: #23262d;
  cursor: pointer;
  padding: 0;
}

.product-category-btn img {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.product-category-btn span {
  font-size: 19px;
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  padding-bottom: 7px;
}

.product-category-btn.active span {
  color: var(--red-accent);
  border-color: var(--red-accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.product-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 24px 20px 26px;
  color: #1f1f1f;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.product-thumb-wrap {
  height: 255px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-thumb-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-card h3 {
  text-align: center;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: #222;
  margin: 0;
  min-height: 46px;
}

@media (max-width: 1200px) {
  .product-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .products-page { padding-top: 110px; }
  .product-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-category-btn span { font-size: 17px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
}

