* {
    box-sizing: border-box; 
}

body {
    background-color: #282C33;
    margin: 0;
    padding: 0;
    font-family: "Fira Code", monospace;
    overflow-x: hidden;
    width: 100%;
    color: #FFFFFF;
}

.hash, .a { color: #C778DD; }
.white { color: #FFFFFF; }
.bold { color: #FFFFFF; font-weight: bold; }

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #282C33;
    
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header-nav.scrolled {
    background-color: #282C33;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
    border-bottom: 1px solid #C778DD; 
    padding-top: 15px; 
    padding-bottom: 15px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 700;
}
.logo-link { text-decoration: none; color: inherit; display: inline-block; }

.nav.desktop-only { display: none; }

.nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #ABB2BF;
}
.nav a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
.nav a:hover, .nav a.active { color: #FFFFFF; font-weight: bold; }

.burger-icon {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.burger-icon .line {
    width: 24px;
    height: 2px;
    background-color: #D9D9D9;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #282C33;
    z-index: 999;
    padding: 20px;
    display: none;
    flex-direction: column;
}
.mobile-menu.active { display: flex; }
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}
.close-icon { color: #FFFFFF; font-size: 30px; cursor: pointer; }
.mobile-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.mobile-links a { text-decoration: none; color: #FFFFFF; font-size: 32px; }

.content-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px; 
    margin-top: 40px;
    margin-bottom: 80px;
    width: 100%;
}

.text-content {
    color: #FFFFFF;
    width: 100%;
    text-align: center; 
}
.text-content h1 {
    font-size: 28px;
    margin: 0;
    line-height: 1.4;
}
.text-content p {
    color: #ABB2BF;
    margin-top: 20px;
    line-height: 25px;
}

/* Buttons */
button, .two, .second {
    border: 1px solid #C778DD;
    background-color: transparent;
    color: #FFFFFF;
    padding: 10px 20px;
    margin-top: 20px;
    margin-right: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}
.second { border: 1px solid #ABB2BF; color: #ABB2BF; }
button:hover, .two:hover, .second:hover {
    background-color: #C778DD44;
    transform: scale(1.05);
}

/* Flipper Image */
.image-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flipper-container {
    width: 100%;
    max-width: 350px; 
    height: 350px;
    position: relative;
    perspective: 1000px;
}
.flipper-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.flipper-inner.flipped { transform: rotateY(180deg); }
.flipper-front, .flipper-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    top: 0;
    left: 0;
}
.flipper-front { z-index: 2; transform: rotateY(0deg); }
.flipper-back { transform: rotateY(180deg); background-color: #1e1e1e; }
.flipper-front img, .flipper-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ABB2BF;
}
.hacker-img { filter: brightness(0.7) contrast(1.2); }

.b {
    display: flex;
    align-items: center;
    border: 1px solid #ABB2BF;
    background-color: #282C33;
    padding: 8px;
    width: fit-content;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
}
.b-container { margin-top: 15px; }
.c { width: 16px; height: 16px; background-color: #C778DD; margin-right: 10px; }
.b p { color: #ABB2BF; margin: 0; font-size: 14px; }

.cursor-blink { animation: blink 1s infinite; color: #C778DD; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.main-container {
    padding: 0 20px; 
    margin-bottom: 100px;
    width: 100%;
}

.quote-container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 70px;
}
.quote {
    border: 1px solid #ABB2BF;
    padding: 20px;
    position: relative;
    color: #FFFFFF;
    font-size: 18px;
    width: fit-content;
}
.quote-mark { position: absolute; top: -15px; left: 10px; background: #282C33; padding: 0 5px; }
.quote-mark-end { position: absolute; bottom: -15px; right: 10px; background: #282C33; padding: 0 5px; }
.d {
    border: 1px solid #ABB2BF;
    border-top: none;
    padding: 10px;
    color: #C778DD;
    align-self: flex-end;
}

.gap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 40px;
    margin-top: 80px;
}
.pro { display: flex; align-items: center; gap: 15px; }
.pro h2, .section-title h2 { color: #FFFFFF; font-size: 32px; font-weight: 500; margin: 0; }
.linee { width: 100px; height: 1px; background-color: #C778DD; }
.view-all a { text-decoration: none; color: #FFFFFF; }

.projects { display: flex; flex-direction: column; gap: 20px; }
.projects-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }

.project-1, .project-2, .project-small, .project-card {
    border: 1px solid #ABB2BF;
    width: 100%;
    color: #FFFFFF;
}
.project-small, .project-card.small { width: 100%; }

.project-card img, .project-1 img, .project-2 img {
    width: 100%;
    height: 201px;
    object-fit: cover;
    border-bottom: 1px solid #ABB2BF;
}
.line-1, .line-2, .card-tech {
    border-bottom: 1px solid #ABB2BF;
    padding: 8px;
    color: #ABB2BF;
    font-size: 14px;
}
.span-1 h2, .card-body h3 { color: #FFFFFF; font-size: 24px; margin: 15px; }
.project-1 p, .project-2 p, .project-small p, .card-body p {
    color: #ABB2BF;
    margin: 15px;
    font-size: 14px;
    line-height: 20px;
}
.card-body { padding: 0 10px 10px 10px; }
.card-buttons { display: flex; gap: 10px; padding: 0 15px 20px 15px; }

.hover-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: #C778DD;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.linee-short { width: 100px; height: 1px; background-color: #C778DD; }

.skills-container { display: flex; flex-direction: column; gap: 30px; }
.skills-left-shapes { display: none; }
.skills-right { display: flex; flex-wrap: wrap; gap: 20px; }
.skill-box { border: 1px solid #ABB2BF; width: 100%; }
.skill-header { border-bottom: 1px solid #ABB2BF; padding: 8px; font-weight: bold; color: #FFF; }
.skill-list { padding: 8px; color: #ABB2BF; line-height: 24px; }

.about-container { display: flex; flex-direction: column; gap: 30px; }
.about-text { width: 100%; color: #ABB2BF; line-height: 26px; }
.about-text p { color: #ABB2BF; margin-bottom: 15px; }
.about-image { width: 100%; }
.about-image img { width: 100%; border-bottom: 1px solid #C778DD; margin-top: 0; }
.about-page-layout { display: flex; flex-direction: column; gap: 30px; margin-bottom: 100px; }

.experience-list { display: flex; flex-direction: column; gap: 20px; }
.exp-item { border: 1px solid #ABB2BF; padding: 20px; color: #ABB2BF; }
.exp-date { color: #ABB2BF; font-size: 14px; display: block; margin-bottom: 8px; }
.exp-item h3 { color: #FFFFFF; margin: 0 0 5px 0; font-size: 20px; }
.exp-org { color: #C778DD; margin-bottom: 15px; display: block; font-weight: bold; }

.fun-facts-container { display: flex; gap: 15px; flex-wrap: wrap; }
.fact-tag { border: 1px solid #ABB2BF; padding: 8px 16px; color: #ABB2BF; font-size: 14px; }

.contact-full-layout { display: flex; flex-direction: column; gap: 40px; }
.contact-left { width: 100%; }
.contact-right { width: 100%; }
.contact-desc { color: #ABB2BF; line-height: 24px; margin-bottom: 30px; }
.support-box, .message-me-box { border: 1px solid #ABB2BF; padding: 16px; width: fit-content; max-width: 100%; }

.msg-title { color: #FFFFFF; font-weight: bold; margin-top: 0; margin-bottom: 15px; }
.payment-row, .contact-item { color: #ABB2BF; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.contact-form { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.form-row { display: flex; flex-direction: column; gap: 15px; margin-top: 20px;}
.form-input {
    background: transparent; border: 1px solid #ABB2BF; padding: 12px;
    color: #ABB2BF; font-family: inherit; width: 100%; outline: none;
}
.form-area { height: 120px; resize: none; }

.footer {
    display: flex; flex-direction: column; gap: 20px;
    padding: 30px 20px; border-top: 1px solid #ABB2BF; margin-top: 50px; text-align: center;
}
.footer-left { color: #FFFFFF; margin-top: 20px;}
.footer-right .socials { display: flex; justify-content: center; gap: 15px; }
.footer-right .socials img { width: 24px; height: 24px; }
.copyright { text-align: center; color: #ABB2BF; font-size: 14px; margin-bottom: 30px; }

.page-title-box { margin-bottom: 60px; }
.page-title { color: #FFFFFF; font-size: 32px; font-weight: 600; margin-bottom: 15px; }
.page-desc { color: #FFFFFF; font-size: 16px; margin: 0; }

.hidden-element { opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
.show-element { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

@media screen and (min-width: 992px) {
    .header-nav { padding: 32px 171px; }
    
    .main-container, .quote-container, .footer { padding: 0 171px; }
    
    .content-1, .about-page-layout, .about-container { 
        padding: 0 171px; 
        flex-direction: row; 
        text-align: left;
        align-items: center; 
        gap: 80px; 
    }

    .contact-full-layout {
        flex-direction: row; 
        padding: 0;  
        justify-content: space-between;
        align-items: flex-start;
        gap: 50px;
    }
    .contact-left { width: 40%; }
    .contact-right { width: 50%; }
    
    .burger-icon { display: none; }
    .nav.desktop-only { display: block; }
    
    .text-content { width: 50%; text-align: left; }
    .text-content h1 { font-size: 32px; }
    .image-content { width: 50%; align-items: flex-end; }
    .flipper-container { width: 460px; height: 380px; max-width: none; }
    .b { margin: 0; margin-top: 15px; margin-right: 0; }
    
    /* 5. GRIDS */
    .gap { flex-direction: row; align-items: center; }
    .linee { width: 500px; }
    
    .projects, .projects-grid { flex-direction: row; flex-wrap: wrap; }
    .project-1, .project-2, .project-card { width: 330px; }
    .project-small { width: 250px; }
    
    .form-row { flex-direction: row; }
    .form-input { width: 100%; }
    
    /* 7. ABOUT & SKILLS */
    .about-text, .about-image { width: 50%; }
    .about-image img { margin-top: 0; } 
    
    .skills-container { flex-direction: row; }
    .skills-left-shapes { display: block; width: 35%; }
    .shape-box { width: 60px; height: 60px; border: 1px solid #ABB2BF; margin-left: 20px; }
    .shape-dots { margin-top: 20px; margin-left: 60px; color: #ABB2BF; letter-spacing: 5px; }
    .skill-box { max-width: 178px; }
    
    /* 8. FOOTER */
    .footer { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-left { align-items: flex-start; }
    .footer-right .socials { justify-content: flex-end; }
}

/* Quote Alignment Fix */
@media screen and (min-width: 1232px) {
    .quote-container {
        width: 50%;         
        margin-left: 50%;   
        box-sizing: border-box; 
        padding-left: 20px; 
    }
}

@media screen and (max-width: 1100px) {
    .contact-full-layout {
        flex-direction: column; 
        padding: 0;         
        gap: 40px;
    }
    .contact-left, .contact-right { width: 100%; }
    .support-box, .message-me-box { width: 100%; box-sizing: border-box; }
}

.socials {
    display: flex;
    gap: 15px;
}
.socials img {
    width: 30px; 
    transition: transform 0.3s ease; 
    cursor: pointer;
}
.socials img:hover {
    transform: translateY(-5px); 
}
