:root {
    --bg_color: #00121a;
    --bg_color2: #041623;
    --txt_color: #c1effb;
    --line_color: #2d6c70;
    --border_color: #c1effbad;
}
body {
    background-color: var(--bg_color);
    font-family: "Roboto", sans-serif !important;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/header_background2.png') center/cover no-repeat;
    background-attachment: fixed;
}
.container {
    width: 90%;
    margin: auto;
}
.section_head{
    color: var(--txt_color);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    margin: 0 0 30px;
    animation: glow 2s ease-in-out infinite alternate;
}
.nav_bg {
    background-color: var(--bg_color);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 0 3px var(--txt_color);
    transition: .3s;
}
nav {position: relative;}
.logo {
    width: 150px;
    height: 70px;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: .3s;
}
.navlinks {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.links {
    background-color: var(--bg_color);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: 0.6s;
}
.links.open {
    padding: 0 5% 50px;
    height: 90vh;
}
.links li {
    border-top: 1px solid var(--line_color);   
    width: 100%;
}
.fa-chevron-down {display: none !important;}
.links a {
    padding: 15px 5px;
    font: 0.9rem "Roboto", sans-serif;
    color: var(--txt_color);
    transition: .3s;
    display: flex;
    align-items: center;
}
.alt_links {
    width: 90%;
    height: auto;
    overflow: hidden;
    margin-right: 0;
    margin-left: auto;
    transition: .3s;
}
.links li:last-child {border-bottom: 1px solid var(--line_color);}
.alt_links li:last-child {border-bottom: none;}
.alt_links li img{display: none;}
.desk_links{display: none;}
#checkbox {display: none;}
.toggle {
    position: relative;
    width: 27px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition-duration: 0.5s;
}
.bars {
    width: 100%;
    height: 3px;
    background-color: var(--txt_color);
    border-radius: 4px;
}
#checkbox:checked+.toggle .bars {
    position: absolute;
    transition-duration: 0.5s;
}
#checkbox:checked+.toggle #bar2 {
    transform: scaleX(0);
    transition-duration: 0.5s;
}
#checkbox:checked+.toggle #bar1 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: 0.5s;
}
#checkbox:checked+.toggle #bar3 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: 0.5s;
}
#checkbox:checked+.toggle {
    transition-duration: 0.5s;
    transform: rotate(180deg);
}

/**<<--HEADER-->>*/
header {
    height: fit-content;
    width: 100%;
    padding: 20px 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header_content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile a {margin-top: 30px;}
.profile_img {
    width: 200px;
    height: 280px;
    padding: 2px;
    border: 2px solid var(--txt_color);
    border-radius: 20px;
    overflow: hidden;
}
.profile_img img {
    border-radius: 17px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cd_file_download {
    width: 200px;
    margin-top: 10px !important;
}
.hero-content {
    max-width: 900px;
    color: var(--txt_color);
}
.hero-title {
    color: var(--txt_color);
    font: 600 2rem "Roboto", sans-serif;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--txt_color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}
.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stack-label {
    color: var(--txt_color);
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 58px;
    margin: 7px 0 10px;
}
.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.stack-chip {
    background: rgba(0, 18, 26, 0.5);
    border: 1px solid var(--line_color);
    color: var(--txt_color);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(193, 239, 251, 0.15);
}
.stack-chip:hover {
    background: var(--txt_color);
    color: var(--bg_color);
    border-color: var(--txt_color);
    box-shadow: 0 0 12px rgba(193, 239, 251, 0.4);
}
.stack-chip--learning {
    border-style: dashed;
    opacity: 0.65;
}
.stack-chip--learning:hover {
    opacity: 1;
}

/**<<--EDUCATION-->>*/
#education {
    padding: 50px 0;
    color: var(--txt_color);
    position: relative;
}
.edu_timeline {
    position: relative;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.edu_timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line_color);
    box-shadow: 0 0 10px #c1effb4d;
}
.edu_item {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.edu_icon {
    width: 40px;
    height: 40px;
    background: #00121a80;
    border: 2px solid var(--line_color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--txt_color);
    font-size: 1rem;
    box-shadow: 0 0 12px #c1effb40;
    z-index: 2;
}
.edu_content {
    background: #0416238c;
    border: 1px solid var(--line_color);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 0 12px #c1effb26;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    flex: 1;
}
.edu_content:hover {
    border-color: var(--txt_color);
    box-shadow: 0 0 25px #c1effb40;
}
.course_name {
    font-size: 1.25rem;
    margin-bottom: 5px;
    text-shadow: 0 0 6px #c1effb40;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 5px;
}
.course_name span {
    font-size: .9rem;
    opacity: .8;
    font-weight: 400;
}
.edu_name {
    font-size: 1rem;
    font-weight: 400;
    opacity: .9;
    margin-bottom: 15px;
    color: var(--txt_color);
}
.edu_content p {
    font-size: .95rem;
    line-height: 1.55;
    opacity: .88;
    margin-bottom: 10px;
}
.edu_skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.edu_skills li {
    list-style: none;
    background: #00121a59;
    border: 1px solid var(--line_color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: .83rem;
    box-shadow: 0 0 6px rgba(193, 239, 251, .2);
    transition: .3s;
}
.edu_skills li:hover {
    background: var(--txt_color);
    color: var(--bg_color);
}

/**<<--EXPERIENCE-->>*/
#experience {
    padding: 50px 0;
    color: var(--txt_color);
}
.exp_timeline {
    position: relative;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.exp_timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line_color);
    box-shadow: 0 0 10px #c1effb4d;
}
.exp_item {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.exp_icon {
    width: 40px;
    height: 40px;
    background: #00121a80;
    border: 2px solid var(--line_color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--txt_color);
    font-size: 1rem;
    box-shadow: 0 0 12px #c1effb40;
    z-index: 2;
    flex-shrink: 0;
}
.exp_content {
    background: #0416238c;
    border: 1px solid var(--line_color);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 0 12px #c1effb26;
    transition: border-color .3s, box-shadow .3s;
    flex: 1;
}
.exp_content:hover {
    border-color: var(--txt_color);
    box-shadow: 0 0 25px #c1effb40;
}
.exp_header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.exp_company {
    font-size: 1.25rem;
    margin-bottom: 6px;
    text-shadow: 0 0 6px #c1effb40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.exp_type {
    font-size: 0.78rem;
    opacity: 0.75;
    font-weight: 400;
    background: #00121a59;
    border: 1px solid var(--line_color);
    padding: 2px 8px;
    border-radius: 20px;
}
.exp_role {
    font-size: 1rem;
    font-weight: 400;
    opacity: .9;
    margin-bottom: 8px;
}
.exp_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.exp_date, .exp_location {
    font-size: 0.82rem;
    opacity: 0.65;
    display: flex;
    align-items: center;
    gap: 5px;
}
.exp_desc {
    font-size: .95rem;
    line-height: 1.55;
    opacity: .88;
    margin-bottom: 10px;
}

/**<<--TECHNOLOGIES-->>*/
#technologies, #technologies2{
    height: fit-content;
    padding: 40px 0;
}
.technologies_content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.scroll_btns{display: none;}
.tech_head{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tech_name{
    color: var(--txt_color);
    font-weight: 300;
    white-space: nowrap;
    transition: .3s;
}
.tech_img{
    width: 60px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--line_color);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.tech_img img{
    width: 60%;
    height: auto;
    transition: .3s;
}
.tech_head.active .tech_name {text-shadow: 0 0 8px var(--txt_color)}
.tech_head.active .tech_img {
    box-shadow: 0 0 30px var(--line_color);
    border-color: var(--txt_color);
}
.tech_info span{
    display: block;
    padding: 10px;
    overflow: hidden;
}
.tech_info{
    display: none;
    font-size: 0.9rem;
    font-weight: 300;
    overflow: hidden;
    height: 0;
    color: var(--txt_color);
    transition: .4s;
    border-radius: 0 20px 0 20px;
}

/**<<--TOOLS-->>*/
#tools{
    height: fit-content;
    padding: 50px 0;
}
.tools_content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.tool_img {
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line_color);
    border-radius: 10px;
    transition: .3s;
}
.tool_img img {
    width: 60%;
    height: auto;
    transition: .3s;
}
.tool_name {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--txt_color);
    transition: .4s;
}


/**<<--ABOUT-->>*/
#about {padding: 60px 0;}
.about_list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* margin: 0 0 10px; */
    padding-left: 4px;
}
.about_list li {
    list-style: none;
    color: var(--txt_color);
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 30px;
    position: relative;
    opacity: 0.88;
}
.about_list li::before {
    content: "—";
    position: absolute;
    left: 10px;
    color: var(--line_color);
}
.about_inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.about_text {color: var(--txt_color);}
.about_text h3 {
    font-size: 1.8rem;
    line-height: 2.5rem;
    margin-bottom: 20px;
}
.about_text h3 span {
    color: var(--txt_color);
    text-shadow: 0 0 8px var(--txt_color);
}
.about_text p {
    line-height: 1.6;
    /* margin-bottom: 10px; */
}
.address{
    width: 100%;
    display: flex;    
    flex-direction: column;
    gap: 20px;
}
.contact_method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px;
    background: rgba(0, 18, 26, 0.3);
    border: 1px solid var(--line_color);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.contact_method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193, 239, 251, 0.1), transparent);
    transition: left 0.5s;
}
.contact_method:hover::before {left: 100%;}
.contact_method:hover {
    border-color: var(--txt_color);
    box-shadow: 0 0 25px rgba(193, 239, 251, 0.2);
}
.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--line_color), var(--txt_color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg_color);
}
.contact-details h4 {
    color: var(--txt_color);
    font-size: 1rem;
    white-space: nowrap;
    margin-bottom: 6px;
}
.contact-details p {
    color: var(--txt_color);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ==== FOOTER ==== */
.site-footer {
    border-top: 1px solid var(--line_color);
    background: var(--bg_color);
    color: var(--txt_color);
    padding: 50px 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.social_links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.social_link {
    width: 45px;
    height: 45px;
    background: rgba(45, 108, 112, 0.2);
    border: 1px solid var(--line_color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt_color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social_link:hover {
    background: linear-gradient(135deg, var(--line_color), var(--txt_color));
    color: var(--bg_color);
    box-shadow: 0 0 20px rgba(193, 239, 251, 0.3);
}
.footer-marquee {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line_color);
    border-bottom: 1px solid var(--line_color);
    padding: 15px 0;
}
.marquee-track {
    display: inline-flex;
    gap: 10rem;
    white-space: nowrap;
    will-change: transform;
    animation: marquee-ltr 22s linear infinite;
    padding-left: 0;
}
.marquee-track p {
    font-weight: 400;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 2px rgba(193,239,251,.35));
}

@keyframes marquee-ltr {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

/* ANIMATIONS */
@keyframes glow {
    from {text-shadow: 0 0 5px rgba(193, 239, 251, 0.5);}
    to {text-shadow: 0 0 20px rgba(193, 239, 251, 0.8), 0 0 30px rgba(193, 239, 251, 0.6);}
}

@media (min-width: 480px) {
    .technologies_content{ grid-template-columns: repeat(4, 1fr);}
}
@media (min-width: 768px) {
    .container {max-width: 1300px;}
    .section_head{font-size: 3rem;}
    .nav_bg {
        height: fit-content;
        margin-top: 20px;
        box-shadow: 0 0 5px var(--txt_color);
    }
    .logo img:hover {filter: drop-shadow(0 0 8px var(--txt_color)) drop-shadow(0 0 12px var(--txt_color));}
    .navlinks {padding: 0; align-items: stretch;}
    .links {
        position: static;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        width: fit-content;
        height: auto;
        overflow: visible;
        padding: 0;
    }
    .links li,
    .links li:last-child {border: none; display: flex; align-items: center;}
    .links a {
        font-size: 1.1rem;
        padding: 15px, 10px 20px;
    }
    .links a:hover {text-shadow: 0 0 8px var(--txt_color), 0 0 12px var(--txt_color);}
    .alt_links {
        background-color: var(--bg_color);
        position: absolute;
        top: 100%;
        width: 300px;
        height: 0;
        z-index: 200;
        border: 1px solid var(--line_color);
        border-bottom: none;
        border-radius: 0 0 10px 10px;
        overflow: hidden;
        transition: 0.3s;
    }
    .alt_links li{
        padding: 0;
        border-bottom: 1px solid var(--line_color);
        width: 100%;
    }
    .alt_links a{
        display: block;
        padding: 15px;
        width: 100%;
    }
    .fa-chevron-down {
        display: initial !important;
        font-weight: 300;
        font-size: 1.2rem;
        margin-left: 10px;
        transition: .3s;
    }
    .alt_links a:hover{background-color: var(--bg_color2);}
    .links li:hover .alt_links{
        border: 1px solid var(--line_color);
        border-top: none;
        height: 433px;
    }
    .links li:hover .fa-chevron-down{transform: rotate(180deg);}
    .desk_links{display: initial;}
    .menuBar {display: none;}
    .alt_links li:hover img{display: block;}
    .alt_links li img{
        width: 300px;
        height: 160px;
        object-fit: cover;
        position: fixed;
        z-index: 300;
        display: none;
    }
    header {padding: 20px 0 80px !important;}
    .header_content {
        margin-top: 50px;
        flex-direction: row;
        gap: 50px;
    }
    .profile_img {
        width: 250px;
        height: 350px;
        border-radius: 20px;
    }
    .cd_file_download {
        width: 250px;
        margin-top: 20px !important;
    }
    .hero-title {font-size: 2.5rem;}
    .hero-subtitle {font-size: 1.4rem;}
    .stack-chip {
        font-size: 0.95rem;
        padding: 5px 14px;
    }
    .stack-label {
        font-size: 0.75rem;
        min-width: 65px;
        padding-top: 7px;
    }

    .edu_timeline::before { left: 28px;}
    .edu_item { gap: 25px;}
    .edu_icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    .edu_content { padding: 18px 22px;}

    #experience { padding: 70px 0; }
    .exp_timeline::before { left: 28px; }
    .exp_item { gap: 25px; }
    .exp_icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    .exp_content { padding: 18px 22px; }
    .exp_header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .exp_meta { flex-direction: column; gap: 4px; text-align: right; }
    
    #technologies, #technologies2{padding: 70px 0;}
    .tech_name{
        text-align: center;
        font-size: 1.1rem;
    }
    .tech_img{
        width: 70px;
        height: 60px;
    }
    .tech_info{
        font-size: 1.2rem;
        font-weight: 400;
        line-height: 1.5rem;
        position: absolute;
        top: 150px;
        left: 0;
        width: 100%;
    }
    .tech_info span{padding: 20px;}

    .tools_content{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
    .tool {
        flex-direction: column;
        gap: 10px;
    }
    .tool_img {
        width: 90px;
        height: 80px;
    }
    .tool_name {font-size: 1.3rem;}


    #about{padding: 100px 0;}
    .about_inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .about_text {max-width: 50%;}
    .address{
        width: 25%;
        display: flex;    
        flex-direction: column;
        gap: 20px;
    }
    .contact-icon {
        background: linear-gradient(135deg, var(--line_color), var(--txt_color));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--bg_color);
    }
    .footer_contact {
        flex-direction: row;
        gap: 24px;
        align-items: center;
    }
    .social_links {gap: 30px;}
}

@supports (-webkit-touch-callout: none) { /*! Safari-de altlink-in prorblemi ucun (Testing)*/
    @media (min-width: 768px) {
        .links,
        .nav_bg,
        nav { overflow: visible; }
        .alt_links {
        z-index: 10000;
        -webkit-transform: translateZ(0);
                transform: translateZ(0);
        will-change: transform;
        }
    }
}

@media (min-width: 900px) {
    .logo {
        font-size: 1.5rem;
        width: 200px;
        height: 80px;
    }
    .links {gap: 10px;}
    .links a {
        padding: 15px 10px;
        font-size: 1.2rem;
    }
    .technologies_content{
        position: relative;
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
    }
    .tech_head{
        width: 90px;
        flex-direction: column;
        gap: 10px;
    }
    .tech_img{
        width: 80px;
        height: 70px;
    }
}
@media (min-width: 1220px) {
    .links {gap: 20px;}
    .links a {padding: 15px;}
    .tech_img{
        width: 90px;
        height: 80px;
    }
    .technologies_content{
        display: flex;
        justify-content: center;
        gap: 30px;
    }
}
