/* Main Styles for sediufirmabucuresti.ro */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Animation classes */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hero section custom styles */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
}

/* Swiper customizations */
.swiper-button-next,
.swiper-button-prev {
    color: #3B82F6;
}

.swiper-pagination-bullet-active {
    background-color: #3B82F6;
}

/* Process section */
.process-swiper .swiper-slide {
    height: auto;
}

@media (min-width: 768px) {
    .process-swiper {
        padding: 0 40px;
    }
}

/* FAQ accordion */
.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

/* Form input focus styles */
input:focus, 
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Mobile menu toggle animation */
#menu-toggle:focus {
    outline: none;
}

/* Custom animations for elements */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Gentle animations for mission card circles */
@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.15;
    }
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-3px);
        opacity: 0.2;
    }
}

@keyframes gentle-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.12;
    }
    33% {
        transform: scale(1.02);
        opacity: 0.18;
    }
    66% {
        transform: scale(0.98);
        opacity: 0.15;
    }
}

/* Mission card circle animations */
.mission-circle-1 {
    animation: gentle-pulse 4s ease-in-out infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mission-circle-2 {
    animation: gentle-float 6s ease-in-out infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mission-circle-pulse {
    animation: gentle-glow 5s ease-in-out infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover effects for mission card circles */
.mission-card:hover .mission-circle-1 {
    transform: translateX(-8px) translateY(-5px) scale(1.1);
    opacity: 0.25;
}

.mission-card:hover .mission-circle-2 {
    transform: translateX(6px) translateY(-8px) scale(1.15);
    opacity: 0.3;
}

.mission-card:hover .mission-circle-pulse {
    transform: translateX(-50%) translateY(-10px) scale(1.2);
    opacity: 0.35;
}

/* Custom styles for sediufirmabucuresti.ro */

/* General styling */
body {
    overflow-x: hidden;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hero section typography enhancement */
.hero-title {
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

.hero-form {
    opacity: 0;
    transform: translateY(20px);
}

/* Feature cards animation setup */
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* FAQ styling */
.faq-question.active {
    background-color: #f0f9ff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

/* Services cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Process steps active state */
.process-step.active {
    border-color: #3B82F6;
}

.process-step.active .step-number {
    background-color: #3B82F6;
    color: white;
}

/* Custom focus styles for form fields */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    border-color: #3B82F6;
}

/* Testimonial quote styling */
.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    line-height: 1;
    position: absolute;
    top: -1rem;
    left: -1rem;
    color: rgba(59, 130, 246, 0.1);
    font-family: Georgia, serif;
}

/* Button hover animations */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover:after {
    width: 300%;
    height: 300%;
}

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

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

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Mobile menu toggle animation */
#menu-toggle svg {
    transition: transform 0.3s ease;
}

#menu-toggle.open svg {
    transform: rotate(90deg);
}

/* Custom underline animation for navigation links */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3B82F6;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Responsive adjustments for smaller devices */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Fix pentru problema de tremur pe tablete */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Dezactivează transformările care cauzează tremur */
    .feature-card, .service-card, .hero-title, .hero-subtitle, .hero-cta, .hero-form {
        transform: none !important;
        transition: opacity 0.6s ease !important;
    }
    
    /* Previne rescalarea continuă a elementelor animate */
    .fade-in, .slide-in-left, .slide-in-right {
        transform: none !important;
        transition: opacity 0.6s ease !important;
    }
    
    /* Stabilizează animațiile pe tablete */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

/* Print styles */
@media print {
    header, footer, .cta-section, #contact {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
