/* v2 innovalo */

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: "Google Sans Code", monospace;
    overflow-x: hidden;
}




/* ========================= HEADER / NEWSLETTER ========================= */
header {
    height: 100vh;
    width: 100%;
    background-image: url("/images/banniereTDI2025.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 0 0 25px 25px;
    position: relative;
    margin-bottom: 60px;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(204,3,3,0.2) 100%);
    z-index: 1;
}

.newsletter-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 80px;
    z-index: 2;
}

.newsletter-overlay {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInRight 1s ease-out;
    transition: transform 0.3s ease;
}

.newsletter-overlay:hover {
    transform: translateY(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.h2-newsletter {
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.p-newsletter {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.newsletter-form:hover {
    transform: scale(1.02);
}

.newsletter-form input[type="email"] {
    padding: 18px 25px;
    flex: 1;
    border: none;
    outline: none;
    font-size: 1em;
    font-family: "Google Sans Code", monospace;
    background: white;
}

.newsletter-form button {
    padding: 18px 35px;
    border: none;
    background: linear-gradient(135deg, #CC0303 0%, #ff4444 100%);
    color: white;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Google Sans Code", monospace;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #990202 0%, #CC0303 100%);
    transform: scale(1.05);
}

/* ========================= LINKEDIN SECTION ========================= */
.linkedin-section {
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.linkedin-title {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.linkedin-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #CC0303, #ff4444);
    border-radius: 2px;
}

.linkedin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.linkedin-post {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    cursor: pointer;
}

.linkedin-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.linkedin-post:hover::before {
    opacity: 1;
}

.linkedin-post:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(204, 3, 3, 0.3);
}

.linkedin-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.linkedin-post:hover img {
    transform: scale(1.02);
}

/* Staggered animation for posts */
.linkedin-post:nth-child(1) { animation-delay: 0.1s; }
.linkedin-post:nth-child(2) { animation-delay: 0.2s; }
.linkedin-post:nth-child(3) { animation-delay: 0.3s; }
.linkedin-post:nth-child(4) { animation-delay: 0.4s; }
.linkedin-post:nth-child(5) { animation-delay: 0.5s; }
.linkedin-post:nth-child(6) { animation-delay: 0.6s; }

/* ========================= RESPONSIVE ========================= */
@media screen and (max-width: 1800px) {
    .navbar a {
        font-size: 1em;
    }

    .logo {
        width: 250px;
    }
}

@media screen and (max-width: 1500px) {
    .navbar a {
        font-size: 0.9em;
    }

    .navbar .nav-links ul li {
        margin: 0 8px;
    }
}

@media screen and (max-width: 1200px) {
    .linkedin-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .linkedin-section {
        padding: 40px 30px;
    }

    header {
        margin: 0;
        border-radius: 0;
    }

    .navbar {
        padding: 15px 30px;
    }

    .navbar .menu-hamburger {
        display: block;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        width: 200px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 20px;
    }

    .navbar .nav-links ul li {
        margin: 20px 0;
    }

    .navbar a {
        font-size: 1.8em;
        color: white;
    }

    .navbar a::after {
        background: linear-gradient(90deg, #fff, #CC0303);
    }

    .navbar a:hover {
        color: #ff4444;
    }

    .mobile-menu {
        margin-left: 0;
    }

    .newsletter-section {
        padding: 0 30px;
        justify-content: center;
    }

    .newsletter-overlay {
        padding: 40px 30px;
    }
}

@media screen and (max-width: 768px) {
    .h2-newsletter {
        font-size: 1.5em;
    }

    .p-newsletter {
        font-size: 1em;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 15px;
    }

    .newsletter-form input[type="email"] {
        border-radius: 15px 15px 0 0;
        padding: 15px 20px;
    }

    .newsletter-form button {
        border-radius: 0 0 15px 15px;
        padding: 15px 20px;
    }

    .linkedin-title {
        font-size: 2em;
        margin-left: 0;
    }

    .linkedin-section {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 600px) {
    .newsletter-overlay {
        padding: 30px 20px;
        border-radius: 20px;
    }

    header {
        height: 80vh;
    }

    .navbar {
        padding: 10px 20px;
    }

    .logo {
        width: 150px;
    }

    .navbar .menu-hamburger {
        right: 20px;
        width: 30px;
    }
}

/* ========================= SMOOTH SCROLLING ========================= */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #CC0303, #ff4444);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #990202, #CC0303);
}
