/* ===== GENEL STILLER ===== */
:root {
    /* Ana Renkler */
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    
    /* Yazı Tipleri */
    --font-family: 'Poppins', sans-serif;
    
    /* Geçiş Süreleri */
    --transition: all 0.3s ease;
    
    /* Gölgeler */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    /* Kenar Yuvarlaklığı */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-container {
    width: 100%;
}

.projects-container {
    background-color: var(--light-gray);
}

.contact-container {
    background-color: var(--background-color);
}

.resume-container {
    background-color: var(--light-gray);
}

.footer-container {
    background-color: #2d3748;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a5bd9;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.highlight {
    color: var(--primary-color);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-social {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--light-gray);
    border-radius: 50%;
    transition: var(--transition);
}

.header-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.header-social a i {
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.header-social a:hover i {
    color: white;
}

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.fa-sun {
    color: #f9d71c;
    display: none;
}

.fa-moon {
    color: #2c3e50;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* ===== HOME SECTION ===== */
.home {
    padding-top: 160px;
    padding-bottom: 100px;
    background-color: var(--light-gray);
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-text {
    flex: 1;
}

.home-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.home-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.home-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.home-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--background-color);
    box-shadow: var(--box-shadow);
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.skills h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-list li {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}

.skill-list li span {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.skill-list li span .skill-name {
    font-weight: 500;
}

.skill-list li span .skill-level {
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.skill-list li span:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.skill-list li span:hover .skill-level {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.social-links h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--light-gray);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-icons a i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-icons a:hover i {
    color: white;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 5px 10px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-sm);
    color: var(--dark-gray);
}

.project-links {
    display: flex;
    gap: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--background-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.error-message {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* ===== RESUME SECTION ===== */
.resume {
    background-color: var(--light-gray);
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.resume-download {
    text-align: center;
    margin-bottom: 30px;
}

.resume-download p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.resume-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.resume-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.resume-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 2px solid var(--primary-color);
    position: relative;
}

.resume-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: -7px;
    top: 5px;
}

.resume-item h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.resume-item h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.resume-item p {
    margin-bottom: 10px;
}

.resume-item ul {
    margin-top: 15px;
}

.resume-item ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.resume-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #cbd5e0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-social a i {
    font-size: 1.1rem;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #cbd5e0;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #3a5bd9;
    transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .home-text h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .home-image img {
        width: 300px;
        height: 300px;
        margin-bottom: 30px;
    }
    
    .about-content, 
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .home-text h1 {
        font-size: 2.2rem;
    }
    
    .home-text h2 {
        font-size: 1.3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .home-text h1 {
        font-size: 1.8rem;
    }
    
    .home-text h2 {
        font-size: 1.1rem;
    }
    
    .home-text p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .home-image img {
        width: 250px;
        height: 250px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-text h3,
    .skills h3,
    .social-links h3,
    .contact-info h3,
    .resume-section h3 {
        font-size: 1.5rem;
    }
    
    .resume-item h4 {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
} 