/* ReshApp - Premium Styles with Smooth Animations */

:root {
    /* Brand colors - extracted from logo */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #60a5fa;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;

    /* Shadows for depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Animation timings */
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 350ms;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography with enhanced hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Smooth animations for elements entering viewport */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-smooth) forwards;
}

/* Navigation with smooth backdrop blur */
nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base) var(--ease-smooth);
    animation: slideInLeft 0.6s var(--ease-smooth);
}

nav:hover {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base) var(--ease-smooth);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-base) var(--ease-smooth);
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width var(--transition-base) var(--ease-smooth);
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform var(--transition-fast) var(--ease-smooth);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 0;
        box-shadow: var(--shadow-lg);
        animation: fadeIn var(--transition-base) var(--ease-smooth);
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections with staggered animations */
section {
    padding: 6rem 0;
    position: relative;
    animation: fadeIn 0.8s var(--ease-smooth);
}

section:nth-child(even) {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-gray) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    animation: fadeInUp 0.6s var(--ease-smooth);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
    animation: fadeInUp 0.7s var(--ease-smooth);
}

/* Hero Section with gradient, background image and animations */
section.hero {
    padding: 8rem 0;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 249, 255, 0.70) 50%, rgba(224, 242, 254, 0.65) 100%),
        url('../assets/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

section.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(5deg);
    }
}

.hero-logo {
    height: 180px;
    margin-bottom: 2rem;
    animation: scaleIn 0.8s var(--ease-bounce);
    filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.15));
    transition: transform var(--transition-slow) var(--ease-smooth);
    position: relative;
    z-index: 2;
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.2s both;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.4s both;
    position: relative;
    z-index: 2;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-base) var(--ease-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.6s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow) var(--ease-smooth),
        height var(--transition-slow) var(--ease-smooth);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Premium Cards with smooth hover effects */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all var(--transition-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s var(--ease-smooth) both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition-base) var(--ease-smooth);
    transform-origin: left;
}

.card:hover::before {
    transform: scaleX(1);
}

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

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-base) var(--ease-smooth);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.card-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color var(--transition-base) var(--ease-smooth);
}

.card:hover .card-title {
    color: var(--primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Footer with smooth reveal */
footer {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    animation: fadeIn 0.8s var(--ease-smooth);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast) var(--ease-smooth);
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.bg-gray {
    background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg-light) 100%);
}

/* Testimonials with premium styling */
.testimonial-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-base) var(--ease-smooth);
    box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Accreditation Badges with professional styling */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* New Accreditation Grid for image-based layout */
.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.accreditation-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all var(--transition-base) var(--ease-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.accreditation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition-base) var(--ease-smooth);
    transform-origin: left;
}

.accreditation-card:hover::before {
    transform: scaleX(1);
}

.accreditation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.accreditation-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.accreditation-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-base) var(--ease-smooth);
}

.accreditation-card:hover .accreditation-logo img {
    transform: scale(1.05);
}

.accreditation-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid var(--border);
}

.accreditation-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accreditation-id {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accreditation-id strong {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.badge-card {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow) var(--ease-smooth);
}

.badge-card:hover::before {
    width: 300px;
    height: 300px;
}

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

.badge-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.badge-id {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Contact Info Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-light) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all var(--transition-base) var(--ease-smooth);
    border: 1px solid var(--border);
}

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

.contact-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-decoration: none;
    display: block;
    transition: all var(--transition-fast) var(--ease-smooth);
}

.contact-card a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Smooth page load animation */
@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s var(--ease-smooth);
}

/* Performance optimizations */
.card,
.btn,
.nav-logo,
.card-icon {
    will-change: transform;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}