/* Genel Stil Ayarları */
:root {
    /* Elewon Mor Paleti */
    --Elewon-dark-purple: #3A0CA3; /* Koyu mor, ana renk */
    --Elewon-medium-purple: #480CA8; /* Orta mor, vurgu */
    --Elewon-light-purple: #7209B7; /* Açık mor, vurgu */
    --Elewon-accent-pink: #F72585; /* Pembe/Magenta, güçlü vurgu */
    --Elewon-gradient-1: linear-gradient(135deg, #3A0CA3 0%, #7209B7 100%);
    --Elewon-gradient-2: linear-gradient(135deg, #480CA8 0%, #F72585 100%);
    
    --text-color-dark: #333;
    --text-color-light: #fefefe; /* Beyaz tonu */
    --bg-light: #F8F4FD; /* Morumsu açık gri arka plan */
    --bg-dark: #1A052E; /* Çok koyu mor arka plan */
    --white: #fff;

    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 50px; /* Butonlar için */

    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 40px rgba(0,0,0,0.25);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--text-color-dark);
    background-color: var(--white);
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
    scroll-behavior: smooth; /* Yumuşak kaydırma */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* Daha geniş boşluklar */
}

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

a {
    text-decoration: none;
    color: var(--Elewon-medium-purple);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--Elewon-accent-pink);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 800; /* Daha kalın başlıklar */
    color: var(--text-color-dark);
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color-light);
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 20px;
    line-height: 1.2;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px; /* Daha uzun çizgi */
    height: 5px;
    background: var(--Elewon-gradient-2); /* Gradyan çizgi */
    border-radius: 3px;
}

h3 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--Elewon-gradient-2);
    border-radius: 2px;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px; /* Daha büyük butonlar */
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Yumuşak Bırakma Animasyonu */
    border: none;
    cursor: pointer;
    letter-spacing: 0.7px;
    box-shadow: var(--shadow-medium);
    overflow: hidden; /* Gradyan taşmasını engelle */
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200% auto; /* Gradyan animasyonu için */
    z-index: -1;
    transition: background-position 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn i {
    margin-left: 10px; /* İkon sağda */
    transition: transform 0.3s ease;
}

.btn.primary {
    background-image: var(--Elewon-gradient-1);
    color: var(--text-color-light);
}

.btn.primary::before {
    background-image: var(--Elewon-gradient-1); /* Hover'da ters gradyan veya farklı ton */
}
.btn.primary:hover {
    background-position: right center; /* Gradyan yön değiştirir */
    box-shadow: var(--shadow-heavy);
    transform: translateY(-5px);
}
.btn.primary:hover i {
    transform: translateX(5px);
}

.btn.secondary {
    background-image: var(--Elewon-gradient-2);
    color: var(--text-color-light);
}
.btn.secondary::before {
    background-image: var(--Elewon-gradient-2);
}
.btn.secondary:hover {
    background-position: right center;
    box-shadow: var(--shadow-heavy);
    transform: translateY(-5px);
}
.btn.secondary:hover i {
    transform: translateX(5px);
}

.btn.card-btn { /* Proje kartları içindeki butonlar */
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--border-radius-md);
    box-shadow: none;
    background-image: linear-gradient(45deg, #7209B7 0%, #F72585 100%); /* Kendine özgü gradyan */
    transition: all 0.3s ease;
}
.btn.card-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}
.btn.card-btn i {
    margin-left: 8px;
    margin-right: 0;
}


/* Header */
header {
    background-color: var(--bg-dark);
    color: var(--text-color-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-heavy);
}

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

header .logo h1 {
    margin: 0;
    font-size: 2.2rem;
    color: var(--text-color-light);
    letter-spacing: 1.5px;
    font-weight: 800;
}

header .main-nav ul { /* .main-nav class'ını ekledik */
    list-style: none;
    display: flex;
}

header .main-nav ul li {
    margin-left: 35px;
}

header .main-nav ul li a {
    color: var(--text-color-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

header .main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Alt çizgiyi biraz aşağıya al */
    width: 0;
    height: 3px;
    background-color: var(--Elewon-accent-pink);
    transition: width 0.3s ease;
    border-radius: 2px;
}

header .main-nav ul li a:hover {
    color: var(--Elewon-accent-pink);
}

header .main-nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none; /* Masaüstünde gizle */
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color-light);
    transition: transform 0.3s ease; /* Hamburger ikonunun dönüş animasyonu */
}

.mobile-menu-toggle.active i.fa-bars {
    transform: rotate(90deg); /* Açılırken dönme */
}
.mobile-menu-toggle.active i.fa-times {
    transform: rotate(90deg); /* Kapanırken dönme */
}

/* Hero Section */
.hero {
    background: var(--Elewon-gradient-1); /* Ana gradyan */
    color: var(--text-color-light);
    padding: 120px 0; /* Daha fazla boşluk */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 70vh; /* Minimum yükseklik */
}

/* Arka plan efektleri (şekiller) */
.hero-shapes div {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: radial-gradient(circle, var(--Elewon-accent-pink) 0%, transparent 70%);
    animation: pulse 10s infinite ease-in-out alternate;
}

.hero-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.hero-shapes .shape-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -150px;
    animation-delay: 2s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.15; }
}


.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 350px;
    padding-right: 50px;
}

.hero-content h2 {
    font-size: 4.5rem; /* Daha büyük başlık */
    margin-bottom: 30px;
    line-height: 1.1;
    text-align: left;
    color: var(--text-color-light);
    letter-spacing: -1px;
}
.hero-content h2::after {
    background: var(--Elewon-accent-pink); /* Vurgu rengi */
    left: 0;
    transform: none;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-image {
    flex: 1;
    min-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-heavy);
    max-height: 500px;
    border: 6px solid rgba(255,255,255,0.15); /* Hafif çerçeve */
}

.cta-buttons {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

/* Section Padding */
.section-padded {
    padding: 100px 0; /* Daha fazla boşluk */
}

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

/* Project Categories */
.project-categories {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.project-categories .btn {
    background-color: var(--bg-light);
    color: var(--Elewon-dark-purple);
    border: 2px solid var(--Elewon-dark-purple);
    padding: 10px 25px;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    box-shadow: none;
    transition: all 0.3s ease;
}
.project-categories .btn:hover {
    background-color: var(--Elewon-medium-purple);
    color: var(--text-color-light);
    box-shadow: var(--shadow-light);
    transform: translateY(-3px);
}
.project-categories .btn.active {
    background: var(--Elewon-gradient-1);
    color: var(--text-color-light);
    border-color: transparent;
    box-shadow: var(--shadow-medium);
}
.project-categories .btn.active:hover {
    background-position: right center;
}


/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px); /* Daha belirgin kalkma */
    box-shadow: var(--shadow-heavy);
}

.project-card img {
    width: 100%;
    height: 220px; /* Sabit yükseklik */
    object-fit: cover; /* Görselin oranını koru */
    border-bottom: 1px solid #eee;
}

.project-card .card-content {
    padding: 25px;
    flex-grow: 1; /* İçeriğin kartın kalanını doldurmasını sağlar */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--Elewon-dark-purple);
}

.project-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 5px solid transparent; /* Varsayılan şeffaf kenarlık */
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-bottom: 5px solid var(--Elewon-medium-purple); /* Hover'da belirgin kenarlık */
}

.service-item i {
    font-size: 3.5rem;
    color: var(--Elewon-light-purple);
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--Elewon-dark-purple);
}

.service-item p {
    font-size: 0.95rem;
    color: #555;
}


/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.about-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    width: 350px; /* Biraz daha büyük görsel */
    height: 350px;
    object-fit: cover;
    border: 5px solid var(--Elewon-medium-purple);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #444;
}

.core-values { /* Yeni sınıf */
    margin-top: 30px;
}

.core-values h4 {
    font-size: 1.4rem;
    color: var(--Elewon-dark-purple);
    margin-bottom: 15px;
}

.core-values ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.core-values li {
    background-color: var(--Elewon-light-purple);
    color: var(--text-color-light);
    padding: 8px 15px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.core-values li:hover {
    transform: translateY(-3px);
    background-color: var(--Elewon-accent-pink);
}

.core-values li i {
    margin-right: 8px;
    font-size: 1rem;
}


/* Contact Section */
.contact-github-discussion {
    text-align: center;
    margin-top: 40px;
}

.contact-github-discussion .btn {
    font-size: 1.1rem; /* Slightly larger button for primary action */
    padding: 18px 35px;
    margin-bottom: 20px; /* Space between button and note */
}

.github-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 15px; /* Space between button and note */
}

.github-note a {
    font-weight: 600;
    color: var(--Elewon-medium-purple); /* Ensure email link is styled */
}


/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-color-light);
    padding: 50px 0;
    text-align: center;
    border-top: 5px solid var(--Elewon-medium-purple); /* Üste mor çizgi */
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.social-links a {
    color: var(--text-color-light);
    font-size: 2rem; /* Daha büyük sosyal ikonlar */
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--Elewon-accent-pink);
    transform: translateY(-5px) scale(1.1); /* Yukarı kalkıp biraz büyüme */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight { /* Yeni eklenen sağdan kayma animasyonu */
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0; /* Başlangıçta gizle */
}
.animate-fade-in.delay-05s { animation-delay: 0.5s; }
.animate-fade-in.delay-1s { animation-delay: 1s; }
.animate-fade-in.delay-2s { animation-delay: 2s; }

.animate-slide-in {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
}
.animate-slide-in-left { /* Hakkımda görseli için */
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
}
.animate-slide-in-right { /* Hakkımızda görseli için yeni animasyon */
    animation: slideInRight 1s ease-out forwards;
    opacity: 0;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
    opacity: 0;
}


/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 60px;
    }

    .hero-content h2 {
        text-align: center;
        font-size: 3.5rem;
    }
    .hero-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image {
        margin-top: 40px;
    }
    .hero-image img {
        max-height: 400px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    .about-image {
        order: -1; /* Görseli üste al */
    }

    h2 {
        font-size: 2.8rem;
    }
    h3 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    header .main-nav { /* Sadece .main-nav'i gizle/göster */
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px; /* Header yüksekliğine göre ayarla */
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        box-shadow: var(--shadow-medium);
        padding: 20px 0;
        transition: all 0.3s ease-in-out; /* Açılırken ve kapanırken geçiş */
        transform: translateY(-100%); /* Başlangıçta ekran dışı */
        opacity: 0;
    }
    header .main-nav.active {
        display: flex;
        transform: translateY(0); /* Ekrana getir */
        opacity: 1;
    }
    header .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    header .main-nav ul li {
        margin: 15px 0;
    }
    header .main-nav ul li a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    header .main-nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu-toggle {
        display: block; /* Mobil cihazlarda göster */
    }
    /* Hamburger ikonunu çarpı ikonuna çevirme */
    .mobile-menu-toggle.active .fa-bars:before {
        content: "\f00d"; /* fa-times ikonu */
    }


    .hero {
        padding: 80px 0;
    }
    .hero-content h2 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-padded {
        padding: 60px 0;
    }

    .project-grid, .service-grid {
        grid-template-columns: 1fr; /* Tek sütun */
    }

    .core-values ul {
        justify-content: center; /* Ortala */
    }

    footer .container {
        flex-direction: column;
        gap: 25px;
    }
    .social-links {
        margin-top: 20px;
    }

    /* Contact Section Specific on mobile */
    .contact-github-discussion .btn {
        max-width: 100%; /* Ensure button fills width on mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h2 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .project-card .card-content {
        padding: 20px;
    }
    .project-card h4 {
        font-size: 1.4rem;
    }
    .about-image img {
        width: 250px;
        height: 250px;
    }
    .core-values li {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    /* No direct contact form inputs anymore, so no need for their mobile styles */
}

/* Proje Kartlarının gizlenmesi/gösterilmesi için */
.project-card.hidden {
    display: none;
}
