/**
 * Eğitim Kurumu - Ana CSS Dosyası
 */

/* ==================== 
   CSS Variables 
==================== */
:root {
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --white: #ffffff;
    --black: #000000;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    
    --border-radius: 10px;
    --border-radius-lg: 20px;
}

/* ==================== 
   Reset & Base 
==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ==================== 
   Typography 
==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ==================== 
   Top Bar 
==================== */
.top-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
}

.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-right: 8px;
    transition: var(--transition);
}

.top-bar .social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.top-bar .contact-info a {
    margin-left: 20px;
}

.top-bar .contact-info i {
    margin-right: 5px;
}

/* ==================== 
   Navbar 
==================== */
.navbar {
    padding: 15px 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-right: 10px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

/* ==================== 
   Hero Slider 
==================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-slide .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.hero-slide .slide-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.hero-slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .slide-content h2 {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.hero-slide.active .slide-content h2 {
    opacity: 0.9;
    transform: translateY(0);
}

.hero-slide .slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.7s;
}

.hero-slide.active .slide-content p {
    opacity: 0.8;
    transform: translateY(0);
}

.hero-slide .slide-content .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.9s, background 0.3s, transform 0.3s;
}

.hero-slide.active .slide-content .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--white);
    color: var(--primary-color);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* ==================== 
   Buttons 
==================== */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.4);
}

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

/* ==================== 
   Sections 
==================== */
section {
    padding: 80px 0;
}

.section-bg {
    background: var(--light-color);
}

/* ==================== 
   About Section 
==================== */
.about-section .about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-section .about-image img {
    width: 100%;
    transition: var(--transition);
}

.about-section .about-image:hover img {
    transform: scale(1.05);
}

.about-section .about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-section .about-content p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ==================== 
   Vision Mission 
==================== */
.vision-mission-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.vision-mission-section h2,
.vision-mission-section h3 {
    color: var(--white);
}

.vision-mission-section .vm-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.vision-mission-section .vm-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.vision-mission-section .vm-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
}

/* ==================== 
   Statistics 
==================== */
.statistics-section {
    background: var(--light-color);
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card .stat-label {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ==================== 
   Services 
==================== */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ==================== 
   Programs 
==================== */
.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-card .program-image {
    height: 200px;
    overflow: hidden;
}

.program-card .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-card .program-content {
    padding: 25px;
}

.program-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.program-card .program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.program-card .program-meta span {
    background: var(--light-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* ==================== 
   Gallery 
==================== */
.gallery-filter {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-filter button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 25px;
    margin: 5px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.gallery-filter button.active,
.gallery-filter button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 115, 223, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* ==================== 
   Testimonials 
==================== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin: 20px 10px;
}

.testimonial-card .testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

.testimonial-card .testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .testimonial-content {
    margin-bottom: 20px;
}

.testimonial-card .testimonial-content p {
    font-style: italic;
    color: var(--secondary-color);
}

.testimonial-card .testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-card .testimonial-author span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.testimonial-card .rating {
    color: var(--warning-color);
    margin-top: 10px;
}

/* ==================== 
   Forms 
==================== */
.form-control {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #e3e6f0;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* ==================== 
   Contact 
==================== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-item .content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info-item .content p {
    color: var(--secondary-color);
    margin: 0;
}

/* ==================== 
   Footer 
==================== */
.footer {
    background: #1a1a2e;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-widget p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-widget .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    transition: var(--transition);
}

.footer-widget .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ==================== 
   WhatsApp Button 
==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==================== 
   Scroll to Top 
==================== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== 
   Responsive 
==================== */
@media (max-width: 991px) {
    .hero-slide .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-top: 15px;
    }
    
    .slider-arrow {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-slide .slide-content h1 {
        font-size: 2rem;
    }
    
    .hero-slide .slide-content h2 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .top-bar .social-links {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .top-bar .contact-info {
        text-align: center;
    }
    
    .top-bar .contact-info a {
        margin: 0 10px;
    }
}

/* ==================== 
   Animations 
==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==================== 
   Lightbox 
==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
}

.lightbox .close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}
