/* Custom Styles - Contabilitate Expert Theme */
/* Updated Colors: Blue #103155, Green #54a94c */
/* Square Minimalist Beauty Design with GSAP Parallax */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Updated Color Definitions */
:root {
    --primary-color: #103155;
    --primary-hover: #0a1f3d;
    --primary-light: #1a4a7e;
    --accent-color: #54a94c;
    --accent-hover: #459440;
}

/* IMPORTANT: Remove all border-radius for square design */
* {
    border-radius: 0 !important;
}

/* Wide Container - 1700px */
.container {
    max-width: 1700px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 640px) {
    .container {
      padding:  0 20px 0 20px!important;
    }
}


/* GSAP Parallax Classes */
.gsap-parallax {
    will-change: transform;
}

/* Start visible - GSAP will handle animations */
.gsap-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.gsap-slide-left {
    opacity: 1;
    transform: translateX(0);
}

.gsap-slide-right {
    opacity: 1;
    transform: translateX(0);
}

.gsap-scale {
    opacity: 1;
    transform: scale(1);
}

/* Image Parallax Effects */
.parallax-image {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Custom Hover Effects - Minimalist */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(16, 49, 85, 0.15);
}

/* Card Effects - Square Design */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover::before {
    width: 100%;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #103155 0%, #54a94c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Effects - Square Minimalist */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Accent Button */
.btn-accent {
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

/* Custom Scrollbar - Minimalist Square */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #103155;
}

::-webkit-scrollbar-thumb:hover {
    background: #54a94c;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Service Card Icon Hover */
.service-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(84, 169, 76, 0.05), transparent);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::after {
    height: 100%;
}

.service-card .icon-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .icon-wrapper {
    background-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .icon-wrapper svg {
    color: white;
}

/* Testimonial Slider */
.testimonial-slider {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    scroll-snap-align: center;
}

/* Form Styles - Square Minimalist */
input:focus, 
textarea:focus, 
select:focus {
    border-color: var(--primary-color) !important;
    ring-color: rgba(16, 49, 85, 0.1) !important;
    outline: none !important;
}

input, textarea, select {
    transition: all 0.3s ease;
}

/* Geometric Decorations */
.geometric-decoration {
    position: absolute;
    border: 2px solid rgba(16, 49, 85, 0.1);
    pointer-events: none;
}

.geometric-decoration-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.geometric-decoration-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.geometric-decoration-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: rotate 20s linear infinite;
    border-color: rgba(84, 169, 76, 0.2);
}

/* Section Dividers - Minimalist */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(16, 49, 85, 0.2), transparent);
}

/* Hover Line Effect */
.hover-line {
    position: relative;
    display: inline-block;
}

.hover-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.hover-line:hover::after {
    width: 100%;
}

/* Image Overlay Effect */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(16, 49, 85, 0.8), rgba(84, 169, 76, 0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-overlay:hover::before {
    opacity: 1;
}

/* Image Parallax Container */
.parallax-img-wrapper {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* Stats Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

/* Mobile Menu Styles - Slide from Left */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Perfect Burger Icon X Transformation - Normal Spacing */
.mobile-menu-toggle .burger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-6px);
}

.mobile-menu-toggle .burger-line:nth-child(2) {
    top: 50%;
    transform: translateY(0);
}

.mobile-menu-toggle .burger-line:nth-child(3) {
    top: 50%;
    transform: translateY(6px);
}

/* Active state - Perfect X - White color when menu open */
.mobile-menu-toggle.active .burger-line {
    background-color: #103155;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Header Hide/Show on Scroll */
header {
    transition: transform 0.3s ease-out;
}

header.header-hidden {
    transform: translateY(-100%);
}

header.header-visible {
    transform: translateY(0);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-menu {
        z-index: 40;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* Custom Tailwind Extensions */
.bg-primary {
    background-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.text-accent {
    color: var(--accent-color);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-hover);
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(16, 49, 85, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 49, 85, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Minimal Border Accent */
.border-accent-top {
    position: relative;
}

.border-accent-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Text Selection */
::selection {
    background-color: var(--accent-color);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}

/* Accent Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #103155 0%, #1a4a7e 50%, #54a94c 100%);
}

/* Floating Animation for Images */
.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Pulse Effect for CTAs - ALBASTRU */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 49, 85, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(16, 49, 85, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite !important;
}

/* Override any conflicting animations */
.pulse-glow:hover {
    animation: pulse-glow 2s infinite !important;
}

/* Force blue background on accent buttons */
.btn-accent {
    background-color: #103155 !important;
}

.btn-accent:hover {
    background-color: #0a1f3d !important;
}

/* Dynamic Width Animation */
@keyframes animate-width {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.animate-width {
    animation: animate-width 1s ease-out 0.5s forwards;
    animation-fill-mode: forwards;
    opacity: 1 !important;
}

/* Enhanced Hover Effects */
.dynamic-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.dynamic-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.dynamic-hover:hover::before {
    left: 100%;
}

.dynamic-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Professional Scale Effect */
@keyframes professional-scale {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.professional-entrance {
    animation: professional-scale 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Smooth Slide Up */
@keyframes smooth-slide-up {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.smooth-slide-up {
    animation: smooth-slide-up 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Stagger delays for dynamic entrance */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Professional Card Hover */
.professional-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.professional-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(84, 169, 76, 0.05), transparent);
    transition: height 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.professional-card:hover::after {
    height: 100%;
}

/* Dynamic Border Animation */
@keyframes border-dance {
    0%, 100% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    51% {
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

.dynamic-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #103155, #54a94c);
    animation: border-dance 3s ease-in-out infinite;
}

/* Enhanced Button Hover */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enhanced:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(84, 169, 76, 0.4);
}

/* Parallax Enhancement */
.parallax-enhanced {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Counter Animation Enhancement */
@keyframes counter-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(84, 169, 76, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(84, 169, 76, 0.3);
    }
}

.counter-animated {
    animation: counter-glow 2s ease-in-out infinite;
}

/* Swiper Testimonials Custom Styling */
.testimonials-swiper {
    padding: 20px 0 60px 0 !important;
}

.testimonials-swiper .swiper-slide {
    height: auto;
}

.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: white;
    border: 2px solid #103155;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background-color: #103155;
    color: white !important;
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.testimonials-swiper .swiper-pagination {
    bottom: 0 !important;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #103155;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #54a94c;
    transform: scale(1.2);
}

/* FAQ accordion animation */
.faq-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-panel.open {
    max-height: 500px; /* suficient pentru răspunsurile tale */
    opacity: 1;
}

/* rotire icon când e deschis */
.faq-icon {
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-icon.open {
    transform: rotate(90deg);
    background-color: #103155;
    color: #ffffff;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        display: none;
    }
}
