/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: var(--gray-50);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary);
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.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 0.6s, height 0.6s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    /* Soft, glowing shadow matching the Royal Indigo */
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--gray-900);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

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

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

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
}

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

.card-image-container {
    width: 100%;
    height: 300px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-100);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* For flyers or tall images, allow 'contain' */
.card-image.flyer {
    object-fit: contain;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-sm);
}

.card-meta i {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease-in-out;
    transform: scale(1.05);
    /* Slight zoom for subtle animation */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    /* Return to normal size while fading in */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-xl);
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-script-label {
    display: block;
    font-family: 'Dancing Script', cursive;
    color: #39FF14;
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #0F0720;
    color: rgba(255, 255, 255, 0.65);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: var(--spacing-2xl);
    padding-bottom: 3rem;
}

/* Brand column */
.footer-logo {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 70px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: var(--spacing-md);
}

/* Section headings */
.footer-heading {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
}

/* Links */
.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    transition: color var(--transition-fast);
}

/* Social icons */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact info items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.footer-icon {
    color: #f5c518;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
}

.footer-admin-link {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-admin-link:hover {
    color: var(--white);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInLeft 0.3s ease-out;
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: var(--error);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-sm);
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .hero-script-label {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* New Services Layout */
.services-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.vertical-title-container {
    flex-shrink: 0;
}

.vertical-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 5.5rem;
    font-weight: 800;
    color: #b3b3b3;
    text-transform: capitalize;
    margin: 0;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.services-content {
    flex-grow: 1;
}

.services-header {
    margin-bottom: var(--spacing-lg);
}

.services-header h2 {
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}

.services-header p {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 800px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: var(--spacing-md);
    scroll-snap-type: x mandatory;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.service-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
    max-width: 100%;
    scroll-snap-align: start;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.sc-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    display: block;
}

.sc-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 20px;
}

.sc-title {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.sc-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
}

.sc-info i {
    font-size: 1rem;
    color: var(--primary);
    margin-top: 3px;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
}

.btn-reminder {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.btn-reminder:hover {
    background-color: var(--primary-dark);
}

/* Mobile Media Query for Service Cards */
@media (max-width: 768px) {
    .carousel-track {
        gap: 16px;
        padding: 0 16px;
        scroll-padding-left: 16px;
    }
    .service-card-modern {
        flex: 0 0 calc(100vw - 64px);
        min-width: calc(100vw - 64px);
        box-sizing: border-box;
        scroll-snap-align: start;
    }

    .carousel-container, .carousel-controls {
        max-width: 100%;
    }

    .sc-image {
        height: 200px;
    }

    .sc-title {
        font-size: 1.2rem;
    }

    .sc-info {
        font-size: 0.9rem;
    }
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    max-width: 960px;
}

.carousel-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--primary); /* The primary purple */
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.carousel-arrow:hover {
    background-color: var(--primary);
    color: var(--white);
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .services-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: var(--spacing-sm);
    }

    .services-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Call to Action Section */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white);
}

@media (max-width: 768px) {
    .cta-section {
        background-attachment: scroll; /* Fixed background doesn't work well on mobile */
    }
}