/* IT DIGICOM - Modern CSS */
:root {
  --primary: #7D3F98;
  --primary-dark: #5c2d73;
  --primary-light: #9d5ab8;
  --accent: #00bce4;
  --accent-dark: #0099bb;
  --dark: #0f0f23;
  --dark-alt: #1a1a35;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --light: #f8f9ff;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(125, 63, 152, 0.12);
  --shadow-lg: 0 8px 40px rgba(125, 63, 152, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img { height: 52px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-links a {
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.navbar.scrolled .navbar-links a { color: var(--text); }
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 2px;
}
.navbar-links a:hover::after,
.navbar-links a.active::after { transform: scaleX(1); }
.navbar-links a:hover { color: var(--accent); }
.navbar-links a.active { color: var(--accent); }
.navbar.scrolled .navbar-links a:hover { color: var(--primary); }
.navbar.scrolled .navbar-links a::after { background: var(--primary); }
.navbar.scrolled .navbar-links a.active { color: var(--primary); }

.navbar-cta {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 8px;
  padding: 8px 20px !important;
  font-weight: 600;
}
.navbar-cta:hover { background: var(--accent-dark); color: var(--white) !important; }
.navbar-cta::after { display: none !important; }
.navbar.scrolled .navbar-cta { color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,35,0.75) 0%, rgba(125,63,152,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,188,228,0.2);
  border: 1px solid rgba(0,188,228,0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(125,63,152,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(125,63,152,0.45);
  color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,188,228,0.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── SECTION COMMONS ─────────────────────── */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(125,63,152,0.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.section-title span { color: var(--primary); }
.section-desc {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ─── SERVICES CARDS ──────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  color: var(--white);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  transform: rotate(5deg) scale(1.05);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── ABOUT / MARKETING SECTION ──────────── */
.about-section { background: var(--light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-badge {
  position: absolute;
  bottom: 28px; right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-image-badge .badge-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.badge-text strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.badge-text span { font-size: 0.8rem; color: var(--text-muted); }

.about-content .section-header { text-align: left; margin-bottom: 28px; }
.about-content .divider { margin: 16px 0 0; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.about-list { margin: 24px 0; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-weight: 500;
}
.about-list li i {
  width: 22px; height: 22px;
  background: rgba(125,63,152,0.12);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ─── CTA BANNER ─────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 50%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,188,228,0.15) 0%, transparent 60%);
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-inner h2 span { color: var(--accent); }
.cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── PAGE HERO (inner pages) ────────────── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-content { text-align: center; position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb i { font-size: 0.7rem; }

/* ─── SERVICES PAGE ──────────────────────── */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-page-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--border);
}
.service-page-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-page-card img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.service-page-card:hover img { transform: scale(1.05); }
.service-page-card-img { overflow: hidden; }
.service-page-card-body { padding: 28px; }
.service-page-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.service-page-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── PORTFOLIO PAGE ─────────────────────── */
.portfolio-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.portfolio-embed iframe { display: block; }

/* ─── CONTACT PAGE ───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}
.contact-item-text span { color: var(--text-muted); font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--dark);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  position: relative;
  margin-bottom: 20px;
}
.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: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--light);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(125,63,152,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ─── FOOTER ─────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.8; max-width: 300px; }

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.footer-contact-item i {
  color: var(--accent);
  font-size: 1rem;
  width: 18px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
  overflow: hidden;
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
.social-link img { width: 20px; height: 20px; object-fit: cover; border-radius: 4px; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}
.footer-bottom span { color: var(--primary-light); font-weight: 600; }

/* ─── ANIMATIONS ──────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

[data-aos] { transition: opacity 0.7s ease, transform 0.7s ease; }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .services-grid,
  .services-page-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; flex-direction: column; position: fixed; inset: 0; top: 70px; background: var(--white); padding: 32px 24px; gap: 4px; }
  .navbar-links.open { display: flex; }
  .navbar-links a { color: var(--text) !important; padding: 14px 16px; border-radius: 10px; font-size: 1.05rem; }
  .navbar-links a:hover { background: var(--light); }
  .hamburger { display: flex; }
  .navbar { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
  .navbar .hamburger span { background: var(--text); }

  .services-grid,
  .services-page-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-badge { right: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { padding: 0 8px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .section { padding: 64px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero { min-height: 100svh; }
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
