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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background: #111827;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.3); /* More transparent */
    backdrop-filter: blur(10px); /* Subtle blur for readability */
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #93c5fd;
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.lang-toggle {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    color: #f8fafc;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #60a5fa;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #e5e7eb;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('dummy.png') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: left; /* sola yaslı istiyorsan 'left' yap */
}





.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.hero-buttons::after {
    display: none;
}

.hero-content::after {
    display: none;
}

.hero::after {
    display: none;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #60a5fa;
    color: #111827;
}

.btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}



.profile-card {
    width: 200px;
    height: 200px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 150%;
    height: 150%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 35px 35px 10px rgba(0,0,0,0.25);
}

.profile-image i {
    font-size: 4rem;
    color: #60a5fa;
}

.scroll-indicator {
    display: none;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #f9fafb;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #60a5fa;
}

/* About Section */
.about {
    background: #1f2937;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #374151;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #9ca3af;
    font-weight: 500;
}

.about-card {
    width: 150px;
    height: 150px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.about-card i {
    font-size: 3rem;
    color: white;
}

/* Experience Section */
.experience {
    background: #111827;
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.experience-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 75px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: #4b5563;
}

.experience-date {
    color: #60a5fa;
    font-weight: 600;
    font-size: 1rem;
}

.experience-content h3 {
    color: #f9fafb;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-content p {
    color: #d1d5db;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    background: transparent;
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('dummy.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f9fafb;
    text-align: center;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: #374151;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.skill-item:hover {
    background: #4b5563;
    border-color: #60a5fa;
    box-shadow: 0 0 16px 2px #60a5fa80;
    color: #e5e7eb;
}

.skill-item:hover i {
    transform: rotate(360deg) scale(1.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item i {
    font-size: 2rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item span {
    font-weight: 500;
    color: #e5e7eb;
}

/* Projects Section */
.projects {
    background: transparent;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('dummy.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #374151;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 150px;
    background: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.project-content p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: #4b5563;
    color: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #93c5fd;
}

/* Testimonials Section */
.testimonials {
    background: #1f2937;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #374151;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-content p {
    color: #d1d5db;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.testimonial-author {
    border-top: 1px solid #4b5563;
    padding-top: 1rem;
}

.author-info h4 {
    color: #f9fafb;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    background: #111827;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.contact-info p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #374151;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-method:hover {
    background: #4b5563;
}

.contact-method i {
    color: #60a5fa;
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #374151;
    color: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* LinkedIn specific styling */
.social-link[href*="linkedin"]:hover {
    background: #0077b5;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

/* GitHub specific styling */
.social-link[href*="github"]:hover {
    background: #333;
    box-shadow: 0 10px 25px rgba(51, 51, 51, 0.3);
}

/* Instagram specific styling */
.social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}

/* Contact Form Styles */
.contact-form {
    background: #374151;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    color: #f9fafb;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #4b5563;
    border-radius: 8px;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
}



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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-end {
        margin-left: auto;
    }

    .lang-toggle {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.65rem;
    }

    .hamburger {
        display: flex;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .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);
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1f2937;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        z-index: 2000;
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 16px 0;
        font-size: 1.2rem;
        min-height: 44px;
        display: block;
    }

    /* Center hero-title and fix hero layout */
    .hero-title {
        text-align: center !important;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        padding-top: 100px;
    }
    .hero-image {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        padding-top: 50px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        background: none;
        height: auto;
        min-height: unset;
        max-height: unset;
        box-shadow: none;
    }
    .profile-card {
        width: 250px;
        height: 250px;
        margin: 0 auto;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 50%;
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1);
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50rem;
        position: relative;
        animation: float 6s ease-in-out infinite;
    }
    
    .profile-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
        border-radius: 50%;
        z-index: -1;
        animation: rotate 3s linear infinite;
    }
    
    .profile-image img {
        width: 90%;
        height: 90%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transition: transform 0.3s ease;
    }
    
    .profile-image img:hover {
        transform: scale(1.05);
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .hero-image::after {
        display: none !important;
    }
      
    .hero-content {
        order: 2;
        margin-top: 1.5rem;
        z-index: 3;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    /* Fix hero background image scaling */
    .hero {
        min-height: 100vh;
    }

    /* Skills section: smaller items, 2 per row */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skill-items {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
    .skill-item {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    .skill-item i {
        font-size: 1.3rem;
    }
    .skill-item span {
        font-size: 0.95rem;
    }

    /* Contact section: move social links below form */
    .contact-content {
        display: flex;
        flex-direction: column;
    }
    .contact-info {
        order: 1;
    }
    .contact-form {
        order: 2;
    }
    .social-links {
        order: 2;
        margin-top: 1rem;
        justify-content: center;
        display: flex !important;
        gap: 1rem;
    }
    .contact-info .social-links {
        display: none;
    }
    .contact-form + .social-links {
        display: flex !important;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 3000;
        background: rgba(17, 24, 39, 0.2); /* more transparent over image */
        box-shadow: none;
    }
    .hero {
        padding-top: 0 !important;
    }
    .hero-image {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .profile-card {
        margin-top: 0 !important;
    }
    .profile-image img {
        object-position: top center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .skill-items {
        grid-template-columns: 1fr 1fr !important;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both;
} 

/* Force skills to always be visible, override any animation */
.skill-item, .skill-item * {
    opacity: 1 !important;
    visibility: visible !important;
    color: #e5e7eb !important;
} 

.main-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: linear-gradient(rgba(17,24,39,0.7), rgba(17,24,39,0.7)), url('dummy.png') center center / cover no-repeat;
    background-attachment: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

/* Remove all background-image, background, background-attachment, etc. from .hero, .skills, .projects, and their pseudo-elements. */
.hero, .skills, .projects, .hero::before, .skills::before, .projects::before {
    background: none !important;
    background-image: none !important;
    background-attachment: initial !important;
}

@media (max-width: 900px) {
  .hero, .skills, .projects {
    position: relative;
    overflow: hidden;
  }
  .hero::before, .skills::before, .projects::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: linear-gradient(rgba(17,24,39,0.7), rgba(17,24,39,0.7)), url('dummy.png') center center / cover no-repeat;
    will-change: transform;
    pointer-events: none;
  }
} 

@media (max-width: 900px) {
  .main-bg {
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
  }
} 