﻿/* Homepage CSS - Clean Version (Header/Footer removed for layout.css) */

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,1000 1000,0"/></svg>');
        background-size: cover;
    }

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    min-height: 1.5em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--primary-color); /* Dark background */
    color: var(--text-light); /* White text */
}

    .about .section-title {
        color: white; /* White title */
    }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--accent-color);
        border-radius: 2px;
    }

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    text-align: center;
    position: sticky;
    top: 120px;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

    .profile-img:hover {
        transform: scale(1.05);
    }

.about-content {
    padding-top: 0;
}

    .about-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        margin-top: 2rem;
        color: white; /* White headings */
    }

        .about-content h3:first-child {
            margin-top: 0;
        }

    .about-content p {
        margin-bottom: 1.5rem;
        color: rgba(255,255,255,0.9); /* Light white text for paragraphs */
        font-size: 1.1rem;
        line-height: 1.7;
        text-align: justify;
    }

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

    .skill-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-hover);
    }

    .skill-card i {
        font-size: 3rem;
        color: var(--accent-color);
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }

    .skill-card:hover i {
        transform: scale(1.1) rotate(5deg);
        color: var(--primary-color);
    }

    .skill-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }

    .skill-card p {
        color: #666;
        font-size: 0.9rem;
    }

/* Projects Section */
.projects {
    padding: 100px 0;
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

    .project-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-hover);
    }

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

    .project-card:hover .project-image i {
        transform: scale(1.2) rotate(10deg);
    }

.project-content {
    padding: 2rem;
}

    .project-content h4 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .project-content p {
        color: #666;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #f8f9fa; /* Açık gri arkaplan */
    color: var(--primary-color); /* Koyu metin */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Hover durumunda mavi olsun */
.project-card:hover .tech-tag {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
    border-color: var(--accent-color);
}

/* Mouse leave sonrasında tekrar açık gri olsun */
.project-card .tech-tag {
    background: #f8f9fa !important;
    color: var(--primary-color) !important;
    transform: scale(1) !important;
    border-color: rgba(0,0,0,0.1) !important;
}

/* Sadece hover sırasında mavi olsun */
.project-card:hover .tech-tag {
    background: var(--accent-color) !important;
    color: white !important;
    transform: scale(1.05) !important;
    border-color: var(--accent-color) !important;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--primary-color);
    color: var(--text-light);
}

    .contact .section-title {
        color: white;
    }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

    .contact-item:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,0.15);
        border-color: rgba(255,255,255,0.2);
    }

    .contact-item i {
        font-size: 1.5rem;
        color: var(--accent-color);
        width: 30px;
        transition: all 0.3s ease;
    }

    .contact-item:hover i {
        transform: scale(1.2);
        color: white;
    }

    .contact-item h4 {
        margin-bottom: 0.3rem;
        color: white;
    }

    .contact-item p {
        margin: 0;
        opacity: 0.9;
    }

    .contact-item a {
        color: var(--accent-color);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .contact-item a:hover {
            color: white;
            text-decoration: underline;
        }

/* Contact Form */
.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

    .contact-form h3 {
        color: white;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: white;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.8rem 1rem;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
        color: white;
        font-size: 1rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255,255,255,0.6);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent-color);
            background: rgba(255,255,255,0.15);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .submit-btn:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn.loading {
        opacity: 0.7;
        pointer-events: none;
    }

        .submit-btn.loading::after {
            content: '';
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 0.5rem;
        }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #667eea);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        position: static;
        order: -1;
    }

    .about-content {
        text-align: left;
    }

        .about-content p {
            text-align: left;
        }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Fix for hover states staying active */
@media (hover: none) {
    .skill-card:hover,
    .project-card:hover,
    .contact-item:hover {
        transform: none;
        background: initial;
    }

        .skill-card:hover i,
        .project-card:hover .project-image i,
        .contact-item:hover i {
            transform: none;
            color: initial;
        }

        .project-card:hover .tech-tag {
            background: var(--bg-light);
            color: var(--primary-color);
            transform: none;
        }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
