/* 
* Creaty Agency - Theme Stylesheet
* Version: 2.0
*/

:root {
    /* Brand Colors - Bazate pe logo-ul Creaty */
    --creaty-yellow: #F9C244;
    --creaty-blue-light: #9DE0F4;
    --creaty-blue-medium: #65C7E8;
    --creaty-blue-dark: #0185B8;
    --creaty-dark: #121212;
    --creaty-light: #FFFFFF;
    
    /* Culori complementare */
    --creaty-space-bg: #0A0F1F;
    --creaty-space-light: #1A2240;
    --creaty-rocket-gray: #D1D3D4;
    --creaty-cloud-blue: #E8F6FC;
    
    /* Overlay effects */
    --tech-gradient: linear-gradient(135deg, rgba(15, 20, 45, 0.8) 0%, rgba(10, 15, 30, 0.9) 100%);
    --space-gradient: linear-gradient(180deg, var(--creaty-space-bg) 0%, #071330 100%);
    --yellow-glow: 0 0 20px rgba(249, 194, 68, 0.4);
    --blue-glow: 0 0 15px rgba(101, 199, 232, 0.5);
}

/* Safari-specific styles */
_::-webkit-full-page-media, _:future, :root .safari {
    /* Fix flexbox and grid issues in Safari */
    .services-grid, .benefits-grid, .hero-content, .footer-content {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    /* Fix header position */
    .header {
        position: -webkit-sticky;
        position: sticky;
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
    
    /* Fix hover transitions */
    .service-card:hover, .benefit-card:hover, .btn:hover {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    
    /* Fix gradient backgrounds */
    .hero, .cta-section {
        background: #6772e5;
        background: -webkit-linear-gradient(135deg, #6772e5 0%, #4751c4 100%);
    }
    
    /* Fix border radius and shadows */
    .btn, .service-card, .benefit-card {
        -webkit-border-radius: 10px;
    }
    
    @media (max-width: 992px) {
        body, html {
            height: 100%;
            width: 100%;
            -webkit-overflow-scrolling: touch;
            overflow-x: hidden;
        }
        
        .nav {
            -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
        }
    }
}

/* Header styles */
.header {
    background-color: rgba(10, 15, 30, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(10, 15, 30, 0.98);
}

@media (max-width: 992px) {
    /* Mobile header styles */
    .header {
        position: sticky;
        top: 0;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
}

@media (min-width: 993px) {
    .dropdown-menu {
        display: none;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1500;
        overflow: visible;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background-color: rgba(10, 15, 30, 0.95);
        border-radius: 8px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.8rem 0;
    }
    
    .nav-item.has-dropdown {
        position: relative;
    }
    
    .nav-item.has-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    
    .dropdown-toggle {
        position: relative;
        z-index: 2;
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
        display: block;
        width: 100%;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.95rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-link::after {
    background: linear-gradient(to right, var(--creaty-blue-medium), var(--creaty-blue-dark));
    bottom: -5px;
    content: "";
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.logo img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--creaty-space-bg) 0%, #071330 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/star-bg.svg');
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/grid-overlay.svg');
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.hero-feature {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.hero-feature i {
    color: var(--creaty-blue-medium);
    font-size: 1.2rem;
}

.hero-feature span {
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    position: relative;
}

.hero-image img.rocket {
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, #6772e5 0%, #4751c4 100%);
    box-shadow: 0 5px 15px rgba(103, 114, 229, 0.3);
    color: #ffffff;
}

.hero-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hero-cta .btn-primary:hover {
    box-shadow: 0 10px 25px rgba(103, 114, 229, 0.4);
    transform: translateY(-3px);
}

.services {
    padding: 5rem 0;
    position: relative;
}

.service-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.service-card::after {
    background: linear-gradient(to right, #6772e5, #24b47e);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    transition: width 0.3s ease;
    width: 0;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-10px);
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    background: linear-gradient(135deg, #6772e5 0%, #4751c4 100%);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(103, 114, 229, 0.3);
    margin-bottom: 1.5rem;
}

.case-study-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    box-shadow: 0 25px 50px rgba(50, 50, 93, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}

.case-study-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.case-study-image::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    content: "";
    height: 50%;
    left: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.results-list li strong {
    color: #24b47e;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: var(--creaty-space-bg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/star-bg.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #6772e5 0%, #4751c4 100%);
    transform: translateY(-3px);
}

/* Tech particle styling */
.tech-particle {
    background: linear-gradient(135deg, #6772e5 0%, #4751c4 100%);
    border-radius: 50%;
    opacity: 0.7;
    position: absolute;
    animation: pulse 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

/* Button styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6772e5 0%, #4751c4 100%);
    border: none;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #6772e5;
}

.btn-primary:hover {
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background-color: rgba(103, 114, 229, 0.05);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-image img.rocket {
        max-width: 90%;
    }
    
    .service-icon {
        height: 60px;
        width: 60px;
    }
}

@media (max-width: 576px) {
    .hero-image img.rocket {
        max-width: 100%;
        margin-top: 2rem;
    }
}

/* Client testimonials slider */
.clients-swiper {
    overflow: hidden;
    padding: 2rem 0;
}

.clients-swiper .swiper-slide {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    transition: all 0.3s ease;
    text-align: center;
}

.clients-swiper .swiper-slide img {
    max-width: 80%;
    max-height: 60px;
    filter: grayscale(100%) brightness(1.5) opacity(0.6);
    transition: all 0.3s ease;
    object-fit: contain;
    /* Fix for Safari */
    -webkit-filter: grayscale(100%) brightness(1.5) opacity(0.6);
    -webkit-transition: all 0.3s ease;
}

.clients-swiper .swiper-slide img:hover {
    filter: grayscale(0%) brightness(1) opacity(1);
    -webkit-filter: grayscale(0%) brightness(1) opacity(1);
}

.clients-swiper .swiper-button-next,
.clients-swiper .swiper-button-prev {
    color: #6772e5;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clients-swiper .swiper-button-next:after,
.clients-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.clients-swiper .swiper-button-next {
    right: 10px;
}

.clients-swiper .swiper-button-prev {
    left: 10px;
}

.clients-swiper .swiper-button-next:hover,
.clients-swiper .swiper-button-prev:hover {
    background: #6772e5;
    color: white;
    box-shadow: 0 8px 25px rgba(103, 114, 229, 0.3);
}

.clients-swiper .swiper-pagination-bullet {
    background: #6772e5;
    opacity: 0.5;
}

.clients-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 600px) {
  .clients-swiper .swiper-slide {
    height: 80px;
  }
  .clients-swiper .swiper-slide img {
    max-height: 45px;
    max-width: 75%;
  }
}

/* Our approach section */
.our-approach {
    background-color: #f6f9fc;
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.our-approach::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/dots-pattern.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.approach-content {
    position: relative;
    z-index: 2;
}

.approach-header {
    text-align: center;
    margin-bottom: 3rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.approach-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.approach-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6772e5 0%, #4751c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.approach-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #32325d;
}

.approach-card p {
    color: #8898aa;
    margin-bottom: 0;
}

.approach-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-card {
        padding: 1.5rem;
    }
    
    .approach-icon {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
}

/* Testimonials section */
.testimonials {
    background-color: #ffffff;
    padding: 5rem 0;
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/testimonial-bg.svg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 30%;
    opacity: 0.05;
    z-index: 1;
}

.testimonials-explanation {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    position: relative;
    padding: 0 1.5rem;
    background: linear-gradient(180deg, 
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.8) 30%,
                rgba(255,255,255,0.8) 70%,
                rgba(255,255,255,0) 100%);
}

.testimonials-explanation::before {
    content: """;
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 150px;
    color: rgba(103, 114, 229, 0.1);
    font-family: Georgia, serif;
}

.testimonials-explanation h3 {
    font-size: 1.8rem;
    color: #32325d;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.testimonials-explanation h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6772e5, #24b47e);
    border-radius: 2px;
}

.testimonials-explanation p {
    color: #6772e5;
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.explanation-points {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.explanation-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explanation-point i {
    color: #24b47e;
    background: rgba(36, 180, 126, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explanation-point span {
    color: #32325d;
    font-weight: 500;
}

@media (max-width: 768px) {
    .explanation-points {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonials-explanation {
        padding: 0 1rem;
    }
}

.roi-simulator-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.roi-simulator-container .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.input-group div {
    display: flex;
    justify-content: space-between;
}

/* Responsive styles for the simulator */
@media (max-width: 768px) {
    .roi-simulator-container .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem; /* Spațiu între coloane când sunt stivuite */
    }
    
    .roi-simulator-container .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .input-group div {
        flex-direction: column; /* Stivuiește valorile min/max/curent */
        align-items: center; /* Centrează textul valorilor */
        gap: 0.3rem; /* Adaugă spațiu între valori */
        font-size: 0.9rem; /* Mărește puțin fontul pentru lizibilitate */
    }
    
    .input-group div span:first-child,
    .input-group div span:last-child {
        display: none; /* Ascunde valorile min/max pe mobil */
    }
    
    .input-group div span[id] { /* Targetează doar valoarea curentă */
        font-size: 1rem; /* Mărește valoarea curentă */
        background-color: #f0f0f0;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
    }
    
    .email-growth-chart {
        padding: 1rem;
    }
    
    .chart-container {
        height: 180px; /* Înălțime mai mică pentru grafic pe mobil */
    }
    
    .simulator-results {
        padding: 1rem 1.5rem;
    }
    
    .result-metrics {
        grid-template-columns: 1fr; /* Stivuiește metricile */
    }
    
    .automations-selection label {
        flex-direction: column; /* Stivuiește iconița și textul în selecția automatizărilor */
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .automations-selection input[type="checkbox"] {
        margin-right: 0; /* Elimină marginea la checkbox */
        margin-bottom: 0.3rem;
    }

    /* Ajustare newsletter select */
    .newsletter-section div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .newsletter-section select {
        margin-top: 0.5rem;
        width: 100%;
    }
} 