/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0f;
    color: #e0e0e0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-title .gold {
    color: #D4AF37;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #D4AF37;
    color: #0a0a0f;
}

.btn-primary:hover {
    background: #e6c85a;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #D4AF37;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #0a0a0f;
    transform: translateY(-3px);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    padding: 8px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.footer-logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-text .sub {
    font-size: 0.6rem;
    color: #888;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #D4AF37;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION - ФОНЪТ Е СМЕНЕН
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('ChatGPT Image 9 сент. 2026 г., 07_58_19.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.6;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.1) 0%, rgba(10, 10, 15, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-logo {
    max-width: 200px;
    margin: 0 auto 25px;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.2));
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    padding: 8px 28px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero h1 .gold {
    color: #D4AF37;
}

.hero h2 {
    font-size: 1.6rem;
    font-weight: 300;
    color: #bbb;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: #111118;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    background: linear-gradient(135deg, #D4AF37, #0a0a0f);
    border-radius: 20px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #fff;
    opacity: 0.9;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.about-text p {
    color: #aaa;
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.stat {
    text-align: center;
}

.stat .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #D4AF37;
}

.stat .label {
    font-size: 0.85rem;
    color: #888;
}

/* ============================================
   CARDS GRID (Администрация & Учители)
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: #151520;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: #D4AF37;
}

.card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
    border: 3px solid #D4AF37;
}

.card .avatar.gold-bg {
    background: linear-gradient(135deg, #D4AF37, #b8973a);
    border-color: #D4AF37;
}

.card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 5px;
}

.card .position {
    font-size: 0.85rem;
    color: #D4AF37;
    font-weight: 500;
    margin-bottom: 8px;
}

.card .subjects {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.4;
}

.card .icon-subject {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

/* ============================================
   ADMIN / TEACHERS DIFFERENT BG
   ============================================ */
#administration {
    background: #0f0f18;
}

#teachers {
    background: #0a0a0f;
}

/* ============================================
   SPECIALTIES
   ============================================ */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.specialty-card {
    background: #151520;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #D4AF37;
}

.specialty-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #D4AF37;
}

.specialty-card .icon {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.specialty-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}

.specialty-card p {
    color: #888;
    font-size: 0.95rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 18px 25px;
    background: #151520;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.contact-info .info-item:hover {
    border-color: #D4AF37;
    transform: translateX(5px);
}

.contact-info .info-item i {
    width: 50px;
    height: 50px;
    background: #1a1a2e;
    color: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-info .info-item .text h5 {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.contact-info .info-item .text p {
    color: #aaa;
    font-size: 1rem;
}

.contact-info-secondary {
    display: flex;
    justify-content: center;
}

.contact-message {
    background: #151520;
    border-radius: 16px;
    padding: 40px 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #D4AF37;
    max-width: 400px;
    width: 100%;
}

.contact-message i {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.contact-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.contact-message p {
    color: #888;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-message .btn {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #050508;
    color: #888;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer .logo-text .name {
    color: #D4AF37;
}

.footer .logo-text .sub {
    color: #666;
}

.footer h4 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #888;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: #D4AF37;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: #D4AF37;
    color: #0a0a0f;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-bottom .gold {
    color: #D4AF37;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #D4AF37;
    color: #0a0a0f;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #e6c85a;
    transform: translateY(-5px) scale(1.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-message {
        max-width: 100%;
    }
    
    /* Стилове за мобилна версия на Директора */
    .director-block {
        flex-direction: column !important;
        text-align: center;
    }
    .director-img {
        min-width: 100% !important;
    }
    .director-text {
        min-width: 100% !important;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: #0a0a0f;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        align-items: flex-start;
        border-left: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .logo-text .name {
        font-size: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero-logo {
        max-width: 150px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-logo {
        max-width: 120px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 5px 16px;
    }

    .contact-info .info-item {
        padding: 15px;
    }

    .contact-info .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
