/* --- 1. FONTE LOKALE --- */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* --- 2. VARIABLAT DHE RESET --- */
:root {
    --dark-bg: #0a192f;
    --teal: #00b4d8;
    --neon-yellow: #ccff00;
    --text-gray: #8892b0;
    --sidebar-width: 180px; 
    --top-bar-height: 40px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background-color: #f4f7f6; 
    color: var(--dark-bg); 
    overflow-x: hidden; 
}

/* --- 3. TOP ANNOUNCEMENT BAR --- */
.top-announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    background: var(--neon-yellow);
    color: var(--dark-bg);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-links a {
    color: var(--dark-bg);
    text-decoration: none;
    border-bottom: 1px solid var(--dark-bg);
    padding: 0 2px;
    transition: 0.3s;
}

.announcement-links a:hover { opacity: 0.7; }
.separator { opacity: 0.3; }

/* --- 4. SIDEBAR NAVIGATION --- */
.sidebar {
    position: fixed; 
    left: 0; 
    top: var(--top-bar-height); 
    bottom: 0; 
    width: var(--sidebar-width);
    background: var(--dark-bg); 
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 30px 20px; 
    z-index: 1000;
}

/* Logo në Sidebar */
.sidebar .logo img {
    width: 120px; /* Mund ta ndryshosh sipas dëshirës (psh 100px ose 140px) */
    height: auto; /* Ruaj proporcionin origjinal */
    max-height: 60px; /* Kufizon lartësinë që të mos thyejë menunë */
    object-fit: contain; /* Siguron që imazhi të ulet brenda kutisë pa u prerë */
    display: block;
    margin: 20px auto; /* Centrim dhe hapësirë lart/poshtë */
}
/* Logo në Footer */
.footer-brand img {
    width: 150px; /* Përmasa për footer */
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
}

.nav-links { width: 100%; }
.nav-links a { 
    color: rgba(255,255,255,0.3); 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin: 30px 0; 
    transition: var(--transition); 
    text-decoration: none; 
}

.nav-links a span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--teal); 
    text-shadow: 0 0 10px var(--teal); 
}

.sidebar-year { 
    color: #444; 
    font-size: 0.7rem; 
    font-weight: 700; 
    width: 100%; 
    text-align: center; 
}

/* --- 5. HERO SECTION (RREGULLUAR) --- */
.hero {
    margin-left: var(--sidebar-width); 
    margin-top: var(--top-bar-height); 
    min-height: calc(100vh - var(--top-bar-height)); /* Ndryshuar ne min-height */
    background: linear-gradient(135deg, var(--dark-bg) 0%, #112240 100%);
    display: flex; 
    flex-wrap: wrap; /* Mundeson zbritjen poshte te elementeve */
    align-items: center; 
    justify-content: space-between; /* Shperndarje e barabarte */
    padding: 60px 8%; 
    position: relative; 
    color: white; 
    overflow: hidden;
}

.hero-content { 
    z-index: 5; 
    flex: 1; /* Merr hapesiren e mbetur */
    min-width: 300px; /* Mos u bej me e vogel se aq */
    margin-right: 20px;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 25px; }
.hero h1 span { color: var(--neon-yellow); }

#typewriter::after { content: "|"; animation: blink 0.7s infinite; color: var(--teal); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: var(--text-gray); max-width: 600px; }

.btn-main { 
    padding: 18px 40px; 
    background: var(--teal); 
    color: var(--dark-bg); 
    text-decoration: none; 
    border-radius: 100px; 
    font-weight: 700; 
    transition: var(--transition); 
    display: inline-block; 
}

.btn-main:hover { 
    background: var(--neon-yellow); 
    box-shadow: 0 0 30px var(--neon-yellow); 
    transform: translateY(-5px); 
}

.hero-img {
    flex: 0 0 auto;
    width: clamp(300px, 35vw, 450px); /* Madhesia ndryshon ne baze te ekranit */
    height: clamp(250px, 30vw, 350px);
    background: url('assets/img/photo-hero.jpg') center/cover;
    border-radius: 30px; 
    border: 8px solid rgba(255,255,255,0.05); 
    box-shadow: 20px 20px 0px var(--teal); /* Shkurtuar pak hija */
    position: relative;
    z-index: 4;
}

/* --- 6. SEKSIONET --- */
.about, .skills, .courses, .gallery, .testimonials, .contact { 
    margin-left: var(--sidebar-width); 
    padding: 100px 8%; 
}

.about { 
    background: white; 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 80px; 
    align-items: center; 
    text-align: center; /* Centron tekstin horizontalisht */
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centron elementet (butonat, tags) brenda div-it content */
    justify-content: center;
}

.about-tag { 
    color: var(--teal); 
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    display: block; 
}

.about h2 { 
    font-size: 2.8rem; 
    margin-bottom: 25px; 
    line-height: 1.2; 
}

.about h2 span { color: var(--teal); }

.about p { 
    color: #64748b; 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 40px; 
    max-width: 600px; /* Opsionale: Kufizon gjerësinë që paragrafi të duket më mirë në qendër */
}

/* Sigurohu që edhe stat-et të jenë në qendër */
.about-stats { 
    display: flex; 
    gap: 40px; 
    border-top: 1px solid #eee; 
    padding-top: 30px; 
    justify-content: center; /* Centron stat-et horizontalisht */
}

.about-stats { display: flex; gap: 40px; border-top: 1px solid #eee; padding-top: 30px; }
.stat-item h4 { font-size: 2rem; color: var(--dark-bg); }
.stat-item p { color: var(--teal); font-weight: 700; font-size: 0.8rem; }

.about-visual { position: relative; }
.about-visual img { width: 100%; border-radius: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.exp-badge { position: absolute; bottom: -20px; left: -20px; background: var(--neon-yellow); padding: 20px; border-radius: 20px; font-weight: 900; text-align: center; box-shadow: 0 10px 20px rgba(204, 255, 0, 0.3); }
/* --- 7. SKILLS (Stili i Testimonials) --- */
.skills { 
    background: linear-gradient(135deg, #112240 0%, var(--dark-bg) 100%); 
    color: white;
    padding: 100px 8%;
}

.skills-container { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 80px; 
    align-items: center; 
}

/* Karta e progresit (Majtas) */
.skill-item { 
    margin-bottom: 30px; 
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-info { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 12px; 
    font-weight: 600; 
    font-size: 0.95rem;
    color: var(--text-gray);
}

.progress-line { 
    height: 6px; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    position: relative; 
    overflow: hidden; 
}

.progress-line span { 
    height: 100%; 
    position: absolute; 
    left: 0; 
    top: 0; 
    background: var(--teal); 
    box-shadow: 0 0 15px var(--teal);
    width: 0; 
    transition: width 1.5s cubic-bezier(0.1, 1, 0.3, 1); 
}

/* Ikonat (Djathtas) */
.icon-box { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px);
    height: 110px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 25px; 
    font-size: 2.8rem; 
    color: var(--text-gray); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: var(--transition); 
}

.icon-box:hover { 
    color: var(--neon-yellow); 
    border-color: var(--neon-yellow); 
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Rregullimi i teksteve që të duken mbi sfond të errët */
.skills h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skills p {
    color: var(--text-gray);
    margin-bottom: 40px;
}
/* --- 8. COURSES --- */
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: white; padding: 30px 20px; border-radius: 25px; transition: var(--transition); border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-12px); border-color: var(--teal); box-shadow: 0 25px 50px rgba(0,0,0,0.05); }
.age-badge { background: var(--dark-bg); color: var(--neon-yellow); padding: 4px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; margin-bottom: 10px; width: fit-content; }
.card i { font-size: 2.2rem; color: var(--teal); margin-bottom: 15px; }
.card ul { list-style: none; margin-top: auto; padding-top: 15px; border-top: 1px solid #f5f5f5; color: #64748b; font-size: 0.8rem; }
.card ul li::before { content: "•"; color: var(--teal); margin-right: 5px; font-weight: bold; }

/* --- 9. GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-auto-rows: 200px; gap: 20px; grid-auto-flow: dense; }
.gallery-item { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 25, 47, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.gallery-overlay span { color: var(--neon-yellow); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transform: translateY(20px); transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

/* --- 10. TESTIMONIALS --- */
.testimonials { background: linear-gradient(135deg, #112240 0%, var(--dark-bg) 100%); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); padding: 40px; border-radius: 30px; backdrop-filter: blur(10px); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-10px); border-color: var(--teal); }
.testimonial-card p { color: var(--text-gray); font-style: italic; font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.user-details strong { display: block; color: white; }
.user-details span { color: var(--teal); font-size: 0.8rem; }

/* --- 11. CONTACT --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-form-box { background: white; padding: 50px; border-radius: 30px; box-shadow: 0 30px 60px rgba(0,0,0,0.05); }
.input-group { position: relative; margin-bottom: 30px; }
.input-group input, .input-group textarea { width: 100%; padding: 10px 0; border: none; border-bottom: 2px solid #ddd; outline: none; background: transparent; }
.input-group label { position: absolute; left: 0; top: 10px; color: #999; transition: 0.3s; pointer-events: none; }
.input-group input:focus ~ label, .input-group input:valid ~ label { top: -20px; font-size: 0.8rem; color: var(--teal); }

/* --- 12. FOOTER --- */
.footer { margin-left: var(--sidebar-width); background-color: var(--dark-bg); color: white; padding: 80px 8% 20px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-gray); margin: 20px 0; font-size: 0.9rem; line-height: 1.6; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 35px; height: 35px; background: rgba(255,255,255,0.05); color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); text-decoration: none; }
.social-links a:hover { background: var(--teal); color: var(--dark-bg); transform: translateY(-5px); }
.footer-links h4, .footer-newsletter h4 { color: var(--neon-yellow); margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-links ul li a:hover { color: var(--teal); padding-left: 5px; }
.newsletter-form { display: flex; background: rgba(255,255,255,0.05); padding: 5px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); }
.newsletter-form input { background: transparent; border: none; padding: 10px 20px; color: white; outline: none; width: 100%; }
.newsletter-form button { background: var(--teal); border: none; width: 45px; height: 40px; border-radius: 50px; color: var(--dark-bg); cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; text-align: center; color: var(--text-gray); font-size: 0.8rem; }

/* --- 13. RESPONSIVE (NAV MENU MOBILE) --- */
@media (max-width: 1200px) { .grid-4-col { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 992px) {
    .sidebar { 
        width: 100%; 
        height: 70px; 
        flex-direction: row; 
        padding: 0 20px; 
        top: var(--top-bar-height); 
        bottom: auto; 
        left: 0;
        align-items: center; 
        justify-content: space-between;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    
    .nav-links { display: flex; flex-direction: row; justify-content: flex-end; gap: 12px; width: auto; margin: 0; }
    .nav-links a { margin: 0; font-size: 1.4rem; padding: 5px; }
    .nav-links a span, .sidebar-year { display: none; }

    .hero, .about, .skills, .courses, .gallery, .testimonials, .contact, .footer { 
        margin-left: 0; 
        padding-top: 130px; 
    }

    .hero { justify-content: center; text-align: center; }
    .hero-content { margin-right: 0; margin-bottom: 40px; }
    .hero-img { width: 80%; height: 300px; margin: 0 auto; box-shadow: 15px 15px 0px var(--teal); }

    .about-visual, .skills-icons { display: none; }
    .hero, .about, .skills { text-align: center; }
    .skills-container, .contact-container, .footer-container { grid-template-columns: 1fr; }
    .gallery-item.wide { grid-column: span 1; }
    .about-stats { justify-content: center; }
    .social-links { justify-content: center; }
    .newsletter-form { max-width: 400px; margin: 0 auto; }
}
/* Fshih burger icon në desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--teal);
    z-index: 1200;
}

@media (max-width: 600px) { 
    .grid-4-col { grid-template-columns: 1fr; } 
    .nav-links { gap: 8px; }
    .sidebar .logo img {
        width: 80px; /* Më e vogël për ekrane celulari */
    }
    .about h2 { font-size: 2rem; }
    .top-announcement { font-size: 0.7rem; }
}
@media (max-width: 768px) {
	.about {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centron titullin, tag-un dhe paragrafin */
		text-align:center;
    }
	
	
    .sidebar .logo img {
        width: 80px; /* Më e vogël për ekrane celulari */
    }
	
	/* 1. Qendrimi i krejt kontenierit të footer-it */
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px;
    }

    /* 2. Qendrimi i Logos (Brand) */
    .footer-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
    }

    .footer-brand img {
        display: block !important;
        margin: 0 auto 15px auto !important;
        height: 40px; /* Mund ta rregullosh këtu lartësinë */
    }

    /* 3. Qendrimi i Linqeve (Kjo është pjesa që të mungon) */
    .footer-links {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-links h4 {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }

    .footer-links ul {
        padding: 0 !important; /* Heq hapesiren e tepert majtas */
        margin: 0 !important;
        list-style: none;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-links ul li {
        text-align: center;
        margin-bottom: 10px;
    }

    /* 4. Pjesa e fundit (Copyright) */
    .footer-bottom {
        text-align: center !important;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
    }
}
@media (max-width: 992px) {
    .menu-toggle {
        display: block; /* Shfaqet vetëm në mobile */
    }
	.sidebar-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .nav-links {
        display: flex;
        flex-direction: column !important; /* Renditje vertikale */
        position: fixed;
        top: calc(var(--top-bar-height) + 70px); /* Nën sidebar-in horizontal */
        left: -100%; /* E fshehur majtas */
        width: 100%;
        height: auto;
        background: var(--dark-bg);
        transition: 0.4s ease;
        padding: 40px;
        border-bottom: 2px solid var(--teal);
    }

    /* Klasa që do shtohet me JS */
    .nav-links.active {
        left: 0; /* Shfaqet në ekran */
    }

    .nav-links a {
        margin: 15px 0 !important;
        font-size: 1.2rem !important;
    }
    
    .nav-links a span {
        display: inline-block !important; /* Shfaq tekstin në mobile */
    }
}
.main-desc { font-size: 1.05rem; margin-bottom: 20px; line-height: 1.6; color: #334155; }
.details-list { list-style: none; padding: 0; }
.details-list li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.details-list li i { color: var(--teal); margin-top: 4px; }

.modal-info-panel { background: #f1f5f9; padding: 25px; border-radius: 20px; display: flex; flex-direction: column; gap: 20px; }
.info-box h4 { color: var(--dark-bg); font-size: 0.9rem; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.info-box p { font-size: 0.9rem; color: #475569; font-weight: 500; }

.contact-btn { text-align: center; font-size: 0.9rem !important; padding: 15px !important; }
/* --- 14. MODAL (POP-UP) CORE STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.96);
    overflow-y: auto; /* Ky lejon scroll-in brenda pop-up-it */
}

.modal-content {
    background-color: white;
    margin: 60px auto; 
    padding: 35px;
    border-radius: 25px;
    width: 90%;
    max-width: 850px; /* E bëjmë pak më të gjerë për 2 kolonat */
    position: relative;
    height: auto;
}

/* Fix për mobile: Kalojmë në 1 kolonë nëse ekrani është i vogël */
@media (max-width: 768px) {
    .modal-grid {
        flex-direction: column !important;
    }
    .modal-content {
        margin: 20px auto;
        width: 95%;
        padding: 20px;
    }
}
@keyframes modalSlideIn {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute; /* Qendron ne krye te kutise se bardhe */
    right: 25px;
    top: 20px;
    font-size: 32px;
    z-index: 100;
    background: white; /* Per te mbuluar tekstin nese kalon permes tij */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--teal);
    transform: rotate(90deg);
}

/* --- RREGULLIME PËR GRID-IN E BRENDSHËM TË MODALIT --- */
.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-top: 25px;
}

/* Përshtatja për Mobile (Modal) */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        margin: 10% auto;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-header h2 {
        font-size: 1.5rem;
    }
}
/* --- FIX PER MOBILE (992px e poshte) --- */
@media (max-width: 992px) {
    /* Heqim margin-in majtas qe ishte rezervuar per sidebar */
    .hero, .about, .skills, .courses, .gallery, .testimonials, .contact, .footer { 
        margin-left: 0 !important; 
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    /* Rregullojme pozicionimin e hero section */
    .hero {
        padding-top: 140px; /* Hapesire per sidebar-in horizontal */
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 30px;
    }

    /* Rregullimi i modalit per ekranet e vegjel */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* --- FIX PER TELEFONA (600px e poshte) --- */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-img {
        width: 100% !important;
        height: 250px !important;
        box-shadow: 10px 10px 0px var(--teal) !important;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}