* {
    font-family: "Google Sans Code", monospace;
    margin: 0;
    font-weight: 500;
}

html {
  scroll-behavior: smooth;
}

a {
    text-decoration: none;  
    color: #DDE6ED;
}

body {
    background-color: #DDE6ED;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3vh 10vw;
    background-color: #27374D;
    border-bottom: 0.5vh solid #9DB2BF;
}

header h1 {
    color: #9DB2BF;
    font-size: 3vh;
}

header ul a li {
    color: #9DB2BF;
    list-style: none;
    display: inline-block;
    margin-left: 3vh;
    font-size: 2vh;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

header ul a li:hover {
    color: #526D82;
    transform: translateY(-0.7vh);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header ul a li::after {
    content: "";
    display: block;
    height: 0.3vh;
    width: 0;
    background: #526D82;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -1vh;
    left: 0;
}

header ul a li:hover::after {
    width: 100%;
}

/* Main Intro */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.intro-container {
    display: flex;
    align-items: center;
    gap: 5vh;
    flex-wrap: wrap;
}

.profile-img {
    border-radius: 50%;
    width: 25vh;
    height: 25vh;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.intro-text h1 {
    font-size: 4vh;
    color: #27374D;
    margin-bottom: 2vh;
}

.intro-text p {
    font-size: 2vh;
    color: #526D82;
    margin-bottom: 3vh;
    max-width: 50ch;
}

.cta-button {
    padding: 1vh 3vh;
    font-size: 2vh;
    color: #DDE6ED;
    background-color: #27374D;
    border: none;
    border-radius: 1vh;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #526D82;
    transform: translateY(-0.3vh);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* About Section */
.about-section {
    display: block; /* artık açık */
    background-color: #f1f5f9;
    padding: 15vh 10vw;
    text-align: center;
    margin: 5vh auto;
    max-width: 90%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.about-section h2 {
    font-size: 3.5vh;
    color: #27374D;
    margin-bottom: 2.5vh;
}

.about-section p {
    font-size: 1.9vh;
    color: #526D82;
    max-width: 70ch;
    margin: 1.5vh auto;
}

/* Projects Section */
.projects-section {
    background-color: #DDE6ED;
    padding: 10vh 5vw;
    text-align: center;
}

.projects-section h2 {
    font-size: 3.8vh;
    color: #27374D;
    margin-bottom: 5vh;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 5vw;
    flex-wrap: wrap;
}

.project-card {
    background-color: #fff;
    padding: 4vh 2vw;
    border-radius: 2vh;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 25vw;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-1vh);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.project-card h3 {
    font-size: 2.3vh;
    color: #27374D;
    margin-bottom: 1.5vh;
}

.project-card p {
    font-size: 1.7vh;
    color: #526D82;
}

/* Footer */
footer {
    background-color: #27374D;
    color: #DDE6ED;
    padding: 8vh 10vw 5vh 10vw;
}

.footer-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 4vw;
}

.footer-column {
    margin-bottom: 3vh;
}

.footer-column h3 {
    font-size: 2vh;
    margin-bottom: 1.5vh;
    letter-spacing: 0.05em;
}

.footer-column p, .footer-column a {
    font-size: 1.5vh;
    margin: 0.5vh 0;
    display: block;
    color: #DDE6ED;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #526D82;
}

/* Sosyal medya linkleri yan yana */
.social-links {
    display: flex;
    gap: 2vw;
    margin-top: 1vh;
}

.social-links a {
    font-size: 1.5vh;
    text-decoration: none;
    padding: 0.5vh 1vh;
    border-radius: 0.5vh;
    background-color: #3a4a63;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #526D82;
    color: #fff;
    transform: translateY(-0.2vh);
}

.footer-bottom {
    margin-top: 4vh;
    text-align: center;
    font-size: 1.3vh;
    border-top: 0.1vh solid #9DB2BF;
    padding-top: 2vh;
    color: #DDE6ED;
}

.hamburger-menu {
    display: none; /* Varsayılan olarak gizli */
    background: none;
    border: none;
    cursor: pointer;
    padding: 1vh;
    z-index: 1000; /* Menünün üstünde kalmasını sağlar */
}

.icon-bar {
    display: block;
    width: 3vh;
    height: 0.3vh;
    background-color: #9DB2BF;
    margin: 0.6vh 0;
    transition: all 0.3s ease;
}



/* Tablet ve mobil için tüm responsive ayarlamalar */

@media (max-width: 1500px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
        gap: 3vh;
    }

    .project-card {
        max-width: 70%;
    }

    header ul {
        display: none; /* Varsayılan olarak menü gizli */
        flex-direction: column;
        position: absolute;
        /* Sağ Üst Köşeye Hizala */
        top: 8.5vh; 
        right: 10vw; /* Header'daki padding ile hizalı */
        
        /* Menü boyutunu küçült */
        width: 25vh; /* Sabit küçük genişlik */
        min-width: 150px;
        
        background-color: #27374D;
        border: 0.1vh solid #526D82; /* Kenarlık ekle */
        border-radius: 0.5vh;
        padding: 1vh 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        
        /* Geçiş efekti ekleyelim */
        transform: scale(0.9);
        opacity: 0;
        transform-origin: top right;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }
    
    /* JavaScript ile .active sınıfı eklenince menüyü göster */
    header ul.active {
        display: flex;
        transform: scale(1);
        opacity: 1;
    }

    header ul a li {
        width: auto;
        text-align: left; /* Yazıları sola hizala */
        margin: 0; /* Boşlukları sıfırla */
        padding: 1.2vh 3vh; /* Yeni iç boşluklar */
        border-bottom: none; 
    }

    
    /* Yeni menüde alttaki çizgiyi kaldırıyoruz */
    header ul a li::after {
        display: none;
    }

    .hamburger-menu {
        display: block; /* Hamburger butonunu göster */
    }
    
    /* Hamburger ikonunun X şekline dönüşme animasyonu */
    .hamburger-menu.open .icon-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-0.7vh, 0.7vh);
    }

    .hamburger-menu.open .icon-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.open .icon-bar:nth-child(3) {
        transform: rotate(45deg) translate(-0.7vh, -0.7vh);
    }
}

@media (max-width: 1024px) {
    /* Header */
    header {
        flex-wrap: wrap;
        padding: 3vh 5vw;
    }

    header h1 {
        font-size: 3vh;
        margin-bottom: 1vh;
    }

    header ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3vh;
    }

    header ul a li {
        padding: 0.5vh 0.7vh;
    }

    /* Main Intro */
    .intro-container {
        flex-direction: column;
        text-align: center;
        gap: 3vh;
    }

    .profile-img {
        width: 20vh;
        height: 20vh;
    }

    .intro-text h1 {
        font-size: 3vh;
    }

    .intro-text p {
        font-size: 1.6vh;
        max-width: 80ch;
    }

    .cta-button {
        font-size: 1.8vh;
        padding: 1vh 2vh;
    }

    /* About Section */
    .about-section {
        padding: 10vh 5vw;
    }

    .about-section h2 {
        font-size: 3vh;
    }

    .about-section p {
        font-size: 1.6vh;
        max-width: 90%;
    }

    /* Projects Section */
    .projects-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4vw;
    }

    .project-card {
        max-width: 45%;
        margin-bottom: 3vh;
        padding: 3vh 3vw;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3vh;
    }

    .footer-column h3 {
        font-size: 2vh;
    }

    .footer-column p, .footer-column a {
        font-size: 1.4vh;
    }

    .social-links a {
        font-size: 1.4vh;
        padding: 0.5vh 1vh;
    }
}

@media (max-width: 768px) {
    .intro-text h1 {
        font-size: 2.8vh;
    }

    .intro-text p {
        font-size: 1.5vh;
    }

    header ul a li {
        font-size: 1.7vh;
    }

    .project-card {
        max-width: 70%;
    }

    .profile-img {
        width: 18vh;
        height: 18vh;
    }

    .cta-button {
        padding: 0.8vh 2vh;
        font-size: 1.5vh;
    }
}

@media (max-width: 480px) {
    .intro-container {
        gap: 2vh;
    }

    header ul a li {
        margin-left: 1.5vh;
        font-size: 1.5vh;
    }

    .project-card {
        max-width: 90%;
    }

    .profile-img {
        width: 16vh;
        height: 16vh;
    }

    .intro-text h1 {
        font-size: 2.5vh;
    }

    .intro-text p {
        font-size: 1.4vh;
    }

    .cta-button {
        font-size: 1.3vh;
        padding: 0.6vh 1.5vh;
    }
}
