/* Main Styles - Cool4Scool */

/* Gallery image positioning - high specificity without conflicts */
body #gallery .cursor-pointer img,
body #gallery .relative img,
body #gallery div[onclick] img,
body section[id="gallery"] img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    display: block;
}

body #gallery .cursor-pointer,
body #gallery .relative,
body #gallery div[onclick] {
    position: relative;
    overflow: hidden;
}

body #gallery .absolute {
    z-index: 2;
}

/* Critical CSS for immediate hero and header display */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.hero-section {
    position: relative;
    min-height: var(--mobile-vh, 100vh);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/images/hero/c4s_hero_1920x1080.webp');
    background-color: transparent;
}

.parallax-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.parallax-back {
    background-image: url('../assets/images/hero/c4s_hero_1920x1080.webp');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    will-change: transform;
    opacity: 1;
    visibility: visible;
}

/* Critical color class for hero title */
.text-c4s-orange {
    color: #FF6B35;
}

/* Cookie Consent Banner */
.c4s-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 48px);
    opacity: 0;
    visibility: hidden;
    width: calc(100% - 32px);
    z-index: 100000;
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28),
                opacity 0.35s ease,
                visibility 0.35s ease;
}

.c4s-cookie-banner.cookie-banner-show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.c4s-cookie-banner.cookie-banner-hide {
    transform: translate(-50%, 48px);
    opacity: 0;
    visibility: hidden;
}

.c4s-cookie-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 28px 68px -30px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    overflow: hidden;
}

.c4s-cookie-card::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 28px;
    right: 28px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00999c 0%, #2db095 45%, #ff6600 75%, #f6c965 100%);
    opacity: 0.85;
}

.c4s-cookie-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
}

.c4s-cookie-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff7a45 0%, #ff6600 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 18px 30px -18px rgba(255, 102, 0, 0.55);
    flex-shrink: 0;
}

.c4s-cookie-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}

.c4s-cookie-text {
    margin: 0 0 1.6rem 0;
    font-size: 0.96rem;
    line-height: 1.65;
    color: #4b5563;
}

.c4s-cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.c4s-cookie-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.78rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.c4s-cookie-btn i {
    font-size: 0.95rem;
}

.c4s-cookie-btn-secondary {
    background: rgba(243, 244, 246, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
    color: #475569;
}

.c4s-cookie-btn-secondary:hover,
.c4s-cookie-btn-secondary:focus {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: 0 16px 30px -18px rgba(71, 85, 105, 0.35);
    color: #1f2937;
}

.c4s-cookie-btn-primary {
    background: linear-gradient(135deg, #00999c 0%, #2db095 100%);
    color: #ffffff;
    box-shadow: 0 18px 36px -20px rgba(45, 176, 149, 0.55);
}

.c4s-cookie-btn-primary:hover,
.c4s-cookie-btn-primary:focus {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 22px 36px -20px rgba(45, 176, 149, 0.65);
}

.c4s-cookie-btn-accent {
    background: linear-gradient(135deg, #ff6600 0%, #f6c965 100%);
    color: #ffffff;
    box-shadow: 0 18px 36px -18px rgba(255, 102, 0, 0.55);
}

.c4s-cookie-btn-accent:hover,
.c4s-cookie-btn-accent:focus {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 22px 36px -18px rgba(255, 102, 0, 0.65);
}

.c4s-cookie-link {
    margin-top: 1.2rem;
    background: none;
    border: none;
    color: #00999c;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.c4s-cookie-link:hover,
.c4s-cookie-link:focus {
    color: #2db095;
    transform: translateY(-1px);
    text-decoration: none;
}

@media (min-width: 640px) {
    .c4s-cookie-banner {
        width: 80%;
        max-width: 1100px;
    }

    .c4s-cookie-card {
        padding: 2rem;
    }

    .c4s-cookie-card::before {
        left: 36px;
        right: 36px;
    }

    .c4s-cookie-buttons {
        flex-direction: row;
        gap: 0.85rem;
    }

    .c4s-cookie-btn {
        flex: 1 1 auto;
    }

    .c4s-cookie-link {
        margin-top: 1.4rem;
    }
}

.cookie-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin: 1.5rem 0;
}

.cookie-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.8rem;
    border-radius: 0.5rem;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.cookie-modal-btn i {
    font-size: 1rem;
}

.cookie-modal-btn-primary {
    background: linear-gradient(225deg, #ff6600 0%, #f6c965 100%);
    color: #ffffff;
    box-shadow: 0 16px 32px -18px rgba(255, 102, 0, 0.45);
}

.cookie-modal-btn-primary:hover,
.cookie-modal-btn-primary:focus {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 36px -18px rgba(255, 102, 0, 0.55);
}

.cookie-modal-btn-accent {
    background: linear-gradient(135deg, #00999c 0%, #2db095 100%);
    color: #ffffff;
    box-shadow: 0 16px 32px -18px rgba(45, 176, 149, 0.55);
}

.cookie-modal-btn-accent:hover,
.cookie-modal-btn-accent:focus {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 36px -18px rgba(45, 176, 149, 0.65);
}

.cookie-modal-btn-secondary {
    background: #f3f4f6;
    border-color: rgba(107, 114, 128, 0.4);
    color: #3f3f46;
}

.cookie-modal-btn-secondary:hover,
.cookie-modal-btn-secondary:focus {
    transform: translateY(-2px);
    border-color: rgba(107, 114, 128, 0.7);
    box-shadow: 0 16px 30px -18px rgba(71, 85, 105, 0.3);
}

@media (min-width: 768px) {
    .cookie-modal-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
    }

    .cookie-modal-btn {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        padding: 0.75rem 1.6rem;
    }
}

@media (max-width: 480px) {
    .c4s-cookie-banner {
        bottom: 20px;
        width: calc(100% - 24px);
    }

    .c4s-cookie-card {
        padding: 1.35rem;
        border-radius: 20px;
    }

    .c4s-cookie-card::before {
        left: 24px;
        right: 24px;
    }

    .c4s-cookie-header {
        gap: 0.75rem;
    }

    .c4s-cookie-icon {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
        border-radius: 15px;
    }

    .c4s-cookie-title {
        font-size: 1.15rem;
    }

    .c4s-cookie-text {
        font-size: 0.92rem;
        margin-bottom: 1.35rem;
    }

    .c4s-cookie-btn {
        font-size: 0.92rem;
        padding: 0.72rem 1.45rem;
    }

    .c4s-cookie-link {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

.toast-animation {
    animation: toastIn 0.3s ease-out;
}

.toast-fade-out {
    animation: toastOut 0.3s ease-in;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Modal Overlay and Animation Styles */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.modal-overlay.show {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow: hidden;
    margin: 2rem;
    max-width: calc(100vw - 4rem);
}

.modal-content.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content.hide {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Content Styling */
.modal-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--header-from), var(--header-to));
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

@media (min-width: 640px) {
    .modal-body {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .modal-body {
        padding: 2rem;
    }
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Enhanced Modal Styles */
.modal-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.modal-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.modal-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.modal-text {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.modal-text + .modal-text {
    margin-top: 1rem;
}

.modal-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.modal-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.modal-table th {
    background: linear-gradient(135deg, #2db095, #1a9275);
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.modal-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 0.9rem;
}

.modal-table tr:last-child td {
    border-bottom: none;
}

.modal-table tr:hover {
    background: #f8fafc;
}

.modal-bullet-list {
    margin: 1rem 0;
}

.modal-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal-bullet {
    width: 6px;
    height: 6px;
    background: #2db095;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.modal-highlight-box {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.modal-highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.modal-highlight-box h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.modal-highlight-box p {
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.modal-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.modal-right-card {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 10px;
    border-left: 4px solid var(--card-color, #2db095);
}

.modal-right-card h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
}

.modal-right-card p {
    margin: 0;
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
}

.modal-contact-section {
    background: linear-gradient(135deg, var(--contact-from), var(--contact-to));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.modal-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.modal-contact-section h3 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.modal-contact-section p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.modal-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.modal-contact-info p {
    margin: 0;
}

.modal-contact-info a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.modal-contact-info a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Modal Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .modal-section-title {
        font-size: 1.1rem;
    }

    .modal-table th,
    .modal-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .modal-rights-grid {
        grid-template-columns: 1fr;
    }

    .modal-contact-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        max-height: 95vh;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .modal-contact-section {
        padding: 1.25rem;
    }
}

/* Modal Animation Keyframes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
}

@keyframes overlayFadeIn {
    from { background-color: rgba(0, 0, 0, 0); }
    to { background-color: rgba(0, 0, 0, 0.75); }
}

@keyframes overlayFadeOut {
    from { background-color: rgba(0, 0, 0, 0.75); }
    to { background-color: rgba(0, 0, 0, 0); }
}

.modal-entering .modal-content {
    animation: modalFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-entering {
    animation: overlayFadeIn 0.4s ease-out forwards;
}

.modal-leaving .modal-content {
    animation: modalFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-leaving {
    animation: overlayFadeOut 0.3s ease-in forwards;
}

/* Hero Background Images - Responsive */
@media (max-width: 767px) and (orientation: portrait) {
    .hero-section {
        background-image: url('../assets/images/hero/c4s_hero_414x816_portrait.webp');
    }
    .parallax-back {
        background-image: url('../assets/images/hero/c4s_hero_414x816_portrait.webp');
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        background-image: url('../assets/images/hero/c4s_hero_816x414.webp');
    }
    .parallax-back {
        background-image: url('../assets/images/hero/c4s_hero_816x414.webp');
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .hero-section {
        background-image: url('../assets/images/hero/c4s_hero_1366x768.webp');
    }
    .parallax-back {
        background-image: url('../assets/images/hero/c4s_hero_1366x768.webp');
    }
}

@media (min-width: 1280px) and (max-width: 1599px) {
    .hero-section {
        background-image: url('../assets/images/hero/c4s_hero_1366x768.webp');
    }
    .parallax-back {
        background-image: url('../assets/images/hero/c4s_hero_1366x768.webp');
    }
}

@media (min-width: 1600px) and (max-width: 2199px) {
    .hero-section {
        background-image: url('../assets/images/hero/c4s_hero_1920x1080.webp');
    }
    .parallax-back {
        background-image: url('../assets/images/hero/c4s_hero_1920x1080.webp');
    }
}

@media (min-width: 2200px) {
    .hero-section {
        background-image: url('../assets/images/hero/c4s_hero_2560x1440.webp');
    }
    .parallax-back {
        background-image: url('../assets/images/hero/c4s_hero_2560x1440.webp');
    }
}

/* Modal Close Button Styles */
.close-modal-btn {
    background-color: #ff6b35;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.close-modal-btn:hover {
    background-color: #e55a2f;
}

@media (min-width: 640px) {
    .close-modal-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .close-modal-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .close-modal-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        max-width: 44px;
        max-height: 44px;
        font-size: 16px;
    }
}

/* Customize modal specific close button - match header title color */
#close-customize-modal.close-modal-btn {
    background-color: #1f2937;
    color: white;
}

#close-customize-modal.close-modal-btn:hover {
    background-color: #374151;
}

/* Settings modal specific close button - match header title color */
#close-settings-modal.close-modal-btn {
    background-color: #1f2937;
    color: white;
}

#close-settings-modal.close-modal-btn:hover {
    background-color: #374151;
}

/* Cookie Banner Button Layout Fix - REMOVED */

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

/* Small Toggle for Mobile */
.cookie-toggle-sm {
    width: 48px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 30px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Small Toggle Slider */
.cookie-toggle-sm .cookie-toggle-slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #2db095 0%, #00999c 100%);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(30px);
}

/* Small Toggle Checked Position */
.cookie-toggle-sm input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input:disabled:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Responsive: Use larger toggle on desktop */
@media (min-width: 640px) {
    .cookie-toggle-sm {
        width: 60px;
        height: 30px;
    }

    .cookie-toggle-sm .cookie-toggle-slider:before {
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
    }

    .cookie-toggle-sm input:checked + .cookie-toggle-slider:before {
        transform: translateX(30px);
    }
}

/* CSS Custom Properties (Variables) */
:root {
    --c4s-yellow: #f6c965;
    --c4s-teal: #00999c;
    --c4s-music-teal: #009689;
    --c4s-english-red: #e7000b;
    --c4s-psychology-blue: #165dfc;
    --c4s-orange: #ff6600;
    --c4s-gray: #999999;
    --c4s-pink: #ff99cc;
    --c4s-green: #2db095;
    --c4s-purple: #9333ea;
    --c4s-dark-teal: #009932;
    --c4s-dark: #1f2937;
}

/* Base Styles */
body {
    font-family: "Poppins", sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Header Styles */
#header {
    min-height: 80px;
}

#header > div:first-child {
    min-height: 80px;
    display: flex;
    align-items: center;
}

section[id] {
    scroll-margin-top: 0px;
}

/* Logo Animation */
#logo-link {
    cursor: pointer;
}

#logo-link img {
    filter: none;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-2px) rotate(-1deg);
    }
    20% {
        transform: translateX(2px) rotate(1deg);
    }
    30% {
        transform: translateX(-2px) rotate(-1deg);
    }
    40% {
        transform: translateX(2px) rotate(1deg);
    }
    50% {
        transform: translateX(-1px) rotate(-0.5deg);
    }
    60% {
        transform: translateX(1px) rotate(0.5deg);
    }
    70% {
        transform: translateX(-1px) rotate(-0.5deg);
    }
    80% {
        transform: translateX(1px) rotate(0.5deg);
    }
    90% {
        transform: translateX(0) rotate(0deg);
    }
}


/* Image Styles */
img.hover\:scale-105 {
    cursor: pointer;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}


.scroll-to-top:hover {
    background-color: #e55a2f;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Ensure scroll to top button stays fixed on all devices */
button#scrollToTop.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    transform: none;
    left: auto;
    top: auto;
    margin: 0;
    float: none;
    display: block;
}

/* Hide scroll-to-top button when any modal is open */
#galleryModal:not(.hidden) ~ #scrollToTop,
#imageViewer:not(.hidden) ~ #scrollToTop {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Hide scroll-to-top button when settings modal is open */
#settings-modal:not(.hidden) ~ #scrollToTop {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* FORCE BOTTOM RIGHT CORNER ON MOBILE AND TABLET - EMERGENCY OVERRIDE */
@media (max-width: 1024px) {
    button#scrollToTop.scroll-to-top,
    button#scrollToTop.scroll-to-top.show,
    #scrollToTop.scroll-to-top,
    #scrollToTop,
    body button#scrollToTop {
        /* VIEWPORT POSITIONING */
        position: fixed;
        right: 20px;
        left: initial;
        bottom: 20px;
        top: initial;
        z-index: 10;
        transform: none;
        translate: none;
        margin: 0;
        padding: 0;
        float: none;
        clear: none;
        display: block;
        width: 50px;
        height: 50px;
        min-width: 50px;
        max-width: 50px;
        min-height: 50px;
        max-height: 50px;
        background-color: #ff6b35;
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
        flex: none;
        grid-area: unset;
        contain: none;
        isolation: auto;
        clip: unset;
        clip-path: none;
        direction: ltr;
    }
}

/* Shadow Utilities */
.rounded-lg.shadow-md {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.border-l-4.bg-cyan-100,
.border-l-4.bg-orange-100 {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

/* Hero CTA Button */
.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--c4s-orange) 0%, #f97316 50%, #ea580c 100%);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    overflow: hidden;
}

.hero-cta-button::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.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    transform: translateY(-3px);
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:active {
    transform: translateY(-1px) scale(0.98);
}


/* Navigation Links */
.nav-link {
    position: relative;
    padding-bottom: 0.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Color Utility Classes */
.text-c4s-orange {
    color: var(--c4s-orange);
}

.text-c4s-teal {
    color: var(--c4s-teal);
}

.text-c4s-pink {
    color: var(--c4s-pink);
}

.text-c4s-green {
    color: var(--c4s-green);
}

.text-c4s-yellow {
    color: var(--c4s-yellow);
}

.text-c4s-dark {
    color: var(--c4s-dark);
}

.text-c4s-gray {
    color: var(--c4s-gray);
}

.bg-c4s-orange {
    background-color: var(--c4s-orange);
}

.bg-c4s-yellow {
    background-color: var(--c4s-yellow);
}

.bg-c4s-teal {
    background-color: var(--c4s-teal);
}

.bg-c4s-pink {
    background-color: var(--c4s-pink);
}

.bg-c4s-green {
    background-color: var(--c4s-green);
}

.bg-c4s-dark {
    background-color: var(--c4s-dark);
}

.border-c4s-orange {
    border-color: var(--c4s-orange);
}

.border-c4s-yellow {
    border-color: var(--c4s-yellow);
}

.border-c4s-teal {
    border-color: var(--c4s-teal);
}

.border-c4s-pink {
    border-color: var(--c4s-pink);
}

.border-c4s-green {
    border-color: var(--c4s-green);
}

.border-c4s-dark {
    border-color: var(--c4s-dark);
}

/* Mobile Language Toggle - Consolidated styles */
#mobile-lang-toggle {
    color: var(--c4s-green);
    position: relative;
    min-height: 36px;
    min-width: 36px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

#mobile-lang-toggle .fas.fa-globe {
    font-size: 30px;
}

/* Hero Section Typography - consolidated from inline-styles.css */
.hero-title {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}


#mobile-lang-toggle:hover {
    color: var(--c4s-teal);
    transform: scale(1.1);
}

#mobile-lang-toggle:active {
    transform: scale(0.95);
}

#mobile-lang-toggle.english {
    color: var(--c4s-orange);
}

#mobile-lang-toggle.english:hover {
    color: var(--c4s-orange);
    transform: scale(1.1);
}

#mobile-lang-toggle.english:active {
    transform: scale(0.95);
}

/* Language Ripple Effect */
.lang-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: langRipple 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.lang-ripple.green {
    background: rgba(45, 176, 149, 0.15);
    border: 1px solid rgba(45, 176, 149, 0.2);
}

.lang-ripple.orange {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.lang-ripple:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes langRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Navbar */
/* .navbar styles removed */

/* Hero section layout */
/* .hero-section styles removed */

/* Mobile Menu Button */
#mobile-menu-button {
    position: relative;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    backdrop-filter: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    z-index: 1003;
}

#mobile-menu-button:hover {
    transform: scale(1.05);
    box-shadow: none;
    background: transparent;
}

#mobile-menu-button.active {
    background: transparent;
    color: inherit;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

#mobile-menu-button i {
    font-size: 22px;
    transition: all 0.3s ease;
    color: var(--c4s-dark);
}

#mobile-menu-button.active i {
    color: var(--c4s-orange);
    transform: rotate(90deg);
}

/* Mobile Menu */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* iOS Safari */
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1001;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    -webkit-transform: translate3d(0,0,0); /* iOS Safari GPU acceleration */
    transform: translate3d(0,0,0);
}

#mobile-menu.show {
    max-height: 600px; /* Enough for all menu items */
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
}

#mobile-menu a {
    display: block;
    text-align: center;
    padding: 16px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 1; /* Always visible on iOS */
    transition: background-color 0.3s ease;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent; /* iOS touch feedback */
}

#mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--c4s-orange), var(--c4s-yellow));
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

#mobile-menu a:hover {
    opacity: 0.75;
    background: rgba(249, 115, 22, 0.05);
}

#mobile-menu a:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

#mobile-menu a:last-child {
    border-bottom: none;
}

/* Removed animation delays for iOS compatibility */
#mobile-menu.show a {
    opacity: 1;
}

/* Make mobile menu fully white on mobile and tablet */
@media (max-width: 1024px) {
    #mobile-menu {
        background: white;
        backdrop-filter: none;
    }

    /* Header mobile optimizations - moved to media-queries.css */
}
