/*reset css start*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #1B262C;
    --second-bg-color: #393E46;
    --text-color: #BBE1FA;
    --main-color: #3282B8;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}



@keyframes cursor {
    to{
        border-left: 2px solid var(--main-color);
    }
}


@keyframes words {
    0%,
    25% {
        content: "Elektrik-Elektronik Mühendisiyim";
    }
    26%,
    50% {
        content: "Full-Stack Developer'ım";
    }
    51%,
    75% {
        content: "AI & EdTech Çözümleri Üreticisiyim";
    }
    76%,
    100% {
        content: "Indie Hacker'ım";
    }
}

@keyframes typing {
    0%, 5%, 25%, 30%, 50%, 55%, 75%, 80% {
        width: calc(100% + 8px);
    }
    13%, 22%, 38%, 47%, 63%, 72%, 88%, 97% {
        width: 0;
    }
}

span {
    color: var(--main-color);
    animation: textGlow 2s infinite alternate;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
    scroll-margin-top: 8rem;
}

/*header start*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    animation: fadeIn 1s ease-in-out;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
    color: var(--main-color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a:active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

/*home start*/
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 5rem 10%;
    animation: fadeIn 1s ease-in-out;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    max-width: 600px;
}

.home-content h1 {
    margin-top: 25rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeIn 1s ease-in-out;
}

.home-content h3 {
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-in-out;
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Sosyal medya ikonları */
.social-icons {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 300ms ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

/* Butonlar */

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: black;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    transition: 0.3s ease-in-out;
    animation: scaleUp 0.8s ease-in-out;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 300ms ease-in-out;
}

.btn:hover {
    box-shadow: 0 0 50px var(--main-color);
    transform: scale(1.05);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

/* Animasyonlar */

.text-animation {
    position: relative;
    display: block;
    width: 100%;
    align-self: stretch;
    text-align: left;
    white-space: nowrap;
}

.text-animation span {
    position: relative;
    display: inline-block;
}


.text-animation span::before {
    content: ""; /* Varsayılan içerik */
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    position: absolute;
    right: -8px;
    border-left: 3px solid var(--bg-color);
    width: calc(100% + 8px); /* Cursor genişliği */
    height: 100%;
    background-color: var(--bg-color);
    animation: cursor-blink 0.7s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor-blink {
    0%, 100% {
        border-left-color: transparent; /* Cursor yanıp söner */
    }
    50% {
        border-left-color: var(--main-color);
    }
}

/* Profil Fotoğrafı */
.home-img {
    margin-top: 10rem;
    width: 30vw;
    max-width: 400px;
    min-width: 250px;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
    animation: fadeIn 1s ease-in-out;
}

.home-img img {
    width: 100%;
    border-radius: 50%;
}

.home-img:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}



/* home end */


/* experience start */

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}


.experience {
    background-color: var(--second-bg-color);
    padding: 8rem 5%;
}

.timeline-items {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: var(--main-color);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--main-color);
}

.timeline-item {
    width: 100%;
    position: relative;
    margin-bottom: 5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Tek (1, 3, 5...) öğeler: SOL tarafta */
.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 3rem);
    text-align: left;
}

/* Çift (2, 4, 6...) öğeler: SAĞ tarafta */
.timeline-item:nth-child(even) {
    padding-left: calc(50% + 3rem);
    text-align: left;
}

/* Eski standalone .timeline-dot div'ini gizle (yerine .timeline-date::before kullanılıyor) */
.timeline-dot {
    display: none;
}

.timeline-date {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05rem;
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
}

.timeline-date::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color);
    flex-shrink: 0;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    padding: 2.5rem 3rem;
    border-radius: 2rem;
    box-shadow: 0 0 10px rgba(50, 130, 184, 0.3);
    transition: 0.3s ease-in-out;
    position: relative;
}

.timeline-content:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: translateY(-4px);
}

.timeline-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #fff;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 4rem;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

/* experience end */

/*skills start*/

.skills {
    background-color: var(--bg-color);
    color: black;
    padding: 2rem;
}

.skills h2 {
    margin-bottom: 5rem;
    color: var(--text-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 sütun yapar */
    gap: 2rem; /* Kutular arasındaki boşluk */
    justify-content: center; /* Ortaya hizalama */
    align-items: stretch; /* Yükseklikleri eşitler */
    max-width: 1000px; /* Container'ın maksimum genişliği */
    margin: 0 auto; /* Ortala ve sağ-sol boşluk bırak */
    padding: 0 1rem; /* Sağ ve sol kenarlarda boşluk bırak */
}

.skills-box {
    background-color: var(--main-color);
    border-radius: 2rem;
    border: 5px solid transparent;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    padding: 1.5rem;
    height: auto; /* Yüksekliği otomatik yap */
    max-width: 100%; /* Kutuların maksimum genişliği */
}

.skills-box:hover {
    background-color: #fff;
    color: #000;
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.skills-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: left;
    align-items: baseline;
    padding: 1rem;
}

.skills-info h4 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.skills-info p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr; /* Mobilde tek sütun yapar */
        padding: 0 0.5rem; /* Mobilde kenar boşluklarını azalt */
    }

    .skills-box {
        padding: 1rem;
    }

    .skills-info h4 {
        font-size: 1.8rem;
    }

    .skills-info p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .skills-info h4 {
        font-size: 1.6rem;
    }

    .skills-info p {
        font-size: 1rem;
    }
}

/*skills end*/


/*projects start*/

.projects {
    background-color: var(--second-bg-color);
    padding: 5rem 12% 8rem;
}

.projects h2 {
    margin-bottom: 2rem;
}

.projects-intro {
    text-align: center;
    font-size: 1.6rem;
    color: #cfcfcf;
    max-width: 800px;
    margin: 0 auto 5rem;
    line-height: 1.6;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--bg-color);
    border: 3px solid rgba(238, 238, 238, 0.15);
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: 0.4s ease-in-out;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 30px var(--main-color);
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 22rem;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.8rem;
    background: linear-gradient(135deg, rgba(50, 130, 184, 0.15), rgba(27, 38, 44, 0.4));
    border: 1px solid rgba(50, 130, 184, 0.3);
}

.project-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

/* Dikey görüntüler (mobil screenshot) için: contain + blurlu arka plan */
.project-image.vertical img {
    object-fit: contain;
    object-position: center center;
}

.project-image-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.55) saturate(1.3);
    transform: scale(1.15);
    z-index: 0;
    pointer-events: none;
}

.project-image.vertical::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Eski icon stili — şu an kullanılmıyor ama gerekebilir */
.project-icon {
    font-size: 4.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.project-card h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--main-color);
    border-radius: 2rem;
    color: var(--main-color);
    background-color: rgba(0, 0, 0, 0.4);
    animation: none;
}

.project-card p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #d4d4d4;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
    text-decoration: none;
    border: 2px solid var(--main-color);
    padding: 1rem 1.8rem;
    border-radius: 3rem;
    align-self: flex-start;
    transition: 0.3s ease-in-out;
}

.project-link:hover {
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 20px var(--main-color);
}

.project-link i {
    font-size: 1.8rem;
    transition: transform 0.3s ease-in-out;
}

.project-link:hover i {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects {
        padding: 5rem 5% 8rem;
    }
}

@media (max-width: 640px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
    .project-card {
        padding: 2.5rem 2rem;
    }
}

/*projects end*/


/*gallery start*/

.gallery {
    background-color: var(--second-bg-color);
    padding: 5rem 0;
    text-align: center;
}

.gallery-carousel {
    position: relative;
    width: 100%;
}

/* Galeri başlığına boşluk ekleyelim */
.gallery h2 {
    margin-bottom: 5rem;
}

/* Galeri içeriği */
.gallery-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
}

/* Görseller dikdörtgen ve köşeleri oval */
.gallery-item img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    border-radius: 2rem;
    object-fit: cover;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
}

/* Wrapper'daki elemanlar arasına boşluk koy */
.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 80%;
    margin: auto;
    min-height: 600px;
    margin-top: 3rem;
}

.wrapper.fade-in {
    animation: galleryFadeIn 0.6s ease-out;
}

@keyframes galleryFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Galeri öğeleri arasına boşluk ekleyelim */
.gallery-item {
    min-height: 550px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(238, 238, 238, 0.2);
    border-radius: 2rem;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    transition: 0.4s ease-in-out;
    position: relative;
    margin: 1rem; /* Burada boşluk ekledik */
}

.gallery-item:hover {
    border: 3px solid var(--main-color);
    box-shadow: 0 0 50px var(--main-color);
}

.gallery-item h2 {
    font-size: 2.8rem;
}

.gallery-item p {
    font-size: 1.3rem;
}


/* Yanıp sönen ışık efekti için ekstra boşluk */
.gallery-item:nth-child(2) {
    border: 3px solid var(--main-color);
    box-shadow: 0 0 50px var(--main-color);
    transform: scale(1.1);
    animation: lighting 1s infinite alternate;
    margin-top: 10px; /* Boşluk ekledik */
}

@keyframes lighting {
    0% {
        box-shadow: 0 0 10px var(--main-color);
    }
    100% {
        box-shadow: 0 0 50px var(--main-color);
    }
}

/* Ok butonları — .gallery-carousel'a göre konumlanır */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2.4rem;
    transition: 0.3s ease-in-out;
    border-radius: 50%;
}

.gallery-btn:hover {
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*gallery end*/


/*contact start */

.contact {
    background-color: var(--bg-color);
    padding-bottom: 8rem;
}

.contact form {
    max-width: 80rem;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.5rem;
}

.contact form .input-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact form .input-box input,
.contact form .input-group-2 textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    transition: 0.3s ease;
}

.contact form .input-box input::placeholder,
.contact form .input-group-2 textarea::placeholder {
    color: rgba(187, 225, 250, 0.5);
}

.contact form .input-box input:focus,
.contact form .input-group-2 textarea:focus {
    box-shadow: 0 0 18px rgba(50, 130, 184, 0.5);
    border-color: var(--text-color);
}

.contact form .input-group-2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact form .input-group-2 textarea {
    resize: vertical;
    min-height: 16rem;
}

/* reCAPTCHA progressive disclosure */
.g-recaptcha-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, max-height 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.g-recaptcha-wrapper.visible {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
    pointer-events: auto;
}

.g-recaptcha-label {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.7;
    letter-spacing: 0.05rem;
}

.contact form input[type="submit"] {
    align-self: center;
    cursor: pointer;
    padding: 1.4rem 4rem;
    margin-top: 0.5rem;
}

/* Telefon girişindeki sağdaki yukarı-aşağı okları kaldır */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*contact end */

/*footer start */

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* İkonlar arasına boşluk bırak */
    padding-bottom: 25px;
    width: 100%; /* Tüm genişliği kaplasın */
    text-align: center; /* Eski yöntemle de destek ekleyelim */
}



/* Sosyal medya ikonları */
.social-icons a {
    display: flex; /* Flex ile tam ortalama */
    justify-content: center;
    align-items: center;
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

/* Link listesini ortala */
.footer ul {
    display: flex;
    justify-content: center; /* Yatay ortalama */
    align-items: center;
    list-style: none; /* Liste noktalarını kaldır */
    padding: 0;
    margin: 0;
    gap: 25px; /* Linkler arasında boşluk bırak */
}

/* Liste elemanları */
.footer ul li {
    margin: 0;
}

/* Liste linkleri */
.footer ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

/* Linklerin hover efekti */
.footer ul li a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
.footer .copyright {
    margin-top: 50px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}
/*footer end */

/*media queries start */

/* ==== Home: dikey hizalama (1300px ve altı) ==== */
@media (max-width: 1300px) {
    .home {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
        height: auto;
        padding-top: 16rem;
    }

    .home-img {
        order: -1;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .home-content {
        width: 100%;
        max-width: 600px;
        align-items: center;
    }

    .home-content h1 {
        margin-top: 0;
    }
}

/* ==== Tablet üstü: hamburger menu ==== */
@media (max-width: 983px) {
    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 75%;
        max-width: 320px;
        padding: 2rem 3%;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }

    .navbar a {
        display: block;
        font-size: 1.8rem;
        margin: 2rem 0;
        color: var(--text-color);
    }

    .navbar.active {
        display: block;
    }

    .heading {
        font-size: 5rem;
        margin: 3rem 0;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content h3 {
        font-size: 2.2rem;
    }
}

/* ==== Mobil section padding ==== */
@media (max-width: 910px) {
    header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3% 2rem;
    }

    .experience {
        padding: 6rem 3%;
    }

    /* Timeline tek sütuna düş — alternating dar ekranda çalışmaz */
    .timeline-items::before {
        left: 1rem;
        transform: none;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 3.5rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-content {
        padding: 2rem 2rem;
    }

    .timeline-content h3 {
        font-size: 1.8rem;
    }

    .timeline-content p {
        font-size: 1.4rem;
    }
}

/* ==== Tablet alt: form ve galeri ==== */
@media (max-width: 768px) {
    .contact form .input-box {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(2) {
        transform: none;
        margin-top: 1rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

/* ==== Mobil ==== */
@media (max-width: 560px) {
    .footer ul {
        flex-direction: column;
        gap: 1rem;
    }

    .footer ul a {
        font-size: 2rem;
    }

    .heading {
        font-size: 4rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 1.8rem;
    }

    .contact form {
        padding: 0 1rem;
    }

    .contact form input[type="submit"] {
        padding: 1.2rem 3rem;
        font-size: 1.5rem;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/*media queries end */

/* ==== Toast Notification ==== */
.toast {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    min-width: 32rem;
    max-width: 42rem;
    background-color: rgba(27, 38, 44, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid var(--main-color);
    border-radius: 1.4rem;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(50, 130, 184, 0.3);
    transform: translateY(150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
    overflow: hidden;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast.error {
    border-color: #e74c3c;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(231, 76, 60, 0.3);
}

.toast-icon {
    width: 4.5rem;
    height: 4.5rem;
    min-width: 4.5rem;
    background-color: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    box-shadow: 0 0 18px var(--main-color);
    animation: toastIconPop 0.6s ease-out;
}

.toast.error .toast-icon {
    background-color: #e74c3c;
    box-shadow: 0 0 18px #e74c3c;
}

@keyframes toastIconPop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.toast-message {
    color: #bcc7cf;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    color: #8a9099;
    border: none;
    cursor: pointer;
    font-size: 2.4rem;
    padding: 0.3rem;
    line-height: 1;
    border-radius: 0.4rem;
    transition: color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background-color: var(--main-color);
    width: 100%;
    transform-origin: left;
    box-shadow: 0 0 8px var(--main-color);
}

.toast.error .toast-progress {
    background-color: #e74c3c;
    box-shadow: 0 0 8px #e74c3c;
}

.toast.show .toast-progress {
    animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 560px) {
    .toast {
        right: 1.5rem;
        left: 1.5rem;
        bottom: 1.5rem;
        min-width: 0;
        max-width: none;
    }
}
