html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --text-color: #2d3436;
    --background-color: #ffffff;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('banner.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #0873c4;
}

/* About Section */
.about {
    padding: var(--section-padding);
    scroll-margin-top: 100px;
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-content img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(9, 132, 227, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.about-content img:hover {
    transform: scale(1.02);
}

.skills {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    padding: 8px 15px;
    background: #f1f2f6;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: #f8f9fa;
    scroll-margin-top: 100px;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.4s;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
    text-decoration: none;
}

/* Intersection Observer için stil */
.portfolio-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Animasyonlar */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobil Menü */
.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    header .container {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: white;
        padding: 80px 20px;
        transition: 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }

    /* Hero Section */
    .hero {
        height: 90vh;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    /* About Section */
    .about {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .about-content img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .skills {
        justify-content: center;
    }

    /* Portfolio Section */
    .portfolio {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .portfolio-item {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .portfolio-item:active {
        transform: scale(0.98);
    }

    .portfolio-info {
        position: static;
        transform: none;
        padding: 20px;
        border-top: 1px solid #eee;
    }

    .portfolio-item:hover .portfolio-info {
        transform: none;
    }

    .project-link {
        display: block;
        text-align: center;
        padding: 12px;
        margin-top: 15px;
        background: var(--secondary-color);
        color: white;
        border-radius: 5px;
        transition: background 0.3s;
    }

    .project-link:hover {
        background: #0873c4;
    }

    /* Contact Section */
    .contact {
        padding: 60px 0;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

/* Küçük Ekranlar */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .about h2, .portfolio h2, .contact h2 {
        font-size: 1.8rem;
    }

    .about-content img {
        width: 180px;
        height: 180px;
    }

    .portfolio-info h3 {
        font-size: 1.2rem;
    }

    .contact-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 20px 0;
}

footer .container {
    text-align: center;
} 