/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #2d2d2f;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border-color: #424245;
    --gradient-start: #1d1d1f;
    --gradient-end: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(29, 29, 31, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(66, 66, 69, 0.3);
}

.navbar.scrolled {
    background: rgba(29, 29, 31, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: 12px 20px;
}

.nav-brand {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-brand span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 113, 227, 0.15) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #f5f5f7 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-instructor {
    margin: 40px 0;
}

.instructor-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.instructor-title {
    font-size: 18px;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Program Section */
.program {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1.5px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.program-card {
    background: var(--bg-tertiary);
    padding: 36px;
    border-radius: 18px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.program-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.program-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.page-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 100px;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-tertiary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, transparent 100%);
}

.image-placeholder span {
    position: relative;
    z-index: 1;
}

.director-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border-color);
}

.about-text h2,
.about-text h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.about-intro {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.about-details h3,
.about-details h4 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.about-details ul {
    list-style: none;
    margin-left: 0;
}

.about-details ul li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-secondary);
    font-size: 17px;
}

.about-details ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.about-details p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Philosophy Section */
.philosophy {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.philosophy-content blockquote {
    font-size: 28px;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    padding: 0 40px;
}

.quote-author {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
}

/* Approach Section */
.approach {
    padding: 100px 0;
    background: var(--bg-primary);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.approach-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.approach-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.approach-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.7;
}

.approach-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.approach-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-tertiary);
    padding: 36px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
}

/* Contacts Main */
.contacts-main {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 48px 32px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.contact-icon-large {
    font-size: 64px;
    margin-bottom: 24px;
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-link {
    font-size: 18px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-hover);
}

/* Social Section */
.social-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.social-card {
    background: var(--bg-tertiary);
    padding: 48px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: block;
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.social-card svg {
    margin-bottom: 24px;
}

.social-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.social-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-cta {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-secondary);
}

.cta-section h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

.footer-phone a {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 68px);
        background: rgba(29, 29, 31, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 32px 20px;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        width: 100%;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .hero-features {
        gap: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        position: static;
    }

    .program-grid,
    .approach-grid,
    .testimonials-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .course-details {
        grid-template-columns: 1fr;
    }
}

/* Partner Course Styles */
.partner-course {
    padding: 80px 0;
    background: var(--bg-primary);
}

.course-header {
    text-align: center;
    margin-bottom: 60px;
}

.course-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 18px;
    color: var(--text-secondary);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-gallery {
    margin-bottom: 80px;
}

.gallery-main {
    margin-bottom: 24px;
}

.gallery-main .gallery-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-grid .gallery-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    object-fit: cover;
    aspect-ratio: 16/9;
}

.course-content {
    max-width: 900px;
    margin: 0 auto;
}

.course-section {
    background: var(--bg-secondary);
    padding: 48px;
    border-radius: 18px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.course-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.course-topic {
    margin-bottom: 32px;
}

.course-topic:last-child {
    margin-bottom: 0;
}

.course-topic h4 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.course-topic p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.course-list {
    list-style: none;
    margin-left: 0;
}

.course-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.course-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 20px;
}

.instructor-info {
    margin-top: 24px;
}

.instructor-info h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.instructor-link {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.instructor-link a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.instructor-link a:hover {
    color: var(--accent-hover);
}

.course-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.detail-card {
    background: var(--bg-secondary);
    padding: 32px 24px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.detail-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.detail-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.detail-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.course-registration {
    background: var(--bg-secondary);
    padding: 48px;
    border-radius: 18px;
    text-align: center;
    border: 2px solid var(--accent);
    margin-bottom: 32px;
}

.course-registration h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.course-registration p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.organizer-note {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.organizer-note p {
    font-size: 16px;
    color: var(--text-secondary);
}

.organizer-note strong {
    color: var(--text-primary);
}

/* Loading animation for images */
.loading-placeholder {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.loading-placeholder::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -200%;
    }
    100% {
        left: 100%;
    }
}
