/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--blackberry) 0%, var(--blackberry-light) 100%);
    min-height: 91.1vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Code block */
.greeting {
    background: #1a1a1a;
    border: 2px solid var(--blackberry-light);
    border-radius: 12px;
    padding: 3rem 2rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

/* Code editor top bar */
.greeting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #2d2d2d;
    border-bottom: 1px solid var(--blackberry-light);
}

/* Code editor dots */
.greeting::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 20px;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Html */
.greeting .code-container {
    color: #f8f8f8;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

/* HTML Tag styling */
.html-tag { color: #e06c75; /* Red tags */}
.html-attribute { color: #d19a66; /* Orange attributes */ }
.html-value { color: #98c379; /* Green values */ }
.html-text { color: #f8f8f8; /* White text */ }
.html-comment { color: #5c6370; /* Grey for comments */ }

.code-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 5;
    pointer-events: none;
}
.code-snippet {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Position snippets */
.code-snippet:nth-child(1) { top: 15%; left: 13%; width: 191px; }
.code-snippet:nth-child(2) { top: 15%; right: 12%; width: 240px; }
.code-snippet:nth-child(3) { bottom: 2%; left: 1%; width: 165px; }
.code-snippet:nth-child(4) { bottom: 30%; right: 1%; width: 199px; }
.code-snippet:nth-child(5) { top: 25%; right: 30%; width: 175px; }
.code-snippet:nth-child(6) { top: 40%; left: 15%; width: 160px; }
.code-snippet:nth-child(7) { bottom: 10%; right: 45%; width: 185px; }
.code-snippet:nth-child(8) { top: 10%; right: 53%; width: 195px; }
.code-snippet:nth-child(9) { bottom: 1%; left: 31%; width: 170px; }
.code-snippet:nth-child(10) { top: 30%; left: 18%; width: 165px; }
.code-snippet:nth-child(11) { bottom: 72%; right: 44%; width: 190px; }
.code-snippet:nth-child(12) { top: 9%; left: 27%; width: 155px; }
.code-snippet:nth-child(13) { top: 22%; left: 33%; width: 175px; }
.code-snippet:nth-child(14) { top: 34%; right: 54%; width: 160px; }
.code-snippet:nth-child(15) { bottom: 14%; left: 39%; width: 180px; }
.code-snippet:nth-child(16) { top: 70%; right: 1%; width: 150px; }
.code-snippet:nth-child(17) { bottom: 3%; right: 35%; width: 185px; }
.code-snippet:nth-child(18) { top: 17%; left: 86%; width: 170px; }
.code-snippet:nth-child(19) { bottom: 50%; left: 55%; width: 165px; }
.code-snippet:nth-child(20) { top: 72%; left: 40%; width: 175px; }
.code-snippet:nth-child(21) { bottom: 55%; right: 45%; width: 155px; }
.code-snippet:nth-child(22) { top: 10%; right: 35%; width: 170px; }
.code-snippet:nth-child(23) { bottom: 18%; left: 55%; width: 160px; }
.code-snippet:nth-child(24) { top: 24%; right: 2%; width: 206px; }
.code-snippet:nth-child(25) { bottom: 30%; right: 65%; width: 150px; }
.code-snippet:nth-child(26) { top: 12%; left: 65%; width: 165px; }
.code-snippet:nth-child(27) { top: 68%; right: 64%; width: 242px; }
.code-snippet:nth-child(28) { bottom: 8%; left: 65%; width: 175px; }
.code-snippet:nth-child(29) { top: 76%; right: 75%; width: 242px; }
.code-snippet:nth-child(30) { bottom: 15%; right: 68%; width: 185px; }
.code-snippet:nth-child(31) { top: 43%; left: 70%; width: 165px; }
.code-snippet:nth-child(32) { bottom: 50%; left: 75%; width: 155px; }
.code-snippet:nth-child(33) { top: 68%; left: 78%; width: 240px; }
.code-snippet:nth-child(34) { bottom: 60%; right: 85%; width: 145px; }
.code-snippet:nth-child(35) { top: 25%; right: 90%; width: 165px; }
.code-snippet:nth-child(36) { bottom: 4%; left: 75%; width: 155px; }
.code-snippet:nth-child(37) { top: 60%; right: 87%; width: 243px; }
.code-snippet:nth-child(38) { bottom: 27%; right: 71%; width: 455px; }
.code-snippet:nth-child(39) { top: 40%; left: 79%; width: 160px; }
.code-snippet:nth-child(40) { bottom: 14%; left: 32%; width: 170px; }
.code-snippet:nth-child(41) { top: 55%; right: 5%; width: 155px; }
.code-snippet:nth-child(42) { bottom: 34%; left: 6%; width: 165px; }
.code-snippet:nth-child(43) { top: 48%; right: 9%; width: 320px; }
.code-snippet:nth-child(44) { bottom: 72%; left: 1%; width: 323px; }
.code-snippet:nth-child(45) { top: 67%; right: 23%; width: 260px; }
.code-snippet:nth-child(46) { bottom: 73%; left: 20%; width: 155px; }
.code-snippet:nth-child(47) { top: 70%; right: 40%; width: 165px; }
.code-snippet:nth-child(48) { bottom: 75%; left: 36%; width: 160px; }
.code-snippet:nth-child(49) { top: 8%; right: 10%; width: 170px; }
.code-snippet:nth-child(50) { bottom: 32%; left: 33%; width: 625px; }


/*Button opmaak*/
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}
.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.btn-projects {
    background: var(--blackberry-light);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 39, 71, 0.3);
}
.btn-contact {
    background: transparent;
    color: white;
    border: 2px solid var(--blackberry-light);
    box-shadow: 0 4px 15px rgba(109, 39, 71, 0.2);
}

/* hover */
.btn-projects:hover {
    background: var(--blackberry);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(109, 39, 71, 0.4);
}
.btn-contact:hover {
    background: var(--blackberry-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(109, 39, 71, 0.4);
}


/* Social container */
.floating-social-container {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
}

/* Background */
.floating-social-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 220px;
    background: rgba(72, 24, 47, 0.4);
    border: 1.5px solid rgb(255, 255, 255);
    border-radius: 35px;
    backdrop-filter: blur(15px);
    box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Column */
.floating-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0.5rem;
    position: relative;
    z-index: 1;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--blackberry-light);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Effects */
.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.social-link:hover .social-icon {
    transform: scale(1.2);
}

/* Colors platforms*/
.social-link:hover:nth-child(1) {
    background: #0077b5;
    border-color: #0077b5;
}
.social-link:hover:nth-child(2) {
    background: #333;
    border-color: #333;
}
.social-link:hover:nth-child(3) {
    background: #ea4335;
    border-color: #ea4335;
}
/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
        min-height: 80vh;
    }
    .greeting {
        padding: 2.5rem 1.5rem;
    }
    .greeting .code-container {
        font-size: 1rem;
    }

    /*buttons*/
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2.5rem;
    }
    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 200px;
        text-align: center;
    }

    .code-background {
        display: none;
    }
    .floating-social-container{
        display: none;
    }
}

@media (max-width: 480px) {
    .greeting {
        padding: 2rem 1rem;
    }
    .greeting .code-container {font-size: 0.9rem;
    }

    /* buttons */
    .hero-buttons {
        margin-top: 2rem;
    }
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        width: 180px;
    }

    .code-background{
        display: none;
    }
    .floating-social-container{
        display: none;
    }
}

/*--------------------------------------------------------------*/



/* RESPONSIVE */
@media (max-width: 768px) {
    .floating-social-container {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-social-background {
        width: 60px;
        height: 180px;
    }

    .floating-social {
        gap: 1.2rem;
        padding: 1.8rem 0.4rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .floating-social-container {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .floating-social-background {
        width: 55px;
        height: 160px;
    }

    .floating-social {
        gap: 1rem;
        padding: 1.5rem 0.3rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-icon {
        width: 16px;
        height: 16px;
    }
}