/* ============================================
   CLOUDEMY — Global Stylesheet
   Shared across all pages
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --c-purple: #7c3aed;
  --c-purple-dark: #5b21b6;
  --c-purple-light: #a78bfa;
  --c-purple-faint: #f5f3ff;
  --c-purple-glow: rgba(124, 58, 237, 0.12);

  /* Neutrals */
  --c-white: #ffffff;
  --c-bg: #fafafa;
  --c-bg-alt: #f8f7ff;
  --c-text: #1a1a2e;
  --c-text-body: #4a4a5a;
  --c-text-muted: #7c7c8a;
  --c-border: #e8e6f0;
  --c-card-bg: #ffffff;

  /* Footer / Dark */
  --c-dark: #0f0d1a;
  --c-dark-card: #1a1730;
  --c-dark-text: #c4c0d4;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --container: 1200px;
  --nav-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-purple-dark); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-text);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Spacing --- */
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--c-bg-alt);
}
.section--dark {
  background: linear-gradient(160deg, #0f0a1e 0%, #1a103a 40%, #2d1b69 100%);
  color: var(--c-dark-text);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h2,
.section--dark h3 {
  color: var(--c-white);
}

/* --- Section Header --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-purple);
  border-radius: 2px;
}
.section-header {
  margin-bottom: 48px;
}
.section-header p {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-top: 12px;
}
.section-header--center {
  text-align: center;
}
.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn.animate-btn{
  background: linear-gradient(270deg, #a121ca 0%, #7b1fe4 100%);
  position: relative;
  overflow: hidden;
  transition: all 700ms ease;
  z-index: 99;
  &:hover{
    color: var(--c-white);
    border-color: #1a192e;
  }
}
.animate-btn::after {
  content: "";
  position: absolute;
  top: 1%;
  left: 0;
  width: 300px;
  height: 300px;
  background-color: #1a192e;
  border-color: transparent;
  border-radius: 50%;
  transform: translate(-10px, -70px) scale(0.1);
  opacity: 0;
  z-index: -1;
  transition: transform 0.5s, opacity 0.5s, background-color 0.5s;
}
.animate-btn:hover::after {
  opacity: 1;
  transform: scaleX(1.5) scaleY(1.5);
}
.btn--primary {
  background: linear-gradient(270deg, #a121ca 0%, #7b1fe4 100%);
  color: var(--c-white);
  border-color: transparent;
  transition: all 700ms ease;
  position: relative;
}
.btn--primary:hover {
  background: var(--c-purple-dark);
  border-color: var(--c-purple-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.btn--outline {
  background: transparent;
  color: var(--c-purple);
}
.btn--outline.animate-btn:hover {
  background: var(--c-purple);
  color: var(--c-white);
  transform: translateY(-2px);
  border-color: var(--c-white);
}
.btn--outline.animate-btn::after{
  background-color: var(--c-white);
}
.btn--white {
  background: var(--c-white);
  color: var(--c-purple);
  border-color: var(--c-white);
}
.btn--white:hover {
  background: var(--c-purple-faint);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.btn--white.animate-btn{
  background: var(--c-white);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}
.btn:hover svg { transform: translateX(3px); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-text);
}
.navbar__logo img,
.navbar__logo-img {
  height: 56px;
  width: auto;
}
.navbar__logo span {
  background: linear-gradient(135deg, var(--c-purple), var(--c-purple-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-text-body);
  position: relative;
  padding: 4px 0;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-purple);
  border-radius: 2px;
  transition: width var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active {
  color: var(--c-purple);
}
.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown__trigger svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown__trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.close-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    transform: scale(2.5);
}
.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--c-text-body);
}
.nav-dropdown__menu a::after { display: none; }
.nav-dropdown__menu a:hover {
  background: var(--c-purple-faint);
  color: var(--c-purple);
}
.nav-dropdown__menu a svg {
  width: 20px;
  height: 20px;
  color: var(--c-purple);
  flex-shrink: 0;
}

/* Navbar CTA */
.navbar__cta {
  margin-left: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--c-text);
  border-radius: 4px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--c-white);
  z-index: 1050;
  padding: 88px 28px 40px;
  transition: right 0.4s var(--ease);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}
.mobile-menu.open {
  right: 0;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__links a {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-menu__links a:hover,
.mobile-menu__links a.active {
  background: var(--c-purple-faint);
  color: var(--c-purple);
}
.mobile-menu__sub {
  padding-left: 20px;
  margin-bottom: 4px;
}
.mobile-menu__sub a {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  padding: 10px 16px;
}
.mobile-menu__cta {
  margin-top: 24px;
  padding: 0 16px;
}
.mobile-menu__cta .btn { width: 100%; justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, #0f0a1e 0%, #1a103a 100%);
  color: var(--c-dark-text);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
/* Grid lines on footer */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }
.footer a {
  color: var(--c-dark-text);
  transition: color var(--transition);
}
.footer a:hover {
  color: var(--c-white);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  color: var(--c-dark-text);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
}
.footer__logo img {
  height: 36px;
  width: auto;
}
.footer__socials {
  display: flex;
  gap: 12px;
}
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.footer__socials a:hover {
  background: var(--c-purple);
  color: var(--c-white);
  transform: translateY(-2px);
}
.footer__socials a svg {
  width: 18px;
  height: 18px;
}
.footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 0.9rem;
}
.footer__contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--c-purple-light);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer__bottom-links {
  display: flex;
  gap: 24px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-purple { color: var(--c-purple); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Fade-in on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fsucc {
  display: none;
  text-align: center;
  padding: 34px 14px;
}
.fck {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.fck svg {
  width: 26px;
  height: 26px;
  stroke: #00ff87;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fsucc h3 {
  font-family: var(--fh);
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 9px;
  color: var(--t1);
}
.fsucc p {
  color: #9baec8;
  font-size: 0.87rem;
  margin-bottom: 22px;
}
a.btn.bw {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: #22c55e;
    padding: 13px 26px;
    border-radius: 100px;
    font-size: 0.88rem;
    line-height: 1;
    transition: all 0.22s;
}
a.btn.bw:hover {
    background: rgba(37, 211, 102, 0.14);
    transform: translateY(-2px);
}
/*CSS FOR PORTFOLIO*/
.pf-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pf-card.hidden {
  display: none;
}
.pf-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pf-card__img svg { opacity: 0.35; }
.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,10,30,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
}
.pf-card__overlay a{
  font-size: 0.82rem;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 2px;
  text-transform: uppercase;
  line-height: 1;
}
.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(124,58,237,0.09);
  border-color: var(--c-purple-light);
}
.pf-card:hover .pf-card__overlay { opacity: 1; }
/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .navbar__links,
  .navbar__cta { display: none; }
  .hamburger { display: flex; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .container { padding: 0 16px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
