/**
 * ISCL Custom Styles
 * Additional custom CSS beyond the main stylesheet
 *
 * @package ISCL
 */

/* ========================================
   Additional Utility Classes
   ======================================== */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 50px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 50px; }

/* ========================================
   Form Styling Enhancements
   ======================================== */

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.form-group select option {
    background: var(--iscl-primary);
    color: var(--iscl-white);
    padding: 10px;
}

/* Form validation states */
.form-group input:focus:invalid,
.form-group textarea:focus:invalid,
.form-group select:focus:invalid {
    border-color: #ef5350;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--iscl-success);
}

/* ========================================
   Scrollbar Styling
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--iscl-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--iscl-accent-dark);
}

/* ========================================
   Selection Styling
   ======================================== */

::selection {
    background: var(--iscl-accent);
    color: var(--iscl-primary);
}

/* ========================================
   Accessibility Focus States
   ======================================== */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--iscl-accent);
    outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .site-header,
    .site-footer,
    .hero-banner,
    .cta-block,
    .contact-map,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 20px 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ========================================
   Lazy Loading Placeholder
   ======================================== */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ========================================
   Animation Delays (for staggered effects)
   ======================================== */

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ========================================
   Badge Styles
   ======================================== */

.badge {
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-primary {
    background: var(--iscl-accent);
    color: var(--iscl-primary);
}

.badge-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--iscl-accent);
    border: 1px solid var(--iscl-accent);
}

/* ========================================
   Card Hover Effects
   ======================================== */

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

.card-hover:hover {
    transform: translateY(-5px);
}

/* ========================================
   Divider Styles
   ======================================== */

.divider {
    width: 60px;
    height: 3px;
    background: var(--iscl-accent);
    margin: 20px auto;
}

.divider-left {
    margin-left: 0;
}

/* ========================================
   Icon List Styles
   ======================================== */

.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--iscl-text-gray);
}

.icon-list li i {
    color: var(--iscl-accent);
    width: 20px;
    text-align: center;
}

/* ========================================
   Loading Spinner
   ======================================== */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--iscl-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Video Container
   ======================================== */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

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

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--iscl-accent);
    color: var(--iscl-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

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

.back-to-top:hover {
    background: var(--iscl-accent-dark);
    transform: translateY(-5px);
}
