:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --text-color: #2d3436;
    --light-text: #636e72;
    --background: #ffffff;
    --section-bg: #f5f6fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 2rem;
    font-weight: 700;
    z-index: 1001;
}

.logo-text {
    color: #333;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-dot {
    color: #007bff;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.navbar-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-link:hover,
.navbar-link.active {
    color: #007bff;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(45deg, #0984e3, #00cec9);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI3NjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMCAwaDE0NDB2NzYwSDB6Ii8+PHBhdGggZD0iTTAgMGgxNDQwdjc2MEgweiIvPjxwYXRoIGQ9Ik0xMjkuOTM3IDY1Mi4yODZjNDYuNjQyIDQ2LjY0MyAxMjIuMTg4IDQ2LjY0MyAxNjguODMgMCA0Ni42NDMtNDYuNjQyIDQ2LjY0My0xMjIuMTg4IDAtMTY4LjgzLTQ2LjY0Mi00Ni42NDMtMTIyLjE4OC00Ni42NDMtMTY4LjgzIDAtNDYuNjQzIDQ2LjY0Mi00Ni42NDMgMTIyLjE4OCAwIDE2OC44M3oiIGZpbGw9IiMwOTg0ZTMiIGZpbGwtb3BhY2l0eT0iLjEiLz48cGF0aCBkPSJNNDI5LjkzNyA3NTIuMjg2YzQ2LjY0MiA0Ni42NDMgMTIyLjE4OCA0Ni42NDMgMTY4LjgzIDAgNDYuNjQzLTQ2LjY0MiA0Ni42NDMtMTIyLjE4OCAwLTE2OC44My00Ni42NDItNDYuNjQzLTEyMi4xODgtNDYuNjQzLTE2OC44MyAwLTQ2LjY0MyA0Ni42NDItNDYuNjQzIDEyMi4xODggMCAxNjguODN6IiBmaWxsPSIjMDBjZWM5IiBmaWxsLW9wYWNpdHk9Ii4xIi8+PC9nPjwvc3ZnPg==');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.highlight {
    color: #2c2b2b;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn.primary {
    background: white;
    color: var(--primary-color);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--section-bg);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat p {
    color: var(--light-text);
}

/* Skills Section */
.skills {
    padding: 100px 0;
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 40px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--light-text);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--section-bg);
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.portfolio-overlay p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.portfolio-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
}

.portfolio-overlay .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(15px);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--light-text);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-link {
        font-size: 1.2rem;
        opacity: 0;
        transform: translateX(20px);
    }

    .navbar-menu.active .navbar-link {
        opacity: 1;
        transform: translateX(0);
        transition: all 0.4s ease;
    }

    .navbar-menu.active .navbar-link:nth-child(1) { transition-delay: 0.1s; }
    .navbar-menu.active .navbar-link:nth-child(2) { transition-delay: 0.2s; }
    .navbar-menu.active .navbar-link:nth-child(3) { transition-delay: 0.3s; }
    .navbar-menu.active .navbar-link:nth-child(4) { transition-delay: 0.4s; }
    .navbar-menu.active .navbar-link:nth-child(5) { transition-delay: 0.5s; }

    .navbar-toggle {
        display: block;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Menü açıkken scroll'u engelle */
    body.menu-open {
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Mobil görünümde her proje arasında eşit boşluk */
    .portfolio-item {
        margin-bottom: 2rem;
    }
}

/* Project Detail Styles */
.project-detail {
    padding: 120px 0 80px;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--light-text);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.project-gallery {
    margin-bottom: 2rem;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.main-image img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.main-image img.fade-in {
    opacity: 1;
    transform: scale(1);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.thumbnail-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

.thumbnail-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail-grid img.active {
    border-color: #0984e3;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.3);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: all 0.3s ease;
    transform: scale(1);
}

.lightbox-close:hover {
    color: #0984e3;
    transform: scale(1.1) rotate(90deg);
}

.project-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-section {
    margin-bottom: 30px;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-section p {
    color: var(--light-text);
    line-height: 1.8;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    color: var(--light-text);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-section ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .project-content {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

#three-container {
    position: fixed;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

/* Cursor efekti */
.cursor-dot, .cursor-dot-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #0984e3;
}

.cursor-dot-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(9, 132, 227, 0.1);
    border: 2px solid #0984e3;
}

/* Ekip Üyeleri Stili */
.team-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.3);
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-member .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-member .social-links a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Ana Sayfa Ekip Bölümü */
.team {
    padding: 100px 0;
    background: var(--section-bg);
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.team .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team .team-member {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team .team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0984e3, #00cec9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.team .team-member:hover {
    transform: translateY(-10px);
}

.team .team-member:hover::before {
    transform: scaleX(1);
}

.team .team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #f5f6fa;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team .team-member:hover img {
    transform: scale(1.05);
    border-color: #0984e3;
}

.team .team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.team .team-member p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.team .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.team .social-links a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .team .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .team .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team .team-member {
        max-width: 350px;
        margin: 0 auto;
    }
}
