:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-color: #00ff88;
    --secondary-color: #7000ff;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 2rem 1rem;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Showreel / Featured Project */
.showreel-container {
    margin-top: 3rem;
    width: 100%;
    max-width: 800px;
    perspective: 1000px;
    /* 3D derinlik için */
}

.showreel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    /* 3D efekt için */
    cursor: pointer;
}

#hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient'i daha belirgin ve yukarı doğru genişlettim */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    /* Kenar boşluğunu artırdım */
    z-index: 2;
    pointer-events: none;
}

.hero-text-content {
    transform: translateZ(30px);
    /* Derinlik etkisini artırdım */
}

.hero-text-content .featured-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 1.2rem;
    /* Butonu biraz büyüttüm */
    border-radius: 50px;
    font-size: 1rem;
    /* Fontu büyüttüm */
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    /* Hafif bir parlama ekledim */
}

.hero-text-content h3 {
    font-size: 3.5rem;
    /* Başlığı ciddi oranda büyüttüm (2.5 -> 3.5) */
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    /* Gölgeyi güçlendirdim */
    line-height: 1.1;
}

.hero-tags {
    display: flex;
    gap: 0.8rem;
}

.hero-tags .tag {
    background: rgba(255, 255, 255, 0.15);
    /* Biraz daha görünür yaptım */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    font-size: 1rem;
    /* Etiketleri büyüttüm */
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 500;
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.btn-outline-glow {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-glow:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    transform: translateY(-3px);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Page Header (for Games Page) */
.page-header {
    padding: 8rem 5% 2rem 5%;
    text-align: center;
}

/* Sections General */
section {
    padding: 5rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: #000;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.5);
    z-index: 0;
    transform: scale(1.2);
}

.card-image img {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: var(--transition);
}

.card-image.portrait img {
    object-fit: contain;
}

.card-image.landscape img {
    object-fit: cover;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.project-card:hover .overlay {
    opacity: 1;
}

.play-btn {
    color: #fff;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
}

.play-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.card-content {
    padding: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* About Section */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

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

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    margin-top: 5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: modalOpen 0.4s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.modal-video-container img,
.modal-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.video-play-icon:hover {
    color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.media-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.media-nav-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.media-nav-prev {
    left: 20px;
}

.media-nav-next {
    right: 20px;
}

.modal-gallery {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #0a0a0a;
    overflow-x: auto;
}

.gallery-item {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    border: 2px solid transparent;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #fff;
}

.modal-info {
    padding: 2rem;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.modal-actions {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    margin-top: 5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: modalOpen 0.4s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.modal-video-container img,
.modal-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.video-play-icon:hover {
    color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.media-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.media-nav-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.media-nav-prev {
    left: 20px;
}

.media-nav-next {
    right: 20px;
}

.modal-gallery {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #0a0a0a;
    overflow-x: auto;
}

.gallery-item {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    border: 2px solid transparent;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #fff;
}

.modal-info {
    padding: 2rem;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        background: rgba(5, 5, 5, 0.95);
        /* Mobilde arka planı daha koyu yap */
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Başlangıçta ekran dışında */
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        /* Açılınca ekrana gelsin */
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .hamburger.active i::before {
        content: "\f00d";
        /* FontAwesome 'X' ikonu */
    }

    .hero {
        padding-top: 8rem;
        /* Navbar altında kalmasın */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-text-content h3 {
        font-size: 2rem;
        /* Mobilde başlığı küçült */
    }

    .hero-text-content .featured-label {
        font-size: 0.8rem;
    }

    .hero-card-overlay {
        padding: 1.5rem;
        /* Mobilde padding'i azalt */
    }

    .stats {
        gap: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        /* Mobilde modalı biraz daha aşağı al */
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}