/* ================= Algemene Stijlen ================= */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 50px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= Navbar ================= */
.navbar.bg-primary {
    background-color: #002144 !important;
}

.navbar-brand {
    color: #fff;
    font-size: 0.9em;
    font-weight: 800;
    letter-spacing: 2px;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
    color: #fff;
}

.navbar-nav .nav-link.active,
.navbar-nav .dropdown-item.active {
    text-decoration: underline;
    font-weight: bold;
}

/* ================= Dropdown Menu ================= */
.dropdown-menu,
.dropdown-submenu {
    background-color: #002144;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #3a3f9e;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-radius: 0 0.25rem 0.25rem 0;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    margin-top: -0.3em;
    border: 0.3em solid transparent;
    border-left-color: #fff;
    font-size: 0.8em;
}

@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        margin-top: 0;
        border-radius: 0.25rem;
    }

    .dropdown-submenu > a::after {
        border-left: none;
        border-right: 0.3em solid #fff;
    }
}

/* ================= Jumbotron ================= */
.jumbotron {
    padding: 6rem 0;
    background-color: #001c3a;
    position: relative;
}

.ProfielFoto {
    float: right;
    width: 60%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ================= Skills ================= */
.skill-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.skill-card h5 {
    margin-top: 1rem;
    color: #002144;
}

.skill-card p {
    color: #555;
}

/* ================= Cards (Algemeen + Projecten) ================= */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
    position: relative;
}

.card-title {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.card-text {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.card-body .btn {
    position: absolute;
    bottom: 1rem;
    left: 2rem;
}

/* ================= Projecten ================= */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.project-image {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.project-image:hover {
    transform: scale(1.03);
}

.col-md-6 {
    margin-bottom: 2.5rem;
}

/* ================= Footer ================= */
footer {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

/* ================= Contact Pagina ================= */
.contact-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contact-form-container,
.contact-details-container {
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container {
    background-color: #fff;
}

.contact-details-container {
    background-color: #e9ecef;
}

.contact-form-container h3,
.contact-details-container h3 {
    margin-bottom: 2rem;
    color: #007bff;
}

.contact-details-container p {
    margin-bottom: 0.5rem;
}

.contact-details-container a {
    color: #007bff;
}

.contact-details-container a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.form-group label {
    font-weight: bold;
    color: #343a40;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* ================= Layout Helpers ================= */
.boxvoorspul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
}

.naarrechts {
    text-align: right;
}

/* ================= Code Terminal / Typing ================= */
.code-terminal {
    background-color: #1e1e1e;
    color: #00ff88;
    font-family: monospace;
    padding: 1rem 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin-top: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: pre;
    overflow: hidden;
    font-size: 1rem;
}

#typed-name::after,
#typed-subtitle::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ================= 3D Cube Animatie ================= */
.cube-container {
    width: 150px;
    height: 150px;
    perspective: 1000px;
    position: absolute;
    top: 50%;
    right: 6rem;
    transform: translateY(-50%);
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube, .cube * {
    user-select: none;
    pointer-events: none;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.cube .face img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px #ffffffaa);
}

.front  { transform: translateZ(75px); }
.back   { transform: rotateY(180deg) translateZ(75px); }
.right  { transform: rotateY(90deg) translateZ(75px); }
.left   { transform: rotateY(-90deg) translateZ(75px); }
.top    { transform: rotateX(90deg) translateZ(75px); }
.bottom { transform: rotateX(-90deg) translateZ(75px); }

.cube-container:hover .cube {
    animation-play-state: paused;
    cursor: grab;
}

.cube-container:active .cube {
    cursor: grabbing;
}

/* ================= Responsive Cube ================= */
@media (max-width: 768px) {
    .cube-container {
        width: 100px;
        height: 100px;
        right: 2rem;
        top: 70%;
    }

    .face {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    .cube .face img {
        width: 40px;
        height: 40px;
    }

    .front  { transform: translateZ(50px); }
    .back   { transform: rotateY(180deg) translateZ(50px); }
    .right  { transform: rotateY(90deg) translateZ(50px); }
    .left   { transform: rotateY(-90deg) translateZ(50px); }
    .top    { transform: rotateX(90deg) translateZ(50px); }
    .bottom { transform: rotateX(-90deg) translateZ(50px); }
}
