/* Custom Bootstrap Styles for ARET Website */

/* Global Smooth Transitions */
* {
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   scroll-behavior: smooth;
}

/* Ensure smooth scrolling works on all elements */
.smooth-scroll {
   scroll-behavior: smooth;
}

/* Global Variables */
:root {
   --main-color: #8e44ad;
   --red: #e74c3c;
   --orange: #f39c12;
   --light-color: #888;
   --light-bg: #eee;
   --black: #2c3e50;
   --white: #fff;
   --border: .1rem solid rgba(0,0,0,.2);
   --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Custom Font Import */

@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&display=swap');


/* Body Styles */
body {
   font-family: 'Commissioner', sans-serif;
   background-color: var(--light-bg);
   color: var(--black);
   line-height: 1.6;
}

/* Custom Heading Styles */
.heading {
   font-size: 2.5rem;
   color: var(--black);
   margin-bottom: 2.5rem;
   border-bottom: var(--border);
   padding-bottom: 1.5rem;
   text-transform: capitalize;
   position: relative;
}

.heading::after {
   content: '';
   position: absolute;
   bottom: -1px;
   left: 0;
   width: 60px;
   height: 3px;
   background-color: var(--main-color);
}

/* ARET Brand Styles */
.aret-brand {
   font-size: 1.8rem;
   font-weight: 700;
   color: var(--black);
   text-decoration: none;
   transition: color 0.3s ease;
}

.aret-brand:hover {
   color: var(--main-color);
}

/* Top Bar Styles */
.top-bar {
   background-color: #0056b3;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar p {
   margin-bottom: 0;
   font-size: 0.9rem;
}

/* Header Styles */
.header {
   background-color: var(--white);
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Social Icons */
.social-icons a {
   transition: transform 0.3s ease;
}

.social-icons a:hover {
   transform: translateY(-3px);
}

/* Card Styles */
.card {
   border: none;
   border-radius: 10px;
   box-shadow: 0 5px 15px rgba(0,0,0,0.08);
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   overflow: hidden;
}

.card:hover {
   transform: translateY(-8px) scale(1.02);
   box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Course Card Specific Animations */
.course-card {
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 12px 30px rgba(142, 68, 173, 0.15);
}

.course-card .card-img-top {
   transition: all 0.4s ease;
}

.course-card:hover .card-img-top {
   transform: scale(1.05);
}

.card-img-top {
   border-radius: 10px 10px 0 0;
   height: 200px;
   object-fit: cover;
}

.card-body {
   padding: 1.5rem;
}

.card-title {
   font-size: 1.25rem;
   font-weight: 600;
   margin-bottom: 1rem;
   color: var(--black);
}

.card-text {
   color: var(--light-color);
   font-size: 0.95rem;
}

/* Button Styles */
.btn {
   border-radius: 5px;
   font-weight: 600;
   padding: 0.6rem 1.5rem;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   letter-spacing: 0.5px;
   position: relative;
   overflow: hidden;
}

.btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
   transition: left 0.5s;
}

.btn:hover::before {
   left: 100%;
}

.btn-primary {
   background-color: var(--main-color);
   border: none;
   transform: translateY(0);
}

.btn-primary:hover {
   background-color: #7d3c98;
   transform: translateY(-3px) scale(1.05);
   box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}

.btn-primary:active {
   transform: translateY(-1px) scale(1.02);
   transition-duration: 0.1s;
}

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

.btn-outline-primary:hover {
   background-color: var(--main-color);
   border-color: var(--main-color);
   color: white;
   transform: translateY(-3px) scale(1.05);
   box-shadow: 0 8px 25px rgba(142, 68, 173, 0.3);
}

/* Alert Styles */
.alert {
   border-radius: 8px;
   border: none;
}

.alert-info {
   background-color: #d1ecf1;
   color: #0c5460;
}

/* Form Styles */
.form-control {
   border-radius: 5px;
   border: 1px solid #ddd;
   padding: 0.75rem 1rem;
   font-size: 1rem;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   position: relative;
}

.form-control:focus {
   border-color: var(--main-color);
   box-shadow: 0 0 0 0.2rem rgba(142, 68, 173, 0.25);
   transform: translateY(-2px);
}

.form-control:hover {
   border-color: var(--main-color);
   transform: translateY(-1px);
}

/* Page Transition Styles */
.page-transition {
   opacity: 0;
   transform: translateY(20px);
   transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-transition.loaded {
   opacity: 1;
   transform: translateY(0);
}

/* Pulse animation for loading states */
.pulse {
   animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
   0%, 100% {
      opacity: 1;
   }
   50% {
      opacity: .5;
   }
}

/* Enhanced image loading with fade-in effect and shimmer */
img {
   transition: opacity 0.3s ease, background-image 0.3s ease;
}

img[loading="lazy"] {
   opacity: 0;
}

img[loading="lazy"].loaded,
img.loaded {
   opacity: 1;
}

/* Course card image specific styles */
.course-card .card-img-top {
   transition: all 0.4s ease;
   background-color: #f8f9fa;
   min-height: 200px;
   display: flex;
   align-items: center;
   justify-content: center;
   object-fit: cover;
   border-radius: 10px 10px 0 0;
}

.course-card:hover .card-img-top {
   transform: scale(1.05);
}

/* Enhanced loading animation with shimmer effect */
@keyframes loading {
   0% {
      background-position: 200% 0;
   }
   100% {
      background-position: -200% 0;
   }
}

/* Loading state for images */
.course-card .card-img-top[style*="opacity: 0"] {
   position: relative;
}

.course-card .card-img-top[style*="opacity: 0"]::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
   background-size: 200% 100%;
   animation: loading 1.5s infinite;
   border-radius: 10px 10px 0 0;
}

/* Image error state styling */
.course-card .card-img-top[src*="placeholder"] {
   background: linear-gradient(135deg, #6c5ce7 0%, #a777e3 100%);
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-weight: 600;
   text-align: center;
}

/* Responsive image handling */
@media (max-width: 768px) {
   .course-card .card-img-top {
      min-height: 180px;
   }
}

@media (max-width: 576px) {
   .course-card .card-img-top {
      min-height: 160px;
   }
}

/* Navigation Styles */
.navbar {
   padding: 0.75rem 0;
   background-color: var(--white) !important;
   box-shadow: 0 2px 10px rgba(0,0,0,0.08);
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-brand {
   font-weight: 700;
   font-size: 1.5rem;
   color: var(--black) !important;
   transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-brand:hover {
   color: var(--main-color) !important;
   transform: scale(1.05);
}

.navbar-brand img {
   max-height: 45px;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-brand:hover img {
   transform: scale(1.1) rotate(5deg);
}

.navbar-toggler {
   border: none;
   padding: 0.25rem 0.5rem;
   border-radius: 4px;
   transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-toggler:hover {
   background-color: rgba(142, 68, 173, 0.1);
   transform: scale(1.1);
}

.navbar-toggler:focus {
   box-shadow: none;
}

.navbar-nav {
   align-items: center;
}

.nav-link {
   font-weight: 500;
   margin: 0 0.25rem;
   padding: 0.5rem 1rem;
   border-radius: 6px;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   color: var(--black) !important;
   position: relative;
   overflow: hidden;
}

.nav-link::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(142, 68, 173, 0.1), transparent);
   transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::before {
   left: 100%;
}

.nav-link:hover {
   background-color: rgba(142, 68, 173, 0.08);
   color: var(--main-color) !important;
   transform: translateY(-2px);
}

.nav-link.active {
   color: var(--main-color) !important;
   background-color: rgba(142, 68, 173, 0.08);
   transform: scale(1.05);
}

.nav-link.active::after {
   content: '';
   position: absolute;
   bottom: -1px;
   left: 50%;
   transform: translateX(-50%);
   width: 80%;
   height: 3px;
   background-color: var(--main-color);
   border-radius: 2px;
   animation: slideInBottom 0.3s ease;
}

@keyframes slideInBottom {
   from {
      width: 0%;
   }
   to {
      width: 80%;
   }
}

.nav-link i {
   margin-right: 0.5rem;
   font-size: 1.1rem;
}

/* Social Icons */
.social-icon {
   transition: all 0.3s ease;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   background-color: rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
   transform: translateY(-3px);
   background-color: rgba(142, 68, 173, 0.1);
}

.social-icon i {
   transition: transform 0.3s ease;
}

.social-icon:hover i {
   transform: scale(1.1);
}

/* Mobile Navigation */
@media (max-width: 991px) {
   .navbar-nav {
      margin-top: 1rem;
   }
   
   .nav-link {
      margin: 0.25rem 0;
      padding: 0.75rem 1rem;
      border-radius: 6px;
   }
   
   .social-icon {
      width: 36px;
      height: 36px;
      margin: 0 0.25rem;
   }
}

/* Section Styles */
section {
   padding: 4rem 0;
}

.reviews {
   background-color: var(--light-bg);
}

.courses {
   background-color: var(--white);
}

/* Testimonial Styles */
.student img {
   width: 80px;
   height: 80px;
   border-radius: 50%;
   object-fit: cover;
   margin-right: 1rem;
}

.stars {
   color: var(--orange);
   margin-top: 0.5rem;
}

/* Price Badge Styles */
.badge {
   font-size: 1rem;
   padding: 0.5rem 1rem;
   border-radius: 20px;
}

/* Footer Styles */
.footer {
   background-color: var(--black);
   color: var(--white);
   padding: 2rem 0;
   margin-top: 3rem;
}

.footer p {
   margin-bottom: 0;
   font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
   .heading {
      font-size: 2rem;
   }
   
   .card-img-top {
      height: 150px;
   }
   
   .navbar-brand span {
      display: none;
   }
   
   .navbar-brand::after {
      content: 'ARET';
   }
}

/* Utility Classes */
.text-gradient {
   background: var(--primary-gradient);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.shadow-hover {
   transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
   box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Animation Classes */
.fade-in {
   animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

/* Slide in animations */
.slide-in-left {
   animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideInLeft {
   from {
      opacity: 0;
      transform: translateX(-50px);
   }
   to {
      opacity: 1;
      transform: translateX(0);
   }
}

.slide-in-right {
   animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideInRight {
   from {
      opacity: 0;
      transform: translateX(50px);
   }
   to {
      opacity: 1;
      transform: translateX(0);
   }
}

/* Scale animations */
.scale-in {
   animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes scaleIn {
   from {
      opacity: 0;
      transform: scale(0.8);
   }
   to {
      opacity: 1;
      transform: scale(1);
   }
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Bounce effect for interactive elements */
.bounce-on-hover {
   transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-on-hover:hover {
   transform: scale(1.1);
}

/* Loading state animations */
.loading {
   opacity: 0.6;
   pointer-events: none;
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .card, .nav-link {
   transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading Spinner */
.spinner-border {
   width: 1.5rem;
   height: 1.5rem;
   border-width: 0.2em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
   width: 10px;
}

::-webkit-scrollbar-track {
   background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
   background: var(--main-color);
   border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
   background: #7d3c98;
}

/* Print Styles */
@media print {
   .header, .footer, .top-bar, .btn {
      display: none;
   }
   
   body {
      font-size: 12pt;
      line-height: 1.4;
   }
   
   .card {
      border: 1px solid #ddd;
      box-shadow: none;
   }
}

/* Accessibility Improvements */
.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;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
   outline: 2px solid var(--main-color);
   outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
   position: absolute;
   top: -40px;
   left: 0;
   background: var(--black);
   color: var(--white);
   padding: 8px;
   z-index: 100;
}

.skip-link:focus {
   top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
   .card {
      border: 2px solid var(--black);
   }
   
   .btn {
      border: 2px solid currentColor;
   }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
   * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
   }
   
   html {
      scroll-behavior: auto !important;
   }
}

/* Enhance scroll behavior for all browsers */
@supports (scroll-behavior: smooth) {
   html, body {
      scroll-behavior: smooth;
   }
}

/* Fallback for browsers without scroll-behavior support */
@supports not (scroll-behavior: smooth) {
   html {
      scroll-behavior: auto;
   }
}

/* Back to Top Button */
.back-to-top {
   position: fixed;
   bottom: 20px;
   right: 20px;
   width: 50px;
   height: 50px;
   background: var(--main-color);
   color: var(--white);
   border: none;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.2rem;
   cursor: pointer;
   opacity: 0;
   visibility: hidden;
   transform: translateY(20px) scale(0.8);
   transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
   z-index: 1000;
   box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.back-to-top.show {
   opacity: 1;
   visibility: visible;
   transform: translateY(0) scale(1);
   animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
   0% {
      transform: translateY(20px) scale(0.3);
      opacity: 0;
   }
   50% {
      transform: translateY(-5px) scale(1.1);
   }
   100% {
      transform: translateY(0) scale(1);
      opacity: 1;
   }
}

.back-to-top:hover {
   background: #7d3c98;
   transform: translateY(-5px) scale(1.1);
   box-shadow: 0 8px 25px rgba(142, 68, 173, 0.5);
}

.back-to-top:active {
   transform: translateY(-2px) scale(0.95);
   transition-duration: 0.1s;
}

.back-to-top i {
   transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.back-to-top:hover i {
   transform: translateY(-2px);
}
