@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Great+Vibes&family=Permanent+Marker&family=Caveat:wght@700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'Montserrat', sans-serif;
    color: #000;
}

main {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    padding: 40px;
    box-sizing: border-box;
}

.year, .works {
    position: absolute;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}

.year {
    top: 40px;
    left: 40px;
}

.works {
    position: absolute;
    top: 40px;
    right: 40px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 100;
}

.works:hover {
    color: #6B46C1;
}

.portfolio-container {
    position: absolute;
    top: 8%;
    left: 20%;
    transform: rotate(-15deg);
    z-index: 2;
    width: 320px;
    height: 150px;
}

.circle-svg {
    position: absolute;
    width: 110%;
    height: 200%;
    top: -40px;
    left: -30px;
    transform: scale(1.1);
}

.circle-path, .arrow-path {
    fill: none;
    stroke: #6B46C1;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: draw 4s cubic-bezier(0.6, 0.2, 0.4, 1) forwards;
    animation-delay: 0.2s;
    filter: url(#roughness);
}

.circle-path {
    fill: none;
    stroke: #6B46C1;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: draw 2s cubic-bezier(0.6, 0.2, 0.4, 1) forwards;
    animation-delay: 1.5s;
    filter: url(#roughness);
}

.arrow-path {
    animation: draw 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    animation-delay: 2.5s;
    stroke-width: 2.5;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.portfolio-text {
    font-family: 'Satisfy', cursive;
    font-size: 95px;
    color: #000;
    position: relative;
    text-align: center;
    letter-spacing: 2px;
    text-transform: lowercase;
    font-weight: 400;
    opacity: 0;
    animation: fadeInLetters 2s forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInLetters {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInChar {
    from {
        opacity: 0;
        transform: rotate(5deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

.portfolio-text span {
    transition: all 0.3s ease;
}

.name {
    position: absolute;
    font-size: 120px;
    font-weight: 800;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 2px;
    line-height: 1;
    text-align: center;
    width: 100%;
}

.description {
    position: absolute;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    max-width: 500px;
    left: 50%;
    top: 65%;
    transform: translateX(-50%);
    line-height: 1.6;
}

.title {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}

canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    pointer-events: none;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .name {
        font-size: 100px;
    }
    
    .portfolio-container {
        transform: scale(0.9) rotate(-15deg);
        top: 10%;
        left: 15%;
    }
    
    .description {
        max-width: 80%;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 20px;
    }

    .year, .works {
        font-size: 14px;
    }

    .portfolio-container {
        transform: scale(0.7) rotate(-15deg);
        top: 12%;
        left: 10%;
    }
    
    .portfolio-text {
        font-size: 70px;
    }
    
    .description {
        max-width: 90%;
        font-size: 14px;
        top: 70%;
    }
    
    .title {
        font-size: 16px;
        bottom: 40px;
    }

    .contact-panel {
        padding: 20px;
        width: 100%;
    }
    
    .contact-header h2 {
        font-size: 20px;
    }
    
    .contact-header p {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 15px;
    }

    .year, .works {
        font-size: 12px;
    }

    .portfolio-container {
        transform: scale(0.5) rotate(-15deg);
        top: 15%;
        left: 0;
        margin-top: 50px;
    }
    
    .portfolio-text {
        font-size: 80px;
    }
    .description {
        font-size: 12px;
        top: 75%;
        line-height: 1.4;
    }
    
    .title {
        font-size: 14px;
        bottom: 30px;
    }

    .contact-trigger {
        right: -35px;
        margin-top: 30px;
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Works Sayfası Responsive */
@media (max-width: 1200px) {
    .project-section {
        padding: 60px 40px;
    }

    .project-info h2 {
        font-size: 28px;
    }

    .project-info p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 40px 20px;
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        margin-bottom: 30px;
    }

    .project-info {
        width: 100%;
        padding-left: 0;
    }

    .project-info h2 {
        font-size: 24px;
    }

    .project-info p {
        font-size: 14px;
    }

    .project-meta {
        font-size: 12px;
    }

    .back-button {
        top: 20px;
        left: 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .project-section {
        padding: 30px 15px;
    }

    .project-info h2 {
        font-size: 20px;
    }

    .project-info p {
        font-size: 13px;
        line-height: 1.4;
    }

    .project-meta {
        font-size: 11px;
    }

    .back-button {
        font-size: 12px;
    }
}

/* Sayfa Geçiş Animasyonu */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

/* Contact Panel Styles */
.contact-trigger {
    position: fixed;
    right: -45px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    background: #000;
    color: #fff;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 2px;
    width: 120px;
    text-align: center;
}

.contact-trigger:hover {
    right: -40px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.contact-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.5s ease;
    padding: 40px;
    box-sizing: border-box;
}

.contact-panel.active {
    right: 0;
}

.contact-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.contact-close::before,
.contact-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #000;
    top: 50%;
    left: 0;
}

.contact-close::before {
    transform: rotate(45deg);
}

.contact-close::after {
    transform: rotate(-45deg);
}

.contact-header {
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 16px;
    color: #666;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}
@media (max-width: 768px) {
    .contact-panel {
        padding: 20px;
    }
    
    .contact-header h2 {
        font-size: 20px;
    }
    
    .contact-header p {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 10px;
    }
}
