/* =========================================
   1. VARIABLAT DHE RESETIMI
   ========================================= */
:root {
    --primary-dark: rgb(12, 43, 78);
    --secondary-blue: rgb(26, 61, 100);
    --accent-teal: rgb(29, 84, 108);
    --light-bg: rgb(244, 244, 244);
    --white: #ffffff;
    --text-dark: #333333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 50%, var(--accent-teal) 100%);
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    color: white;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-modal.active .contact-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    border: none;
    background: none;
    z-index: 1001;
}

.close-modal:hover {
    color: #f8f9fa;
}

.contact-content h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-content p {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.8);
}

.contact-details span {
    font-size: 1.2em;
    color: white;
    word-break: break-word;
}

.contact-details a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-details a:hover {
    opacity: 0.8;
}

/* =========================================
   2. HEADER DHE LOGO
   ========================================= */

header {
    background: rgba(12, 43, 78, 0.86);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul {
    display: flex;
    gap: 10px;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(29, 84, 108, 0.5);
    transform: translateY(-1px);
    backdrop-filter: blur(5px);
}


nav li:last-child a {
    background-color: var(--accent-teal);
    color: white;
    box-shadow: 0 4px 15px rgba(29, 84, 108, 0.4);
}

nav li:last-child a:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.logo-placeholder {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.school-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
}

/* =========================================
   3. HERO SECTION (BALLINA)
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-blue));
    color: var(--white);
    padding: 120px 5%;
    text-align: center;
    position: relative;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-teal);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* =========================================
   4. STRUKTURA E SEKSIONEVE
   ========================================= */
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--secondary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: var(--accent-teal);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* =========================================
   5. PROFILET (GRID SYSTEM)
   ========================================= */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}

.profile-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-teal);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.profile-card.card-active {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(29, 84, 108, 0.3);
    z-index: 10;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-blue);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    transition: color 0.3s ease;
}

.profile-card:hover h3 {
    color: var(--accent-teal);
}

.profile-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.profile-card:hover ul li {
    opacity: 1;
    padding-left: 30px;
}

.profile-card ul li::before {
    content: "🔹";
    color: var(--accent-teal);
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    top: 5px;
    transition: transform 0.3s ease;
}

.profile-card:hover ul li::before {
    transform: scale(1.3);
}

/* =========================================
   6. SISTEMI DUAL (SLIDER & VIDEO)
   ========================================= */
.dual-system-section {
    background-color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 50px;
}

.dual-text {
    flex: 1;
    min-width: 300px;
}

.stat-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-dark);
    padding: 20px;
    margin-top: 20px;
    font-style: italic;
}

/* --- KORNIZA E SLIDERIT & VIDEOVE --- */
.dual-visual {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Slider Container --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #000;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Butonat e Sliderit */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(12, 43, 78, 0.6);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--accent-teal);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 15px; }
.next { right: 15px; }

/* --- Lista e Videove --- */
.video-links-container {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary-blue);
    border: 1px solid #eee; /* Kontur i lehtë */
}

.video-links-container h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid #eee;
}

.video-item:hover {
    background-color: var(--secondary-blue);
    color: white;
    border-color: var(--secondary-blue);
    padding-left: 18px;
}

.play-icon {
    color: #ff0000;
    font-size: 12px;
}

.video-item:hover .play-icon {
    color: white;
}

/* =========================================
   7. PROJEKTET
   ========================================= */
.projects-section {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.projects-section .section-title {
    color: var(--white);
}

.projects-section .section-title::after {
    background-color: var(--white);
}

.project-showcase {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.project-badge {
    background-color: var(--accent-teal);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

/* =========================================
   8. STAFI
   ========================================= */
.staff-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.staff-card {
    background: var(--white);
    width: 300px;
    min-height:300px;
    max-height: 450px;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    background-color: var(--light-bg);
    color: var(--primary-dark);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.staff-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.staff-role {
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 15px;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 50px 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}



.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
/* =========================================
   THREE-DOT MOBILE MENU BUTTON
   ========================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-menu-btn span {
    display: block;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.mobile-menu-btn.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg) scaleX(3);
    border-radius: 2px;
    height: 2px;
    margin-top: 2px;
}
.mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.mobile-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg) scaleX(3);
    border-radius: 2px;
    height: 2px;
    margin-bottom: 2px;
}

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

    header {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0.8rem 5%;
    }

    .brand-container {
        width: auto;
        justify-content: flex-start;
    }

    .logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .school-name {
        font-size: 1rem;
    }

    /* Show three-dot button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide nav by default, show as dropdown when active */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(12, 43, 78, 0.97);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    nav ul.mobile-active {
        display: flex;
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 14px 24px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 1rem;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    nav a:hover {
        background: rgba(255,255,255,0.08);
        transform: none;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding-left: 32px;
    }

    .dual-system-section {
        flex-direction: column;
    }

    .dual-visual {
        width: 100%;
        min-width: auto;
    }
}
/* ================================
   Staff link button
   ================================ */
#staff > .slider-btnu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--accent-teal), var(--secondary-blue));
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(29,84,108,0.22);
    border: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
    cursor: pointer;
    max-width: 250px;
}

#staff > .slider-btnu:hover,
#staff > .slider-btnu:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(29,84,108,0.28);
    opacity: 0.98;
    outline: none;
}

@media (max-width: 480px) {
    #staff > .slider-btnu {
        width: 100%;
        padding: 14px;
        margin: 20px 0 0;
    }
}

.paginated-container {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.paginated-viewport {
    overflow: hidden;
    width: 100%;
}

.paginated-pages {
    display: flex;
    width: 100%;
    transition: transform 0.45s cubic-bezier(.2,.9,.3,1);
}

.page {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px 10px 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: auto;
    gap: 18px;
    align-items: start;
}


.paginated-pages .staff-card {
    width: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
    position: relative;}

.page-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(12, 43, 78, 0.6);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.page-btn:hover {
    background-color: var(--accent-teal);
    transform: translateY(-50%) scale(1.1);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn.prev {
    left: 15px;
}

.page-btn.next {
    right: 15px;
}

.dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(12,43,78,0.12);
    background: rgba(12,43,78,0.06);
    padding: 0;
    cursor: pointer;
}

.dot.active {
    background: var(--accent-teal);
    box-shadow: 0 6px 14px rgba(29,84,108,0.18);
}

@media (max-width: 1100px) {
    .page { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 780px) {
    .page { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .page { grid-template-columns: repeat(2, 1fr); }
    .pagination-controls { gap: 8px; }
}