/* 
   Syntro Tech Design System 
   Premium, Modern, Clean UI 
*/

:root {
  /* Color Palette */
  --primary: #1e3a8a;          /* Deep Tech Blue */
  --primary-light: #3b82f6;    /* Bright Blue */
  --accent: #ff6b35;           /* Vibrant Orange */
  --accent-hover: #e85a28;     
  --text-main: #0f172a;        /* Slate 900 */
  --text-muted: #64748b;       /* Slate 500 */
  
  /* Backgrounds */
  --bg-main: #ffffff;
  --bg-off: #f8fafc;           /* Slate 50 */
  --bg-dark: #0f172a;          /* For Dark sections */
  
  /* Gradients */
  --hero-gradient: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  --blue-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 10px 30px -5px rgba(59, 130, 246, 0.3);
  
  /* Animation */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.section {
  padding: 6rem 0;
}

.section-light { background: var(--bg-main); }
.section-off { background: var(--bg-off); }

.tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

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

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

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: var(--blue-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Typography Enhancements */
.gradient-text {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--accent);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue-gradient);
  color: white;
  border-radius: 10px;
}

.logo-text .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-main);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--glass-border);
}

.mobile-menu.active {
  display: flex;
  gap: 1rem;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-menu-btn { display: block; }
}

/* Page Transitions */
.page-enter {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animations & Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.3, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

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

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: white;
}

.footer-desc {
  color: #94a3b8;
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Specific Section Styles (Home, Learning, Services) */
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(rgba(59, 130, 246, 0.1) 2px, transparent 2px);
  background-size: 30px 30px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.typing-container {
  height: 60px;
  margin-bottom: 1.5rem;
}

.typing-text {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  border-right: 3px solid var(--accent);
  padding-right: 5px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-graphic {
  position: relative;
}

.graphic-circle {
  width: 400px;
  height: 400px;
  background: var(--blue-gradient);
  border-radius: 50%;
  opacity: 0.1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--glass-border);
  transition: transform var(--transition);
  cursor: pointer;
}

.hero-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.hero-card:nth-child(2) {
  animation-delay: -3s;
  margin-left: 3rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.icon-blue { background: var(--primary-light); }
.icon-orange { background: var(--accent); }

.card-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.card-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 3rem; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-cards { align-items: center; margin-top: 3rem; }
  .hero-card:nth-child(2) { margin-left: 0; }
}
@media (max-width: 576px) {
  .hero-content h1 { font-size: 2.5rem; }
  .typing-text { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  gap: 0.5rem;
}

.feature-link:hover {
  gap: 0.75rem;
}

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* Split Section (Image + Text) */
.split-image {
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.split-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Courses Grid */
.course-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.course-img {
  height: 200px;
  background: #e2e8f0;
  position: relative;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

/* Certificate Verifier */
.verifier-box {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.verifier-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.verifier-input {
  flex-grow: 1;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.verifier-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.verifier-result {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.verifier-result.valid {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.verifier-result.invalid {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 576px) {
  .verifier-input-group { flex-direction: column; }
  .verifier-box { padding: 1.5rem; }
}

/* Page Header Mini Hero */
.page-header {
  padding: 8rem 0 4rem 0;
  background: var(--blue-gradient);
  color: white;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
