/*
 * CyberTech clone stylesheet
 *
 * This stylesheet defines a flexible, responsive layout for the CyberTech
 * corporate site. Colors and layout choices loosely follow the original
 * site while ensuring accessibility and clear hierarchy. CSS variables
 * make it easy to adjust primary colours and spacing.
 */

:root {
  --primary-color: #0066aa;
  --secondary-color: #009adf;
  --accent-color: #f8c200;
  --light-bg: #f7f9fb;
  --dark-bg: #003f5c;
  --green-bg: #a5d76e;
  --blue-bg: #6cb2e4;
  --recruit-bg: #f9c74f;
  --text-color: #333;
  --heading-color: #1c3a57;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}
.logo-text {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.tagline {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  padding: 0.5rem 0;
  font-weight: 500;
}
.nav a:hover {
  border-bottom: 2px solid var(--primary-color);
}

.search-bar {
  margin-left: auto;
  margin-right: 1rem;
  position: relative;
}
.search-bar input {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9rem;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}
.mobile-toggle span {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  width: 100%;
  margin-top: 70px; /* header height offset */
  overflow: hidden;
}
.hero .slides {
  position: relative;
  height: 100%;
  width: 100%;
}
.hero .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero .slide.active {
  opacity: 1;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero .slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 1rem;
}
.hero .slide-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.hero .slide-content p {
  font-size: 1rem;
}
.hero .controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.hero .controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}
.hero .controls button.active {
  background: #fff;
}

/* Generic section styling */
.section {
  padding: 4rem 0;
}
.section-heading {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  text-align: center;
}
.section-title {
  /* Center-align the main intro title to emphasise the core message. */
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  text-align: center;
}
.section-subheading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  text-align: center;
}

/* Introduction section */
.intro-section {
  background: var(--light-bg);
}
.intro-section .intro-text {
  margin-bottom: 1rem;
  font-size: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Information section */
.info-section {
  background: linear-gradient(135deg, #009edc, #006bb7);
  color: #fff;
}
.info-list {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px dotted rgba(255,255,255,0.5);
  font-size: 0.95rem;
}
.info-item:last-child {
  border-bottom: none;
}
.info-item .date {
  font-weight: bold;
  margin-right: 1rem;
  white-space: nowrap;
}
.info-more {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  border-bottom: 1px dotted rgba(255,255,255,0.7);
}
.info-more:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.info-footer {
  text-align: right;
  margin-top: 0.5rem;
}

/* Business overview section */
.business-section {
  background: var(--light-bg);
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.card {
  flex: 1 1 calc(33.333% - 2rem);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-content {
  padding: 1rem;
  flex: 1;
}
.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}
.card-content p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.card-content ul {
  list-style: none;
}
.card-content li {
  margin-bottom: 0.3rem;
}
.card-content a {
  color: var(--primary-color);
  font-size: 0.9rem;
  border-bottom: 1px dotted var(--primary-color);
}
.card-content a:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Solutions section */
.solutions-section {
  background: var(--green-bg);
  color: #fff;
}
.solutions-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.solutions-text {
  flex: 1 1 55%;
}
.solutions-image {
  flex: 1 1 40%;
  text-align: center;
}
.solutions-image img {
  max-width: 100%;
  border-radius: 6px;
}
.solutions-text p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.solutions-text ul li {
  margin-bottom: 0.3rem;
}
.solutions-text a {
  color: #fff;
  border-bottom: 1px dotted rgba(255,255,255,0.7);
}
.solutions-text a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Support section */
.support-section {
  background: var(--blue-bg);
  color: #fff;
}
.support-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.support-image {
  flex: 1 1 40%;
  text-align: center;
}
.support-image img {
  max-width: 100%;
  border-radius: 6px;
}
.support-text {
  flex: 1 1 55%;
}
.support-text p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.support-text ul li {
  margin-bottom: 0.3rem;
}
.support-text a {
  color: #fff;
  border-bottom: 1px dotted rgba(255,255,255,0.7);
}
.support-text a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Recruit section */
.recruit-section {
  background: var(--recruit-bg);
  color: #fff;
  text-align: center;
}
.recruit-lead {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.recruit-text {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}
.recruit-button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #fff;
  color: var(--recruit-bg);
  border-radius: 3px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}
.recruit-button:hover {
  background: rgba(255,255,255,0.8);
  color: #000;
}

/* Footer */
.footer {
  background: #eee;
  color: #444;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding: 2rem 0;
}
.footer-column {
  flex: 1 1 200px;
}
.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--heading-color);
}
.footer-column ul li {
  margin-bottom: 0.4rem;
}
.footer-column a {
  color: var(--primary-color);
  font-size: 0.9rem;
}
.footer-column a:hover {
  color: var(--secondary-color);
}
.footer-bottom {
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .card {
    flex: 1 1 calc(50% - 2rem);
  }
  .solutions-content, .support-content {
    flex-direction: column;
  }
  .solutions-text, .support-text,
  .solutions-image, .support-image {
    flex: 1 1 100%;
  }
  .search-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 1rem;
    z-index: 100;
  }
  .nav ul.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .header-container {
    gap: 1rem;
  }
  .hero {
    height: 80vh;
  }
  .hero .slide-content h1 {
    font-size: 1.8rem;
  }
  .hero .slide-content p {
    font-size: 0.9rem;
  }
  .info-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .card {
    flex: 1 1 100%;
  }
  .section-heading {
    font-size: 1.6rem;
  }
}
