/* SCSS Preprocessor ile yazılmış CSS */
:root {
    --primary-color: #ff66c4;
    --secondary-color: #f8c700;
    --accent-color: #ff8e2b;
    --text-color: #333;
    --light-text: #f9f9f9;
    --dark-bg: #2c3e50;
    --light-bg: #ecf0f1;
    --success-color: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

/* .nav-links {
    display: flex;
    list-style: none;
} */

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.sign-up-btn {
    color: white;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sign-up-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 196, 0.3);
    color: white;
}

/* .hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
} */

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .35s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 10px;
}

.hamburger span:nth-child(4) {
    top: 20px;
}

.hamburger.open span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}


/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #ff66c4 0%, #f8c700 100%);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 30px;
}

.hero-heading {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subheading {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.primary-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 142, 43, 0.3);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(248, 199, 0, 0.4);
}

.primary-btn i {
    margin-left: 10px;
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title p {
    font-size: 18px;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.feature-desc {
    color: #777;
    line-height: 1.6;
}

/* Courses Preview Section */
.courses-preview {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 25px;
}

.course-category {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.course-title {
    margin: 15px 0;
    font-size: 20px;
    color: var(--dark-bg);
    font-weight: 600;
}

.course-desc {
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 14px;
}

.course-rating {
    color: var(--accent-color);
}

.view-courses-btn {
    display: block;
    margin: 50px auto 0;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 250px;
}

.view-courses-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.3);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.testimonial-slide {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 20px;
}

.testimonial-content {
    position: relative;
    padding: 20px 30px;
    font-style: italic;
    color: #666;
    font-size: 18px;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    font-family: serif;
    line-height: 1;
}

.testimonial-content::after {
    content: '"';
    left: auto;
    right: 0;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.author-name {
    font-weight: 600;
    color: var(--dark-bg);
    font-size: 18px;
}

.author-position {
    color: #777;
    font-size: 14px;
}

/* Numbers Section */
.numbers {
    padding: 60px 0;
    background-color: var(--dark-bg);
    color: white;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.number-box {
    padding: 20px;
}

.number-count {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.number-label {
    font-size: 18px;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #ff66c4 0%, #f8c700 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #bbb;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-about h3,
.footer-links h3,
.footer-courses h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-courses h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-about p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links ul,
.footer-courses ul {
    list-style: none;
}

.footer-links li,
.footer-courses li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-courses a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-courses a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalOpen 0.5s ease;
	position: sticky;
	top: 50px;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* .modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
} */

.modal-header {
    background: linear-gradient(135deg, #ff66c4 0%, #f8c700 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.modal-title {
    font-size: 24px;
    margin: 0;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* .form-group {
    margin-bottom: 20px;
} */

.form-group {
    margin-bottom: 20px;
    position: relative; /* Pozisyon düzeltmesi için */
}


.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-bg);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* .form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
} */
.form-group input:focus {
    border-color: #ff66c4;
    box-shadow: 0 0 0 2px rgba(255, 102, 196, 0.2);
    outline: none;
}



/* Şifre input alanına sağdan padding ekleyerek ikonla çakışmasını önlüyoruz */
.form-group input[type="password"] {
    padding-right: 40px;
}




/* .form-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
} */

.form-submit {
    background: linear-gradient(135deg, #ff66c4 0%, #f8c700 100%);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}


/* .form-submit:hover {
    background-color: var(--secondary-color);
} */

.form-submit:hover {
    background: linear-gradient(135deg, #ff66c4 0%, #f8c700 80%);
    box-shadow: 0 5px 15px rgba(255, 102, 196, 0.4);
    transform: translateY(-2px);
}




.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

/* .form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
} */

.form-footer a {
    color: #ff66c4;
    text-decoration: none;
    font-weight: 500;
}



.form-footer a:hover {
    text-decoration: underline;
}

/* .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
} */

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(0); /* Önceki translateY(-50%) değerini değiştiriyoruz */
    cursor: pointer;
    color: #999;
    /* İkonun şifre input alanının ortasına hizalanması için */
    margin-top: 5px; /* Üstten boşluk ekleyerek pozisyonu ayarlıyoruz */
}





/* Mobile Responsive Styles */
@media screen and (max-width: 1024px) {

    .features-grid,
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    /* .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    } */


    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        padding: 50px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }


    /* 
    .nav-links.active {
        display: flex;
    } */

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    /* .nav-links li {
        margin: 10px 0;
    } */

    .nav-links li {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        transition-delay: 0.1s;
    }


    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .blur-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        pointer-events: none;
        z-index: 999;
        transition: backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    }
    
    .blur-overlay.active {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .hamburger {
        display: block;
    }

    .hero-heading {
        font-size: 32px;
    }

    .hero-subheading {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

@media screen and (max-width: 576px) {

    .features-grid,
    .courses-grid,
    .numbers-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-subtitle {
        font-size: 16px;
    }
}




/* SAYFA YENİLEME ANİMASYONU 1 */

/*aşağıdaki kodlar sayfa yenilendiği zaman sağ tarafa doğru soluk şekle getirip soldan ekrana tekrardan getirir aşağıdaki kodların javascript kodları var*/

/* Sayfa Yenileme Animasyonları */
/* body.page-refreshing {
    animation: slideOutRight 0.5s forwards;
}

body.page-refreshed {
    animation: slideInLeft 0.8s forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} */









/* SAYFA YENİLEME ANİMASYONU 2 */



/* Sayfa geçiş animasyonları için stiller */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 9999;
    pointer-events: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Animasyon gecikmesi için */
header.animate-in { animation-delay: 0.1s; }
.hero.animate-in { animation-delay: 0.2s; }
.features.animate-in { animation-delay: 0.3s; }
.courses-preview.animate-in { animation-delay: 0.4s; }
.testimonials.animate-in { animation-delay: 0.5s; }
.numbers.animate-in { animation-delay: 0.6s; }
.cta.animate-in { animation-delay: 0.7s; }
footer.animate-in { animation-delay: 0.8s; }



.footer-contact a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}