* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body {
    font-family: 'Inter', sans-serif;
    color: white;
    background: #280a0a; 
    overflow-x: hidden;
}
.content {
    width: 100%;
    display: block;
    padding-top: 60px; 
}
.hero {
    max-width: 1000px;
    padding: 0 20px;
}
.badge {
    display: inline-block;
    background: rgba(246, 59, 59, 0.1);
    border: 1px solid rgba(246, 59, 59, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    color: #fa6060;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}
h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(90deg, #ffffff, #f63b3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    margin-top: 20px;
    line-height: 1.6;
    font-weight: 300;
    max-width: 550px;
}
.hero > * {
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero .badge { animation-delay: 0.3s; } 
.hero h1 { animation-delay: 0.5s; }   
.hero p { animation-delay: 0.7s; }    

@keyframes heroReveal {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px; 
    animation: imageFloat 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.8s; 
}
.image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: 30px;
    padding: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg); 
    transition: 0.5s ease;
}
.image-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; 
}
.frame-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(246, 59, 59, 0.2), transparent);
    pointer-events: none;
    border-radius: 30px;
}
@keyframes imageFloat {
    from { transform: translateX(50px) rotateY(-10deg); opacity: 0; }
    to { transform: translateX(0) rotateY(-5deg); opacity: 1; }
}
#about-section {
    padding-top: 130px; 
    min-height: 100vh;
}
.about-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInContent 0.8s ease-out forwards;
}
.about-header { margin-bottom: 40px; }
.about-header h2 { font-size: 3rem; font-weight: 800; letter-spacing: -2px; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
}
.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 28px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.about-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(246, 59, 59, 0.08);
    border-color: rgba(246, 59, 59, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.card-icon { font-size: 2rem; margin-bottom: 20px; }
.about-card h3 { font-size: 2.0rem; margin-bottom: 10px; color: #fff; }
.about-card p { color: rgba(255,255,255,0.5); font-size: 0.95rem; line-height: 1.5; }
.active-card { border-color: #f63b3b; background: rgba(246, 59, 59, 0.05); }

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
.page-block {
    width: 100%;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 6%; 
    box-sizing: border-box;
    position: relative;
}
#home-section {
    padding-top: 100px !important; 
}
#kapsam-section {
    justify-content: flex-start !important;
    padding-top: 220px !important; 
}
.content {
    width: 100%;
    display: block;
    padding-top: 0 !important; 
}
.kapsam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; 
    margin-top: 25px;
    width: 100%;
}
.kapsam-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px; 
    border-radius: 12px; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
.kapsam-card:hover {
    background: rgba(246, 59, 59, 0.04);
    border-color: rgba(246, 59, 59, 0.3);
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.card-icon {
    font-size: 1.5rem; 
    margin-bottom: 15px;
    display: block;
}
.kapsam-card h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem; 
    font-weight: 600;
}
.kapsam-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.5;
}
#kapsam-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding: 80px 6%; 
    box-sizing: border-box;
}
.hero-full {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left; 
}
.kapsam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.stack-item {
    display: flex;
    align-items: center;
    gap: 10px;               
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;      
    border-radius: 8px;      
    white-space: nowrap;
}
.stack-item img {
    width: 22px;            
    height: 22px;
    object-fit: contain;
    filter: grayscale(0.8) brightness(0.8); 
    transition: 0.3s ease;
}
.stack-item:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}
.stack-item span {
    font-size: 13px;         
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
.tech-stack-wrapper {
    display: block !important;
    margin-top: 150px !important; 
    width: 100%;
    position: relative;
    padding-top: 20px;
    padding-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.tech-stack-wrapper {
    display: block !important; 
    width: 100% !important;
    margin-top: 100px !important; 
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    clear: both;
}
.stack-slide {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: scrollInfinite 30s linear infinite;
}
@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}
#final-section {
    position: relative;
    overflow: hidden;
    padding: 30px 6% 30px;
    background: linear-gradient(
        180deg,
        #0a1128 0%,
        #0b0f2a 45%,
        #050712 100%
    );
}
.footer-glow {
    position: absolute;
    left: 50%;
    bottom: -120px;          
    transform: translateX(-50%);
    width: 1200px;
    height: 260px;         
    background: radial-gradient(
        ellipse at center,
        rgba(255,90,90,0.35),
        rgba(255,120,120,0.25),
        transparent 65%
    );
    filter: blur(45px);
    pointer-events: none;
}
#final-section::before {
    overflow: hidden;
    min-height: unset !important;
    content: "";
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,120,120,0.6),
        transparent
    );
}
.footer-inner {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-left {
    max-width: 380px;
}
.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.footer-left p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}
.footer-socials {
    margin: 25px 0 15px;
    display: flex;
    gap: 15px;
    color: rgba(255,255,255,0.6);
}
.footer-contact {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-cols {
    display: flex;
    gap: 70px;
}
.footer-cols h4 {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #fff;
}
.footer-cols a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: 0.3s;
}
.footer-cols a:hover {
    color: #ff8a8a;
    transform: translateX(4px);
}
.footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    display: flex;
    align-items: center; 
    gap: 12px;           
}
.footer-brand-img {
    height: 32px;        
    width: auto;         
    object-fit: contain;
}
.footer-brand-img {
    height: 35px;
    width: 35px;
    object-fit: cover;
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}
.terminal-container, .about-card, .project-card {
    border-radius: 12px !important; 
    overflow: hidden; 
}
#final-section::before {
    content: "";
    position: absolute;
    top: 0px; 
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(120, 140, 255, 1), 
        transparent
    );
    box-shadow: 0 0 25px rgba(120, 140, 255, 0.7); 
    z-index: 5;
}
.footer-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;

    transition: all 0.3s ease;
}
.footer-socials img {
    width: 30px;
    height: 30px;
    object-fit: contain;

    filter: brightness(0) invert(1);
    opacity: 0.85;

    transition: 0.3s ease;
}
.footer-socials a:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}

.footer-socials a:hover img {
    opacity: 1;
}
@media (max-width: 768px) {
    .footer-socials a {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .footer-socials img {
        width: 15px;
        height: 15px;
    }
}
.footer-socials {
    display: flex;
    gap: 14px;
}
.footer-socials .icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;

    transition: all 0.3s ease;
}
.footer-socials .icon::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;

    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;

    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;

    opacity: 0.85;
    transition: 0.3s ease;
}
.footer-socials .icon:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,138,138,0.25);
}
.footer-socials .icon:hover::before {
    opacity: 1;
}
.footer-socials .insta::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5a5 5 0 1 0 0 10a5 5 0 0 0 0-10zm6.5-.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z'/>\
</svg>");
    mask-image: -webkit-mask-image;
}
.footer-socials .tiktok::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='black' d='M16 2c1 2 3 3 5 3v4c-2 0-4-1-5-2v7a6 6 0 1 1-6-6v4a2 2 0 1 0 2 2V2h4z'/>\
</svg>");
    mask-image: -webkit-mask-image;
}
.footer-socials .icon::before {
    background: #ff8a8a;
    border-radius: 50%;
}
@media (min-width: 769px) {
    .footer-cols {
        margin-left: auto;      
        text-align: left;
    }
}
@media (min-width: 769px) {
    .footer-inner {
        display: grid !important;
        grid-template-columns: 1fr auto; 
        align-items: start;
        gap: 80px;
    }

    .footer-cols {
        justify-self: end;   
        text-align: left;
    }
}
.footer-mail {
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    text-align: left;
}
.footer-mail:hover {
    color: #ff8a8a;
}
.footer-left {
    max-width: 380px;
    margin-top: 40px; 
}
.footer-cols {
    margin-top: 40px; 
}
#final-section.page-block {
    min-height: auto !important;
    justify-content: flex-start !important;
    padding-top: 40px !important;
    padding-bottom: 30px !important;
}
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
* {
    scrollbar-width: none;
}
#notfound-section {
    display: none;
    align-items: center;
    justify-content: center;
}

#notfound-section.active {
    display: flex;
}

.error-box {
    background: rgba(10, 17, 40, 0.55);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 60px;
    text-align: center;
    max-width: 520px;
}
.error-box h1 {
    font-size: 96px;
    letter-spacing: 6px;
}
