/* 
=========================================================
  AH - Premium Corporate Website Foundation
  Global Design System
========================================================= 
*/

/* --- Google Fonts (Outfit & Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors - Premium Emerald & Slate */
  --color-primary: #064E3B;      /* Emerald 900 (Deep Forest) */
  --color-secondary: #059669;    /* Emerald 600 (Vibrant Green) */
  --color-accent: #34D399;       /* Emerald 400 (Light Green) */
  --color-surface-tint: #ECFDF5; /* Emerald 50 */
  
  --color-bg-main: #FFFFFF;      /* Pristine White */
  --color-bg-section: #F8FAFC;   /* Slate 50 */
  --color-bg-card: #FFFFFF;
  
  --color-text-dark: #0F172A;    /* Slate 900 */
  --color-text-muted: #64748B;   /* Slate 500 */
  --color-text-light: #F8FAFC;   /* Slate 50 */
  
  --color-border: #E2E8F0;       /* Slate 200 */
  
  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-primary: 'Inter', sans-serif;
  
  /* Type Scale - Fluid */
  --text-h1: clamp(2.5rem, 6vw, 5rem);
  --text-h2: clamp(2rem, 5vw, 3.5rem);
  --text-h3: clamp(1.5rem, 3vw, 2.5rem);
  --text-h4: clamp(1.25rem, 2vw, 1.75rem);
  --text-body: clamp(1rem, 1.2vw, 1.125rem);
  --text-small: 0.875rem;
  --text-caption: 0.75rem;
  
  /* Spacing */
  --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
  --spacing-sm: clamp(1rem, 2vw, 1.5rem);
  --spacing-md: clamp(1.5rem, 3vw, 2.5rem);
  --spacing-lg: clamp(3rem, 5vw, 5rem);
  --spacing-xl: clamp(5rem, 8vw, 8rem);
  --spacing-section: clamp(60px, 8vw, 120px);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Shadows - Premium Diffused */
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-hover: 0 30px 40px -10px rgba(6, 78, 59, 0.15), 0 20px 20px -10px rgba(6, 78, 59, 0.1);
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-Index Layers */
  --z-base: 1;
  --z-nav: 1000;
  --z-dropdown: 1050;
  --z-modal: 1100;
  --z-toast: 1200;
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-h1); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-small { font-size: var(--text-small); }
.text-caption { font-size: var(--text-caption); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

/* --- Layout System --- */
.container-custom {
  max-width: 1440px; /* Increased max-width for modern wide screens */
  width: 100%;
  padding: 0 var(--spacing-md);
  margin: auto;
}

.section-padding {
  padding: var(--spacing-section) 0;
}

.bg-light-section {
  background-color: var(--color-bg-section);
}

/* --- Reusable Components --- */

/* Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-body);
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-main);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-bg-main);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text-dark);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-main);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-surface-tint);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-main);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  background-color: var(--color-bg-section);
  color: var(--color-text-dark);
  transform: translateY(-2px);
}

/* Cards */
.card-premium {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.card-premium:hover::before {
  transform: scaleX(1);
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  padding: var(--spacing-md);
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 1);
}



/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: var(--text-small);
  margin-bottom: var(--spacing-xs);
}

/* Forms */
.form-control-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--color-bg-main);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.1);
}

.form-control-custom.is-invalid {
  border-color: var(--color-danger);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23D32F2F'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23D32F2F' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control-custom.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: var(--text-caption);
  color: var(--color-danger);
}

.form-control-custom.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Button Loading State */
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.btn-primary.btn-loading::after,
.btn-secondary.btn-loading::after {
  border-top-color: #fff;
}

/* Badges */
.badge-custom {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 600;
  background-color: rgba(67, 160, 71, 0.1);
  color: var(--color-primary);
}

/* --- Navigation --- */
.navbar-premium {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.navbar-premium.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%;
  transition: width 0.1s ease-out;
}

.nav-link {
  color: var(--color-text-dark);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* --- Footer --- */
.footer-premium {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-section) 0 2rem;
}

.footer-premium h4 {
  color: var(--color-bg-main);
  margin-bottom: var(--spacing-sm);
}

.footer-premium a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-premium a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Floating WhatsApp Button */
.btn-whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
  z-index: var(--z-toast);
  transition: transform var(--transition-normal);
}

.btn-whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Back to Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  z-index: var(--z-toast);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* =========================================
   GLOBAL POLISH (Added in Final Phase)
   ========================================= */

/* --- Global Page Loader --- */
#global-loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    height: 60px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(27, 94, 32, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Floating Action Buttons (FAB) Extension --- */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: var(--z-toast);
}

/* Note: .btn-whatsapp-float and .btn-back-to-top are moved here logically but remain absolute or flexed. 
   We will adjust the HTML to wrap them in .fab-container */

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    color: white;
}

.fab-whatsapp { background: #25D366; }
.fab-phone { background: var(--color-primary); }
.fab-top { background: var(--color-dark); opacity: 0; visibility: hidden; }

.fab-top.visible { opacity: 1; visibility: visible; }

/* Tooltip on Hover */
.fab-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}
.fab-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

/* --- Toast Notification System --- */
#toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-toast {
    background: white;
    color: var(--color-text-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid var(--color-primary);
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon { font-size: 1.25rem; }
.toast-success { border-color: var(--color-success); }
.toast-success .toast-icon { color: var(--color-success); }
.toast-error { border-color: var(--color-danger); }
.toast-error .toast-icon { color: var(--color-danger); }

/* --- Premium Luxury Footer --- */
.footer-luxury {
    background: linear-gradient(to top, rgba(6, 78, 59, 0.98), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1592837330206-89754988fce7?auto=format&fit=crop&q=80') center/cover no-repeat;
    color: rgba(255, 255, 255, 0.7);
    padding: clamp(60px, 8vw, 100px) 0 clamp(20px, 4vw, 40px);
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-luxury h4, .footer-luxury h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-luxury p {
    font-size: 0.95rem;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 0.75rem;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link-list a::before {
    content: '→';
    margin-right: 0px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.footer-link-list a:hover {
    color: white;
    padding-left: 5px;
}

.footer-link-list a:hover::before {
    opacity: 1;
    margin-right: 8px;
    transform: translateX(0);
}

.footer-social-circle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-circle a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: clamp(30px, 5vw, 60px);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: white;
}


/* ========================================== */
/* TETRIUM TECHNOLOGIES BRANDING              */
/* ========================================== */

.tetrium-credit {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.tetrium-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color) !important;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.tetrium-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.tetrium-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.tetrium-link:hover::after {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.tetrium-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(13, 110, 253, 0.4));
}

.tetrium-link:hover .tetrium-logo {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform: translateY(-1px);
}

.tech-partner-section {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    padding: 80px 0;
    color: #fff;
}

.tech-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(13, 110, 253, 0.1);
}

.tech-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-card:hover i {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
}

.tech-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* --- Dark Mode Variables --- */
body.dark-mode {
  --color-bg-main: #0F172A;
  --color-bg-section: #1E293B;
  --color-bg-card: #1E293B;
  --color-text-dark: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-border: #334155;
  --color-surface-tint: #064E3B;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

body.dark-mode .glass-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Base Body Application */
body {
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

section {
  background-color: var(--color-bg-main);
}
section:nth-child(even) {
  background-color: var(--color-bg-section);
}

/* Toast Notifications */
.ah-toast {
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    color: var(--color-text-dark);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-primary);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 280px;
    max-width: 350px;
}

.ah-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.ah-toast-success { border-left-color: var(--color-success); }
.ah-toast-error { border-left-color: var(--color-danger); }
.ah-toast-warning { border-left-color: var(--color-warning); }
.ah-toast-info { border-left-color: var(--color-info); }

.ah-toast .toast-icon {
    font-size: 1.25rem;
    margin-right: 12px;
}
.ah-toast-success .toast-icon { color: var(--color-success); }
.ah-toast-error .toast-icon { color: var(--color-danger); }
.ah-toast-warning .toast-icon { color: var(--color-warning); }
.ah-toast-info .toast-icon { color: var(--color-info); }

.ah-toast .toast-message {
    flex-grow: 1;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.ah-toast .toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0 0 10px;
    transition: color var(--transition-fast);
}
.ah-toast .toast-close:hover {
    color: var(--color-text-dark);
}

/* Advanced Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.fade-left {
    transform: translateX(-40px);
}
.reveal.fade-right {
    transform: translateX(40px);
}
.reveal.scale-up {
    transform: scale(0.9);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Button Ripple Effect */
.btn-custom {
    position: relative;
    overflow: hidden;
}
.btn-custom .ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: animateRipple 0.6s linear infinite;
}
@keyframes animateRipple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}
