/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    /* height: 100%; - Removed to allow scrolling in SPA */
    font-family: 'Satoshi', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    color: #000;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    width: 100%;
    /* min-height: 100vh; */
    overscroll-behavior-x: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Aligns content to the top */
    padding-top: 5%;
    /* Adds the requested spacing from the top (using 5% to look slightly better than 2% but keeping the concept) */
    background-color: #ffffff;
    overflow: hidden;
}

#backgroundCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

/* Logo Split Animation Styles */
.logo {
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;

    font-size: 8vw;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #000;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

.logo-text,
.logo-suffix {
    display: inline-block;
    transition: transform 0.1s ease-out;
    /* Smooth direct mapping to scroll */
    will-change: transform;
}

/* Menu Button - Hidden per user request */
.menu-btn {
    display: none;
    /* Gizlendi */
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 100;
    cursor: pointer;
    width: 40px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: #000;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease;
    /* For fade out effect */
}

.scroll-down span {
    display: block;
    margin-top: 10px;
    width: 20px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 12px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-down span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #000;
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

.bar {
    width: 100%;
    height: 4px;
    background-color: #000;
    transition: transform 0.3s ease;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-overlay.active {
    transform: translateX(0);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 201;
}

.line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 4px;
    background-color: #fff;
    transform-origin: center;
}

.line1 {
    transform: translate(-50%, -50%) rotate(45deg);
}

.line2 {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Menu Items */
.menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.menu-items a {
    color: #fff;
    text-decoration: none;
    font-size: 3rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.active .menu-items a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.menu-overlay.active .menu-items a:nth-child(1) {
    transition-delay: 0.4s;
}

.menu-overlay.active .menu-items a:nth-child(2) {
    transition-delay: 0.5s;
}

.menu-overlay.active .menu-items a:nth-child(3) {
    transition-delay: 0.6s;
}

.menu-overlay.active .menu-items a:nth-child(4) {
    transition-delay: 0.7s;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.menu-items a:hover {
    color: #aaa;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

/* Page Content Styles - Sections */
.section {
    min-height: 100vh;
    /* Full viewport height for each section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;

    /* Reveal Animation Base State */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Component Styles */
.page-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.content-text {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 1000px;
    /* Widened from 800px */
    color: #333;
    margin-bottom: 30px;
}

.about-text {
    max-width: 1100px;
    /* Even wider for About section specifically */
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #000;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-image {
    filter: grayscale(0%);
}

.project-image {
    width: 100%;
    height: 250px;
    background-color: #ddd;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 1rem;
    color: #666;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.btn-submit {
    padding: 15px 30px;
    background-color: #000;
    color: #fff;
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 12vw;
    }
}

/* Floating Image Styles */
#floatingImage {
    /* Position relative to flow with text */
    position: relative;
    /* Remove absolute centering */
    top: auto;
    left: auto;
    transform: none;
    z-index: 5;
    width: 150px;
    /* Slightly smaller to fit nicely above */
    max-width: 40vw;
    margin-bottom: 10px;
    /* Space between image and text */
    pointer-events: none;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    will-change: transform, opacity;
}

/* Visual Footer Styles */
.visual-footer {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding: 0;
    line-height: 0;
}

.visual-footer-img {
    width: 100%;
    height: auto;
    display: block;
}

.visual-footer-content {
    position: absolute;
    bottom: 20px;
    /* Alttan mesafe, görselin sisli yerine gelecek şekilde */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.visual-footer-content p {
    color: #333;
    /* Resimdeki gibi koyu renk */
    font-size: 0.9rem;
    font-weight: 500;
    /* İnce/Orta kalınlık */
    margin: 0;
    line-height: normal;
}