[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade-up"] {
  transform: translateY(60px);
}
[data-reveal="fade-down"] {
  transform: translateY(-60px);
}
[data-reveal="fade-left"] {
  transform: translateX(-60px);
}
[data-reveal="fade-right"] {
  transform: translateX(60px);
}
[data-reveal="fade-up"].revealed,
[data-reveal="fade-down"].revealed,
[data-reveal="fade-left"].revealed,
[data-reveal="fade-right"].revealed {
  transform: translate(0, 0);
}

[data-reveal="zoom-in"] {
  transform: scale(0.85);
}
[data-reveal="zoom-in"].revealed {
  transform: scale(1);
}

[data-reveal="zoom-out"] {
  transform: scale(1.15);
}
[data-reveal="zoom-out"].revealed {
  transform: scale(1);
}

[data-reveal="flip-up"] {
  transform: perspective(800px) rotateX(15deg) translateY(40px);
}
[data-reveal="flip-up"].revealed {
  transform: perspective(800px) rotateX(0) translateY(0);
}

[data-reveal="rotate-in"] {
  transform: rotate(-8deg) scale(0.9);
}
[data-reveal="rotate-in"].revealed {
  transform: rotate(0) scale(1);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }
[data-reveal-delay="600"] { transition-delay: 0.6s; }
[data-reveal-delay="700"] { transition-delay: 0.7s; }
[data-reveal-delay="800"] { transition-delay: 0.8s; }

@keyframes sc-float-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  75% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes sc-float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes sc-pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(var(--sc-accent-rgb), 0.2); }
  50% { box-shadow: 0 0 25px rgba(var(--sc-accent-rgb), 0.5), 0 0 50px rgba(var(--sc-accent-rgb), 0.2); }
}

@keyframes sc-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sc-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes sc-border-glow {
  0%, 100% { border-color: rgba(var(--sc-accent-rgb), 0.2); }
  50% { border-color: rgba(var(--sc-accent-rgb), 0.6); }
}

@keyframes sc-bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes sc-slide-in-bounce {
  0% { transform: translateY(80px); opacity: 0; }
  60% { transform: translateY(-10px); opacity: 1; }
  80% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

@keyframes sc-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sc-typewriter-cursor {
  0%, 100% { border-right-color: transparent; }
  50% { border-right-color: var(--sc-accent); }
}

@keyframes sc-particle-float {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translate(var(--tx, 50px), var(--ty, -200px)) scale(0); opacity: 0; }
}

@keyframes sc-wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes sc-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 30% 50% 40% / 60% 40% 60% 30%; }
}

@keyframes sc-ripple {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

.sc-float-anim {
  animation: sc-float-gentle 6s ease-in-out infinite;
}

.sc-float-slow-anim {
  animation: sc-float-slow 4s ease-in-out infinite;
}

.sc-pulse-glow-anim {
  animation: sc-pulse-glow 3s ease-in-out infinite;
}

.sc-gradient-anim {
  background-size: 200% 200%;
  animation: sc-gradient-shift 8s ease infinite;
}

.sc-rotate-slow-anim {
  animation: sc-rotate-slow 20s linear infinite;
}

.sc-morph-anim {
  animation: sc-morph 8s ease-in-out infinite;
}

.sc-shimmer-text {
  background: linear-gradient(90deg, var(--sc-text) 0%, var(--sc-accent) 50%, var(--sc-text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sc-shimmer 3s ease-in-out infinite;
}

.sc-hero-gradient-anim {
  background: linear-gradient(-45deg, var(--sc-primary), var(--sc-secondary), #1a3a7e, #0a2a6e);
  background-size: 400% 400%;
  animation: sc-gradient-shift 15s ease infinite;
}

.sc-card-hover-advanced {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sc-card-hover-advanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--sc-accent-rgb), 0.05), transparent);
  transition: left 0.6s ease;
  z-index: 0;
}

.sc-card-hover-advanced:hover::before {
  left: 100%;
}

.sc-card-hover-advanced:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(var(--sc-primary-rgb), 0.08);
}

.sc-icon-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-card-hover-advanced:hover .sc-icon-hover {
  transform: scale(1.15) rotate(5deg);
}

.sc-btn-advanced {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-btn-advanced::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.sc-btn-advanced:hover::after {
  width: 300px;
  height: 300px;
}

.sc-btn-advanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.sc-btn-advanced:active {
  transform: translateY(-1px);
}

.sc-hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sc-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: sc-particle-float var(--dur, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.sc-hero-badge-float {
  animation: sc-float-gentle 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.sc-hero-badge-float:hover {
  transform: scale(1.05);
}

.sc-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .sc-glass {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.06);
}

.sc-stat-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.sc-tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.sc-tilt-inner {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.sc-tilt-card:hover .sc-tilt-shine {
  opacity: 1;
}

.sc-tilt-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.sc-hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.sc-hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: var(--sc-accent);
  animation: sc-morph 15s ease-in-out infinite;
}

.sc-hero-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -80px;
  background: #fff;
  animation: sc-morph 12s ease-in-out infinite reverse;
}

.sc-hero-shape-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 60%;
  background: var(--sc-accent);
  animation: sc-float-slow 8s ease-in-out infinite;
}

.sc-section-divider {
  position: relative;
  overflow: hidden;
}

.sc-section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sc-primary), var(--sc-accent), var(--sc-primary), transparent);
  animation: sc-shimmer 4s linear infinite;
  background-size: 200% 100%;
}

.sc-text-gradient {
  background: linear-gradient(135deg, var(--sc-primary), var(--sc-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sc-underline-anim {
  position: relative;
  display: inline-block;
}

.sc-underline-anim::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--sc-gradient-accent);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-underline-anim.revealed::after {
  width: 60px;
}

.sc-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--sc-gradient-accent);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0;
}

.sc-cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--sc-accent-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .sc-cursor-glow {
  opacity: 1;
}

.sc-stagger-container .sc-stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

.sc-stagger-container.revealed .sc-stagger-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sc-stagger-container.revealed .sc-stagger-item:nth-child(1) { transition-delay: 0.05s; }
.sc-stagger-container.revealed .sc-stagger-item:nth-child(2) { transition-delay: 0.1s; }
.sc-stagger-container.revealed .sc-stagger-item:nth-child(3) { transition-delay: 0.15s; }
.sc-stagger-container.revealed .sc-stagger-item:nth-child(4) { transition-delay: 0.2s; }
.sc-stagger-container.revealed .sc-stagger-item:nth-child(5) { transition-delay: 0.25s; }
.sc-stagger-container.revealed .sc-stagger-item:nth-child(6) { transition-delay: 0.3s; }
.sc-stagger-container.revealed .sc-stagger-item:nth-child(7) { transition-delay: 0.35s; }
.sc-stagger-container.revealed .sc-stagger-item:nth-child(8) { transition-delay: 0.4s; }

.sc-magnetic-btn {
  transition: transform 0.2s ease-out;
}

@media (max-width: 575.98px) {
  .sc-hero h1, .sc-hero .display-3 { font-size: 2rem !important; }
  .sc-hero h4 { font-size: 1rem !important; }
  .sc-hero .lead { font-size: 0.9rem !important; }
  .sc-hero { min-height: 75vh !important; }
  .sc-hero .btn-lg { padding: 0.6rem 1.5rem !important; font-size: 0.9rem !important; }
  .sc-hero .d-flex.gap-3 { gap: 0.5rem !important; }
  .sc-hero .fs-3 { font-size: 1.2rem !important; }
  .sc-hero .border-top .text-center { padding: 0.25rem 0.5rem !important; }
  .gh-hero h1 { font-size: 2rem !important; }
  .gh-hero h4 { font-size: 1rem !important; }
  .gh-hero .lead { font-size: 0.9rem !important; }
  .gh-hero .d-flex.gap-3 { gap: 0.5rem !important; }
  section.py-5 { padding: 2rem 0 !important; }
  .display-5 { font-size: 1.8rem !important; }
  h2.fw-bold { font-size: 1.5rem !important; }
  .sc-card p, .text-muted.small { font-size: 0.8rem !important; }
  .sc-faculty-avatar { width: 70px; height: 70px; font-size: 1.5rem; }
  .sc-approach-step .rounded-circle { width: 60px !important; height: 60px !important; }
  .sc-footer .row > div { text-align: center; }
  .sc-footer h5::after { left: 50%; transform: translateX(-50%); }
  .sc-footer .footer-link-list { text-align: center; }
  .sc-footer-bottom .container { flex-direction: column; text-align: center; gap: 0.5rem; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .sc-hero h1, .sc-hero .display-3 { font-size: 2.5rem !important; }
  .sc-hero { min-height: 80vh !important; }
  section.py-5 { padding: 2.5rem 0 !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .sc-hero .display-3 { font-size: 3rem !important; }
  .sc-navbar .nav-link { font-size: 0.85rem; padding: 0.4rem 0.6rem !important; }
}

@media (max-width: 991.98px) {
  .sc-hero .col-lg-5 { display: none !important; }
  .sc-hero .col-lg-7 { text-align: center; }
  .sc-hero .d-flex.flex-wrap.gap-3 { justify-content: center; }
  .sc-hero .d-flex.flex-wrap.gap-4 { justify-content: center; }
  .sc-hero ul { text-align: left; display: inline-block; }
  .gh-hero .col-lg-7 { text-align: center; }
  .gh-hero .d-flex.flex-wrap.gap-3 { justify-content: center; }
  .gh-hero ul { text-align: left; display: inline-block; }
}

@media (hover: none) {
  .sc-card-hover-advanced:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  .sc-card-hover-advanced::before {
    display: none;
  }
  .sc-tilt-shine {
    display: none;
  }
  .sc-cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .sc-float-anim,
  .sc-float-slow-anim,
  .sc-pulse-glow-anim,
  .sc-gradient-anim,
  .sc-rotate-slow-anim,
  .sc-morph-anim,
  .sc-hero-gradient-anim {
    animation: none !important;
  }
  .sc-particle {
    display: none !important;
  }
}
