@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text: #111827;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--background);
    font-weight: 400;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 1rem 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.logo h1 {
    font-size: 1.5rem;
    line-height: 1;
    margin: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        flex-wrap: nowrap;
    }
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
}

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

.nav-link:hover::after {
    width: 100%;
}

.phone-number {
    color: var(--primary);
    font-weight: 600;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-number svg {
    width: 20px;
    height: 20px;
}

.button-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

main {
    padding-top: 140px;
    position: relative;
    z-index: 1;
}

/* Course Page Specific Styles */
.course-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 8rem 0 6rem 0;
    margin-top: 0;
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.course-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.course-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.course-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.section {
    padding: 2rem 0 6rem 0;
    background: var(--background);
    position: relative;
    z-index: 1;
}

.section .card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.section .course-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section h2.course-title {
    font-size: 1.75rem;
}

.section h3.course-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.section .space-y-4 > * + * {
    margin-top: 1rem;
}

.section .space-y-2 > * + * {
    margin-top: 0.5rem;
}

.section ul {
    list-style: none;
}

.section ul li {
    padding: 0.5rem 0;
    color: var(--text);
}

.section .text-primary {
    color: var(--primary);
}

.section .text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .course-hero {
        padding: 7rem 0 5rem 0;
    }

    .course-hero h1 {
        font-size: 2rem;
    }

    .course-hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 1rem 0 4rem 0;
    }

    .grid.grid-cols-2,
    .grid.grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .section .card {
        padding: 1.5rem;
    }
}

.course-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-description {
    font-size: 1.1rem;
    max-width: 800px;
    opacity: 0.9;
}

.course-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-top: 120px;
    margin-top: -80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    max-width: 36rem;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.curriculum-list {
    list-style: none;
    padding: 0;
}

.curriculum-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.curriculum-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.curriculum-item p {
    color: var(--text-light);
}

.requirements-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text);
}

.requirements-list li {
    margin-bottom: 0.5rem;
}

.cta-section {
    background: var(--background-light);
    padding: 4rem 0;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 767px) {
    .mobile-menu-button {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* Sosyal Medya Bar */
.social-bar {
    margin-top: 0;
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 40;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 3px 10px;
}

.social-link i {
    font-size: 36px;
    margin-right: 12px;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link i.fa-instagram { color: #E4405F; }
.social-link i.fa-facebook { color: #1877F2; }
.social-link i.fa-youtube { color: #FF0000; }

@media (max-width: 768px) {
    .social-bar {
        top: 60px;
        padding: 10px 0;
    }
    .social-links {
        gap: 40px;
    }
    .social-link {
        padding: 2px 5px;
    }
    .social-link span {
        display: none;
    }
    .social-link i {
        font-size: 42px;
        margin-right: 0;
    }
    .hero {
        margin-top: 115px;
    }
}

/* Simple Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
}

.footer .text-center {
    padding: 1rem 0;
}

/* Section Scroll Offset */
section[id],
div[id] {
    scroll-margin-top: -40px;
    position: relative;
    z-index: 1;
}

/* Add padding to the first section/element after header */
main > *:first-child,
body > *:first-child:not(.header):not(.social-bar) {
    padding-top: 100px;
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding-top: calc(90px + 2rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Index page specific hero adjustment */
body:has(#anasayfa) .hero {
    margin-top: -140px;
    padding-top: 100px;
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    .social-bar {
        top: 60px;
        height: auto;
    }
    .header.scrolled ~ .social-bar {
        top: -80px;
    }
    main {
        padding-top: 120px;
    }
    section[id] {
        scroll-margin-top: 70px;
    }
    .hero {
        padding-top: calc(70px + 2rem);
    }

    /* Mobile hero adjustments */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-trophy {
        font-size: 2rem;
        margin: 1rem 0;
    }

    .hero-trophy.left {
        display: none;
    }

    .hero-trophy.right {
        display: none;
    }
}

/* Section Styles */
.section {
    padding: 2rem 0 6rem 0;
    background: var(--background);
    position: relative;
    z-index: 1;
}

/* Specific section adjustments */
#hakkimizda {
    padding-top: 8rem;
}

#hakkimizda .section-title {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    #hakkimizda {
        padding-top: 7rem;
    }
} 