body {
    margin: 0;
    background-color: #F3F0E8;
    color: #0F0404;
    font-family: 'PolySans-Neutral';
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
  }
  

a {
    color: #0F0404;
}

a:hover {
    color: #B9E046;
}

*, *::before, *::after {
    box-sizing: border-box;
}


@font-face {
    font-family: 'PolySans-Median';
    src: url('fonts/PolySans-Median.eot');
    src: url('fonts/PolySans-Median.eot?#iefix') format('embedded-opentype'),
        url('fonts/PolySans-Median.woff2') format('woff2'),
        url('fonts/PolySans-Median.woff') format('woff'),
        url('fonts/PolySans-Median.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'PolySans-Neutral';
    src: url('fonts/PolySans-Neutral.eot');
    src: url('fonts/PolySans-Neutral.eot?#iefix') format('embedded-opentype'),
        url('fonts/PolySans-Neutral.woff2') format('woff2'),
        url('fonts/PolySans-Neutral.woff') format('woff'),
        url('fonts/PolySans-Neutral.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta-Medium';
    src: url('fonts/Recoleta-Medium.eot');
    src: url('fonts/Recoleta-Medium.eot?#iefix') format('embedded-opentype'),
        url('fonts/Recoleta-Medium.woff2') format('woff2'),
        url('fonts/Recoleta-Medium.woff') format('woff'),
        url('fonts/Recoleta-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

p{
    font-size: 26px;
    margin: 32px 0 0 0;
}

h1{
    font-family: 'PolySans-Median';
    font-size: 36px;
    color: #0F0404;
    overflow: hidden;
    margin: 0;
}

h2{
    font-family: 'PolySans-Median';
    margin: 0;
    font-size: 36px;
}

h3{
    font-family: 'PolySans-Median';
    margin: 0;
    font-size: 28px;
}

/* Ensures full-width container spans the entire viewport */
.full-width {
    width: 100%;
    padding: 0 16px;
}

/* Centers content and limits width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.opacity50{
    opacity: 50%;
 }


/* Header Styling */
header {
    width: 100%;
    padding: 16px 32px;
    border-radius: 8px;
    background-color: #0F0404;
    margin-top: 16px;
}

/* Flexbox container for header content */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content .logo{
    width: 130px;
}

/* Logo styling */
.logo svg {
    display: block;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
}

.nav-links a:hover {
    color: #D7FF5E;
}

/* Call-to-action button */

.cta-button {
    font-family: 'Recoleta-Medium';
    padding: 12px 32px;
    background: #D7FF5E;
    color: #0F0404;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
    isolation: isolate;
    overflow: visible;
}

.hero-content .cta-button{
    display: none;
}

.cta-button:active {
    transform: scale(0.96);
}

.cta-button:before,
.cta-button:after {
    position: absolute;
    content: "";
    width: 150%;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    background-repeat: no-repeat;
    mix-blend-mode: overlay;
    opacity: 0;
    pointer-events: none;
}

.cta-button:hover{
    color: initial;
}

.cta-button:hover:before {
    top: -70%;
    background-image: 
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, transparent 20%, #D7FF5E 25%, transparent 35%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, transparent 15%, #D7FF5E 20%, transparent 25%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%);
    background-size: 12% 12%, 22% 22%, 18% 18%, 22% 22%, 20% 20%, 12% 12%, 18% 18%, 12% 12%, 20% 20%;
    background-position: 50% 120%;
    animation: greentopBubbles 0.6s ease forwards;
    opacity: 1;
}

.cta-button:hover::after {
    bottom: -70%;
    background-image: 
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, transparent 15%, #D7FF5E 20%, transparent 25%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%),
        radial-gradient(circle, #D7FF5E 25%, transparent 30%);
    background-size: 18% 18%, 22% 22%, 20% 20%, 22% 22%, 18% 18%, 22% 22%, 20% 20%;
    background-position: 50% 0%;
    animation: greenbottomBubbles 0.6s ease forwards;
    opacity: 1;
}

@keyframes greentopBubbles {
    0% {
        background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
            40% 90%, 55% 90%, 70% 90%;
        opacity: 1;
    }
    50% {
        background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
            50% 50%, 65% 20%, 90% 30%;
    }
    100% {
        background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
            50% 40%, 65% 10%, 90% 20%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0;
    }
}

@keyframes greenbottomBubbles {
    0% {
        background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
            70% -10%, 70% 0%;
        opacity: 1;
    }
    50% {
        background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
            105% 0%;
    }
    100% {
        background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
            110% 10%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0;
    }
}

.hero-content{
    text-align: center;
    margin: 16px;
}

.hero-content .underline{
    position: relative;
    display: inline-block;
    line-height: 1.2;
    box-shadow: inset 0 -8px 0 #D7FF5E;
}

#changing-word {
    position: relative;
    display: inline-block;
    padding-right: 4px; /* Space for the cursor */
    font-style: italic;
    opacity: 0.7;
}

#changing-word::after {
    content: "|"; /* The cursor bar */
    position: absolute;
    right: 0;
    top: 0;
    font-size: 2rem; /* Adjust the cursor size */
    color: black;
    animation: blink 0.8s infinite;
}

/* Cursor blinking effect */
@keyframes blink {
    50% {
        opacity: 0;
    }
}


.carousel-container {
    overflow: hidden;
    width: 100%; /* Adjust based on your image width */
    height: auto; /* Adjust based on your image height */
    position: relative;
    text-align: center;
}

.carousel-container p{
    font-size: 14px;
    margin-bottom: 8px;
}

.carousel {
    display: flex;
    width: 600%; /* Adjust based on number of images */
    animation: scroll 50s linear infinite;
}

.carousel img {
    width: 200px; /* Adjust logo size */
    height: auto;
    margin: 0 32px;
    opacity: 0.6;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Adjust based on number of images */
}

.top-section{
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 64px;
}

.top-section .container{
    width: 100%;
    padding: 0px 16px;
}

.header-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    
    .textwidget {
        flex: 0 0 auto; /* Don't grow or shrink */
        padding: 0 8px; /* Add some padding around text */
    }
    
    .textwidget p{
        font-size: 12px;
        margin: 0;
    }

    .laurel-left, .laurel-right {
        flex: 0 0 auto; /* Don't grow or shrink */
        
        svg {
            height: 40px; /* Adjust as needed */
            width: auto;
            
            path {
                fill: #0F0404;
            }
        }
    }
    
    .laurel-right {
        transform: scaleX(-1); /* Flip horizontally */
    }
}


.about {
    background-color: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 64px 80px 40px;
    margin: 16px 0;
}

.tag{
    background-color: #D7FF5E;
    padding: 8px 16px 8px 28px;
    display: inline-block;
    border-radius: 30px;
    font-size: 12px;
    position: relative;
    border: 1px solid #B9E046;
}

.tag:before{
    content: "";
    position: absolute;
    width: 8px; /* Circle size */
    height: 8px; /* Circle size */
    background-color: white;
    border-radius: 50%; /* Makes it circular */
    top: 50%;
    left: 12px; /* Distance from left edge */
    transform: translateY(-50%);
    z-index: 1; /* Ensures it appears above the button background */
}

#portfolio{
    text-align: center;
    padding: 64px 0;
}

#portfolio article{
    margin-bottom: 120px;
}

.portfolio {
    background-color: #0F0404;
    color: white;
    border-radius: 16px;
    padding: 80px 0 8px;
}

#portfolio p{
    margin: 0;
}

.top-header{
    margin-bottom: 44px;
}


.article-image {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    position: relative;
    opacity: 0; /* Start fully transparent */
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.article-image img {
    width: 100%;
    border-radius: 16px;
    margin-top: 32px;
    display: block;
}


.article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
    pointer-events: none;
    border-radius: 0 0 16px 16px;
}

.article-image .cta-button {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== Active State When Visible ===== */
.article-image.active {
    opacity: var(--fade-progress, 0);
    transform: translateY(calc(20px * (1 - var(--fade-progress, 0))));
}

  .article-image.active .cta-button {
    opacity: var(--fade-progress, 0);
}


.content-title {
    text-align: center;
    margin-bottom: 80px;
}

.content-title h2{
    font-size: 64px;
    line-height: 77px;
}

.cards {
    display: flex;
    gap: 32px;
}

.card{
    flex: 1; /* Makes all cards equal width */
    background-color: #fff;
    padding: 32px;
    border-radius: 8px;
}

.card a{
    text-decoration: none;
    color: #0F0404;
}

.card a:hover .copy-box{
    border: 1px solid #0F0404;
}

.top-card{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}


.top-card p{
    margin: 0;
}

.contact-info{
    margin-bottom: 80px;
    padding: 64px 0px;
}

.cards .call{
    background-color: #0F0404;
}

.cards .call .top-card{
    color: #D7FF5E;
}



.copy-box {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #EEFCFE;
    border: 1px dashed #0F0404;
    border-radius: 8px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.call .copy-box{
    background: #D7FF5E;
}

.copy-box a, .copy-box p{
    font-size: 16px;
    margin:0;
}

.copy-box button:active {
    transform: scale(0.96);
}

.copy-box span{
    font-size: 16px;
}

button {
    border: none;
    background-color: transparent;
    color: #0F0404;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 4px;
}


.message {
    position: absolute;
    top: -18px;
    right: -6px;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #0F0404;
    background: #D7FF5E;
    opacity: 0;
    transition: opacity 0.5s;
}

.call .message{
    background-color: #fff;
}

.message.show {
    opacity: 1;
}

.footer-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer{
    background-color: #0F0404;
    padding: 16px;
}

.footer-content p{
    font-size: 16px;
    margin: 0;
    color: #fff;
}

.disabled-link{
    cursor: default;
    pointer-events: none;        
    text-decoration: none;
    opacity: 0.5;
}



 /* Article page */
 .article-content{
    margin-top:80px;
}

.spacer {
    display: block; /* Facem să fie block pentru a ocupa întreaga lățime */
    width: 100%;    /* Lățimea completă a containerului părinte */
}

/* Spacer de 16px */
.spacer-16 {
    height: 16px;
}
  
/* Spacer de 32px */
.spacer-32 {
    height: 32px;
}
  
/* Spacer de 64px */
.spacer-64 {
    height: 64px;
}
  

.article-top .tag{
    margin-bottom: 8px;
}


.article-info{
    margin-top:32px;
}

.container-article img{
    width: 100%;
    border-radius: 16px;
    border: 1px solid #F3F0E8;
    margin: 32px 0px;
}

.icon-list {
    list-style-type: none;
    padding: 0;
}
  
.icon-list li {
    display: flex;
    margin: 8px 0;
    position: relative;
}

.icon-list li::before{
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    background-image: url(img/check-mark-regular.svg);
    background-size: contain;
    background-repeat: no-repeat;
}
  
.icon-list .material-symbols-outlined {
    margin-right: 8px;
    color: #0F0404;
    margin-top: 8px;
}


.icon-list p{
    margin: 0;
    padding-left: 24px;
}

.container-article p, .icon-list p{
    font-size: 20px;
}


.article-info p{
    display: inline-block;
    margin: 0;
}

.articles {
    display: flex;
    gap: 32px;
}

.article {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #F3F0E8;
    transition: ease-in 0.2s;
}

.article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: 0.2s ease;
}

.article:hover{
    box-shadow: 10px 69px 28px rgba(0, 0, 0, 0.01), 5px 39px 23px rgba(0, 0, 0, 0.05), 2px 17px 17px rgba(0, 0, 0, 0.09), 1px 4px 10px rgba(0, 0, 0, 0.1);
}

.article:hover img {
    transform: scale(1.02);
}

.article p{
    font-size: 16px;
    margin: 16px 0 0 0;
    text-align: left;
    opacity: 0.7;
    color:#0F0404;
}

.article:hover p{
    opacity: 1;
}

.no-margin p{
    margin: 0;
}

.about-me{
    display: flex;
    gap: 24px;
}

.about-me img{
    max-width: 150px;
}

@media only screen and (max-width: 1024px) {
    .cards {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center; /* Center all cards */
    }
    
    .card {
        flex: 0 0 calc(50% - 8px); /* Each card takes 50% width minus half the gap */
        max-width: calc(50% - 8px); /* Ensure they don't grow beyond */
        padding: 24px;
    }
    
    .card.call {
        flex: 0 0 100%;
    }
    
    .card:not(.call) {
        flex: 1;
        min-width: calc(50% - 8px); /* Half of the gap (16px) */
    }
}


@media only screen and (max-width: 767px) {
    h1{
        font-size: 26px;
    }

    .container-article img {
        border-radius: 8px;
    }

    h2{
        font-size: 24px;
    }

    h3{
        font-size: 22px;
    }

    p{
        font-size: 16px;
    }

    .about{
        padding: 32px;
    }

    .about .container-article {
        padding: 0;
    }

    .content-title h2 {
        font-size: 40px;
        line-height: normal;
    }


    .cards {
        flex-direction: column; /* Stack vertically */
        gap: 12px; /* Reduce gap for stacked cards */
    }
    
    .card {
        flex: 0 0 100% !important; /* Force full width (override any other rules) */
        max-width: 100% !important;
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-content .cta-button{
        display: none;
    }

    .header-content .logo {
        width: auto;
    }

    .nav-links a {
        line-height: 80px;
    }

    .carousel img {
        width: 120px;
    }

    .contact-info{
        padding: 0;
    }

    .content-title {
        margin-bottom: 40px;
    }

    .hero-content .cta-button {
        display: inline-block;
        margin-top: 16px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        line-height: 60px;
    }

    .articles {
        flex-direction: column;
    }

    .about-me {
        flex-direction: column;
        gap: 0;
        margin-bottom: 40px;
    }

    .about-me img{
        margin-bottom: 0;
    }

}


@media only screen and (max-width: 480px) {
    /* Styles for very small screens */
}

