/* Poppins loaded via HTML preconnect for high performance */

/* Accessibility Focus Rings & Skip Link */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -10rem;
    left: 2rem;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 1rem 1.6rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 1.4rem;
    z-index: 99999;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: top 0.25s ease;
}

.skip-link:focus {
    top: 2rem;
}

* {
    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: #342626;
    --second-bg-color: #884546;
    --text-color: #ededed;
    --main-color: #cc9595;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin-right: 2rem;
    flex-shrink: 0;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 0;
    transition: .3s;
    white-space: nowrap;
}

.navbar a:hover,
.navbar a.active { 
    color: var(--main-color);
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 9%;
    background: var(--bg-color) url('../public/main.webp') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    z-index: 0;
}

.home::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(52, 38, 38, .92) 0%,
        rgba(52, 38, 38, .78) 34%,
        rgba(52, 38, 38, .22) 62%,
        rgba(52, 38, 38, .08) 100%
    );
}

.home-content {
    flex: 0 1 60rem;
    max-width: 60rem;
    z-index: 99;
}

.home-spotlight {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    will-change: mask-image, opacity;
    z-index: 3;
    -webkit-mask-image: radial-gradient(
        circle var(--spotlight-size) at var(--x) var(--y),
        #000 0%,
        #000 48%,
        rgba(0, 0, 0, .65) 62%,
        transparent 74%
    );
    mask-image: radial-gradient(
        circle var(--spotlight-size) at var(--x) var(--y),
        #000 0%,
        #000 48%,
        rgba(0, 0, 0, .65) 62%,
        transparent 74%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.spotlight-reveal {
    --x: 50%;
    --y: 50%;
    --spotlight-size: clamp(14rem, 18vw, 28rem);
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.spotlight-reveal.home-spotlight {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
}

.spotlight-reveal__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.spotlight-reveal__image--base {
    z-index: 1;
}

.home-spotlight .spotlight-reveal__image--base {
    opacity: 0;
}

.home-spotlight .spotlight-reveal__image--overlay {
    opacity: 1;
    transition: none;
    will-change: auto;
    -webkit-mask-image: none;
    mask-image: none;
}

.spotlight-reveal__image--overlay {
    z-index: 2;
    opacity: 0;
    transition: opacity .35s ease;
    will-change: mask-image, opacity;
    -webkit-mask-image: radial-gradient(
        circle var(--spotlight-size) at var(--x) var(--y),
        #000 0%,
        #000 48%,
        rgba(0, 0, 0, .65) 62%,
        transparent 74%
    );
    mask-image: radial-gradient(
        circle var(--spotlight-size) at var(--x) var(--y),
        #000 0%,
        #000 48%,
        rgba(0, 0, 0, .65) 62%,
        transparent 74%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.spotlight-reveal.is-active .spotlight-reveal__image--overlay {
    opacity: 1;
}

.home:hover .home-spotlight,
.home.is-spotlight-active .home-spotlight,
.home-spotlight.is-active {
    opacity: 1;
}

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--text-color);
}

.home-content .text-animate {
    position: relative;
    width: 29.5rem; /* Vellium Kurucusu */
}

html[lang="tr"] .home-content .text-animate {
    width: 29.5rem;
}

html[lang="en"] .home-content .text-animate {
    width: 28rem;
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    white-space: nowrap;
}

html[lang="tr"] .home-content .text-animate h3 {
    background-position: -29.5rem 0;
}

html[lang="en"] .home-content .text-animate h3 {
    background-position: -28rem 0;
}

html[lang="tr"] .home.show-animate .home-content .text-animate h3 {
    animation: homeBgTextTR 6s linear infinite;
    animation-delay: 2s;
}

html[lang="en"] .home.show-animate .home-content .text-animate h3 {
    animation: homeBgTextEN 6s linear infinite;
    animation-delay: 2s;
}

.home-content .text-animate h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--main-color);
    z-index: -1;
}

.home.show-animate .home-content .text-animate h3::before {
    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.4rem;
    width: auto;
    max-width: 54rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 0 2rem;
    min-width: 14rem;
    height: 4.8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .4s ease;
}

.btn span {
    color: inherit;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn.btn-outline,
.btn-box .btn:nth-child(3) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn.btn-outline:hover,
.btn-box .btn:nth-child(3):hover {
    color: var(--bg-color);
}

.btn-box .btn.btn-outline::before,
.btn-box .btn:nth-child(3)::before {
    background: var(--main-color);
}

.btn-box .btn.btn-cv {
    background: rgba(204, 149, 149, 0.15);
    border-color: var(--main-color);
    color: var(--text-color);
}

.btn-box .btn.btn-cv:hover {
    color: var(--bg-color);
}

.btn-box .btn.btn-cv::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .4s ease;
}

.btn-box .btn:hover::before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    width: max-content;
    z-index: 99;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.4rem;
    height: 4.4rem;
    background: rgba(45, 32, 32, 0.5);
    border: 1.5px solid rgba(204, 149, 149, 0.4);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-sci a:hover {
    color: var(--bg-color);
    border-color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(204, 149, 149, 0.38);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .35s ease;
}
 
.home-sci a:hover::before {
    width: 100%;
}


.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    position: relative;
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.heading span {
    color: var(--main-color);
}

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-self: center;
    align-items: center;
}

.about-img img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);    
    border-right: .2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    text-align: center;
    max-width: 96rem;
    width: 100%;
}

.about-content .about-subtitle {
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 2.5rem;
    letter-spacing: .5px;
}

.about-story {
    font-size: 1.6rem;
    line-height: 1.85;
    color: #ded1d1;
    text-align: left;
    margin-bottom: 3rem;
}

.about-story p {
    margin-bottom: 1.6rem;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-story strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Editorial Philosophy Creed (Zero Boxes) */
.about-creed-section {
    margin: 4.5rem auto 5rem;
    max-width: 86rem;
    width: 100%;
    text-align: center;
    position: relative;
}

.creed-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 149, 149, 0.45) 30%, rgba(204, 149, 149, 0.45) 70%, transparent);
    margin: 2.2rem 0;
}

.creed-mark {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 6.5rem;
    line-height: 0.8;
    color: var(--main-color);
    opacity: 0.55;
    display: block;
    margin-bottom: 0.8rem;
    user-select: none;
}

.about-creed-section blockquote {
    font-size: 2.3rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-color);
    letter-spacing: 0.2px;
}

.creed-accent {
    display: inline-block;
    color: var(--main-color);
    font-weight: 600;
    font-style: normal;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(204, 149, 149, 0.5);
    margin-top: 0.5rem;
}

.creed-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 2rem;
    font-size: 1.35rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ded1d1;
    font-weight: 600;
}

.creed-line {
    display: inline-block;
    height: 1px;
    width: 3.5rem;
    background: rgba(204, 149, 149, 0.4);
}

/* Architectural Strategic Pillars Flow (Zero Boxes) */
.about-pillars-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.2rem 4.8rem;
    margin: 5rem 0;
    text-align: left;
}

.pillar-item {
    position: relative;
    border-top: 1px solid rgba(204, 149, 149, 0.22);
    padding-top: 2.4rem;
    background: transparent;
    transition: transform 0.35s ease;
}

.pillar-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-item:hover::before {
    width: 8rem;
}

.pillar-item .pillar-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.2rem;
}

.pillar-icon-inline {
    font-size: 2.6rem;
    color: var(--main-color);
    flex-shrink: 0;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.pillar-item:hover .pillar-icon-inline {
    transform: scale(1.18);
    filter: drop-shadow(0 0 10px rgba(204, 149, 149, 0.6));
}

.pillar-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.pillar-item:hover .pillar-title {
    color: var(--main-color);
}

.pillar-desc {
    font-size: 1.5rem;
    color: #ded1d1;
    line-height: 1.75;
    margin: 0;
}

.btn-box.btns {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: auto;
}

.btn-box.btns a::before {
    background: var(--second-bg-color);
}

.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education .education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-column .education-box {
    position: relative;
    border-left: .2rem solid var(--main-color);
}

.education-box .education-content {
    position: relative;
    padding-left: 2rem;
}

.education-box .education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.education-content .content:hover::before {
    width: 100%;
}

.education-content .content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.education-content .content .year i {
    padding-right: .5rem;
}

.education-content .content h3 {
    font-size: 2rem;
}

.education-content .content p {
    font-size: 1.6rem;
    padding-top: .5rem;
}

.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.skills h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-column .skills-box {
    position: relative;
}

.skills-box .skills-content {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;
}

.skills-content .skill-item {
    padding: 1.5rem 0;
    border-bottom: .1rem solid rgba(204, 149, 149, 0.2);
}

.skills-content .skill-item:last-child {
    border-bottom: none;
}

.skills-content .skill-item h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skills-content .skill-item h3 i {
    color: var(--main-color);
    font-size: 2.2rem;
}

.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

.contact h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus {
    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

/* File Upload Field Styles */
.contact form .file-upload-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-upload-label {
    width: 100%;
    padding: 2.2rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem dashed var(--main-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    transition: 0.3s ease;
}

.file-upload-label:hover {
    background: rgba(204, 149, 149, 0.1);
    border-style: solid;
}

.file-upload-label i {
    font-size: 2.8rem;
    color: var(--main-color);
}

.file-upload-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(204, 149, 149, 0.1);
    border: 1px solid rgba(204, 149, 149, 0.3);
    border-radius: .6rem;
    font-size: 1.4rem;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-upload-info span {
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.file-upload-info button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: #ff5f56;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.file-upload-info button:hover {
    transform: scale(1.15);
}

.contact form .btn-box.btns .btn {
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text,
.footer-iconTop {
    position: relative;
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/*ANIMATION RELOAD AND SCROLL*/
.animate {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 98;
}

.animate.home-img {
    width: 100%;
}

.logo .animate,
.navbar .animate, 
#menu-icon .animate,
.home.show-animate .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(.3s * var(--i));
}

.animate.scroll {
    transition: 1s ease;
    transition-delay: calc(.3s / var(--i));
    animation: none;
}

.about .animate.scroll,
.skills .animate.scroll,
.footer .animate.scroll {
    background: var(--second-bg-color);
}

.education .animate.scroll,
.projects .animate.scroll,
.contact .animate.scroll {
    background: var(--bg-color);
}

.education .education-box .animate.scroll {
    width: 105%;
}

.about.show-animate .animate.scroll,
.education.show-animate .animate.scroll,
.skills.show-animate .animate.scroll,
.projects.show-animate .animate.scroll,
.contact.show-animate .animate.scroll,
.footer.show-animate .animate.scroll { 
    transition-delay: calc(.3s * var(--i));
    width: 0;
}

/*BREAKPOINTS*/
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 850px) {
    .animate.home-img {
        width: 55%;
    }

    .projects-filter-bar {
        justify-content: flex-start;
        padding: 0.6rem 2%;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }

    .home {
        justify-content: center;
    }

    .spotlight-reveal {
        --spotlight-size: clamp(10rem, 34vw, 18rem);
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        display: block;
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid rgb(0, 0, 0, .2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active .active-nav {
        left: 0;
        transition-delay: .25s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    }


}

@media (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        display: flex;
        flex-direction: column;
    }

    .home-sci {
        width: max-content;
        gap: 1.2rem;
    }

    .home-sci a {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }
}

@media (max-width: 462px) {
    .home-content h1 {
        font-size: 5.2rem;
    }

    .education {
        padding: 10rem 4% 5rem 5%;
    }

    .contact form .input-box .input-field {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }
}

@media (max-width: 371px) {
    .home {
        justify-content: center;
    }

    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }
}

/*KEYFRAMES ANIMATION*/
@keyframes homeBgTextTR {
    0%,
    10%,
    100% {
        background-position: -29.5rem 0;
    }
    65%,
    85% {
        background-position: 0 0;
    }
}

@keyframes homeBgTextEN {
    0%,
    10%,
    100% {
        background-position: -28rem 0;
    }
    65%,
    85% {
        background-position: 0 0;
    }
}

@keyframes homeCursorText {

    0%,
    10%,
    100% {
        width: 0;
    }

    65%,
    78%,
    85% {
        width: 100%;
        opacity: 1;
    }

    75%,
    81% {
        opacity: 0;
    }
}

@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes showRight {
    100% {
        width: 0;

    }
}

/* --- Language Switcher Styles --- */
.lang-switcher-container {
    position: relative;
    margin-left: 3.5rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    z-index: 101;
}

.lang-toggle {
    font-size: 2.0rem;
    color: var(--text-color);
    cursor: pointer;
    transition: .3s ease;
    display: inline-flex;
    align-items: center;
}

.lang-toggle:hover {
    color: var(--main-color);
}

/* Language display switching rules */
html[lang="en"] .lang-tr {
    display: none !important;
}

html[lang="tr"] .lang-en {
    display: none !important;
}

/* Executive Spec Matrix (Zero Boxes) */
.about-specs-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2rem 3.5rem;
    margin: 5rem 0 4rem;
    padding: 3.5rem 0;
    border-top: 1px solid rgba(204, 149, 149, 0.22);
    border-bottom: 1px solid rgba(204, 149, 149, 0.22);
    text-align: left;
    background: transparent;
}

.spec-node {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.25s ease;
}

.spec-node:hover {
    transform: translateX(4px);
}

.spec-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--main-color);
    opacity: 0.95;
}

.spec-value {
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 991px) {
    .about-pillars-flow {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .about-specs-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.8rem;
    }
}

@media (max-width: 600px) {
    .about-specs-matrix {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding: 2.5rem 0;
    }
    .about-creed-section blockquote {
        font-size: 1.9rem;
    }
    .creed-author {
        flex-direction: column;
        gap: 0.8rem;
    }
    .creed-line {
        display: none;
    }
}

/* Projects Section styles */
.projects {
    padding-bottom: 7rem;
}

/* Projects Filter & Search Toolbar */
.projects-filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 3.5rem auto 1.5rem;
    max-width: 105rem;
    width: 100%;
}

.projects-search-box {
    position: relative;
    width: 100%;
    max-width: 44rem;
}

.projects-search-box i {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: var(--main-color);
    pointer-events: none;
}

.projects-search-box input {
    width: 100%;
    padding: 1.2rem 1.6rem 1.2rem 4.6rem;
    background: rgba(45, 32, 32, 0.75);
    border: 1.5px solid rgba(204, 149, 149, 0.4);
    border-radius: 3rem;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.projects-search-box input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(204, 149, 149, 0.35);
    background: rgba(45, 32, 32, 0.95);
}

.projects-search-box input::placeholder {
    color: #bda9a9;
    font-size: 1.4rem;
}

.projects-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: safe center;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.6rem 0.5rem;
}

.projects-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: rgba(45, 32, 32, 0.6);
    border: 1.5px solid rgba(204, 149, 149, 0.35);
    border-radius: 2.5rem;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-2px);
}

.filter-btn span {
    color: inherit;
}

.filter-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(204, 149, 149, 0.4);
    font-weight: 600;
}

.filter-btn.active span {
    color: var(--bg-color);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
}

.filter-btn.active .filter-count {
    background: rgba(52, 38, 38, 0.35);
    color: var(--bg-color);
}

.projects-empty {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.8rem;
    color: #bda9a9;
}

.projects-empty i {
    font-size: 4rem;
    color: var(--main-color);
    display: block;
    margin-bottom: 1rem;
}

.projects .projects-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: 2.5rem;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card.is-hidden {
    display: none !important;
}

.project-card.is-visible {
    animation: projectFadeIn 0.35s ease forwards;
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.project-card:hover::before {
    width: 100%;
}

.project-card h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.project-card p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
}

.project-card .tag {
    font-size: 1.2rem;
    background: rgba(204, 149, 149, 0.15);
    color: var(--text-color);
    padding: 0.2rem 0.8rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(204, 149, 149, 0.3);
}

.project-card .project-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    align-items: center;
}

.project-card .project-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.8rem;
    height: 3.8rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: .3s ease;
    z-index: 1;
}

.project-card .project-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(204, 149, 149, 0.5);
}

.project-card:hover .project-links a {
    border-color: var(--text-color);
    color: var(--text-color);
}

.project-card:hover .project-links a:hover {
    background: var(--text-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .lang-switcher-container {
        display: flex;
        justify-content: center;
        margin: 3rem 0;
        width: 100%;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active .lang-switcher-container {
        transform: translateX(0);
        transition-delay: .25s;
    }
}

/* Custom Alert Styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 20, 20, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-alert-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-alert-box {
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 1.6rem;
    padding: 3.5rem 4rem;
    width: 90%;
    max-width: 42rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(204, 149, 149, 0.2);
    transform: scale(0.8) translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1) translateY(0);
}

.custom-alert-icon {
    font-size: 6.5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    display: inline-block;
    animation: alertPulse 2s infinite alternate;
}

@keyframes alertPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(204, 149, 149, 0.4));
    }
    100% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 15px rgba(204, 149, 149, 0.8));
    }
}

.custom-alert-box h3 {
    font-size: 2.6rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.custom-alert-box p {
    font-size: 1.6rem;
    color: var(--text-color);
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.alert-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16rem;
    height: 4.8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
    transition: .5s ease;
}

.alert-btn span {
    color: inherit;
}

.alert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s ease;
}

.alert-btn:hover {
    color: var(--main-color);
}

.alert-btn:hover::before {
    width: 100%;
}

/* Error Variation */
.custom-alert-box.error-box {
    border-color: #ff5f56;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 95, 86, 0.2);
}

.custom-alert-box.error-box .custom-alert-icon {
    color: #ff5f56;
    animation: alertErrorPulse 2s infinite alternate;
}

@keyframes alertErrorPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 95, 86, 0.4));
    }
    100% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 15px rgba(255, 95, 86, 0.8));
    }
}

.custom-alert-box.error-box .alert-btn {
    background: #ff5f56;
    border-color: #ff5f56;
}

.custom-alert-box.error-box .alert-btn:hover {
    color: #ff5f56;
}

.custom-alert-box.error-box .alert-btn::before {
    background: var(--bg-color);
}
