/* ActNow Custom Styles - Professional Business Consulting Theme */

/* Color Variables - ActNow Brand Colors */
:root {
    --actnow-primary: #0BA0D6;
    --actnow-primary-hover: #0284C7;
    --actnow-gray-50: #F9FAFB;
    --actnow-gray-100: #F3F4F6;
    --actnow-gray-200: #E5E7EB;
    --actnow-gray-600: #4B5563;
    --actnow-gray-900: #111827;
}

/* Service Cards - Professional styling */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--actnow-primary);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
}

.service-card h2 a {
    color: var(--actnow-gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card h2 a:hover {
    color: var(--actnow-primary);
}

/* Expertise Cards - Reusable component */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.expertise-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.expertise-card:hover {
    border-color: var(--actnow-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
}

.expertise-block {
    border: 1px solid var(--actnow-gray-200);
    padding: 2rem;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.expertise-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.expertise-block:hover {
    border-color: var(--actnow-primary);
    transform: translateY(-2px);
}

.expertise-block h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--actnow-gray-900);
}

/* Project Examples - Professional styling */
.project-example {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-example.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-example:hover {
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
}

/* Process Steps - Professional styling */
.process-step {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.process-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover, .tech-card:hover {
    transform: translateY(-5px);
}

/* Technology Cards */
.tech-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.tech-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tech-card:hover {
    border-color: var(--actnow-primary);
    transform: translateY(-5px);
}

/* Phase Cards */
.phase-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.phase-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.phase-card:hover {
    transform: translateY(-5px);
}

/* Scroll animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideInUp 0.6s ease forwards;
}

/* Navigation menu - prevent line breaks in menu items only */
nav ul li a {
    white-space: nowrap;
}

/* ========================================
   ACTNOW PROFESSIONAL HEADER DESIGN
   Reflects Technical Expertise & Modern UX
   Space-optimized for menu visibility
   ======================================== */

/* Technical Grid Background Pattern */
.tech-grid-pattern {
    background-image: 
        linear-gradient(rgba(11, 160, 214, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 160, 214, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 100%;
    height: 100%;
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Enhanced Logo Styling - Professional & Technical */
.actnow-logo-container {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.actnow-logo {
    height: 4rem; /* 64px - much more prominent */
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(11, 160, 214, 0.15));
    object-fit: contain;
    max-width: none;
}

.actnow-logo.mobile {
    height: 3rem; /* 48px for mobile */
}

/* Responsive Logo Scaling - Optimized for all devices */
@media (max-width: 480px) {
    .actnow-logo {
        height: 2.75rem; /* 44px on small mobile */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .actnow-logo {
        height: 3.25rem; /* 52px on tablets */
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .actnow-logo {
        height: 4rem; /* 64px on laptop */
    }
}

@media (min-width: 1280px) {
    .actnow-logo {
        height: 5rem; /* 80px on desktop */
    }
}

@media (min-width: 1920px) {
    .actnow-logo {
        height: 5.5rem; /* 88px on large desktop */
    }
}

/* Enhanced Brand Text - Responsive & Space-Efficient */
.brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0.5rem;
}

.actnow-title {
    font-size: 1.1rem; /* 17px - smaller for space efficiency */
    font-weight: 700;
    color: var(--actnow-primary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1.1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.actnow-title.mobile {
    font-size: 1rem; /* 16px */
    max-width: 200px;
}

.actnow-subtitle {
    font-size: 0.65rem; /* 10px - smaller for space efficiency */
    color: var(--actnow-gray-600);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 1px;
    white-space: nowrap;
}

/* Responsive Title Scaling - Space-Optimized */
@media (max-width: 480px) {
    .actnow-title {
        font-size: 0.9rem; /* 14px */
        max-width: 160px;
    }
    .actnow-subtitle {
        font-size: 0.55rem; /* 9px */
    }
    .brand-text-container {
        margin-left: 0.25rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .actnow-title {
        font-size: 1rem; /* 16px */
        max-width: 200px;
    }
    .actnow-subtitle {
        font-size: 0.6rem; /* 10px */
    }
    .brand-text-container {
        margin-left: 0.375rem;
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .actnow-title {
        font-size: 1.1rem; /* 17px */
        max-width: 250px;
    }
    .actnow-subtitle {
        font-size: 0.65rem; /* 10px */
    }
}

@media (min-width: 1280px) and (max-width: 1599px) {
    .actnow-title {
        font-size: 1.25rem; /* 20px */
        max-width: 320px;
    }
    .actnow-subtitle {
        font-size: 0.7rem; /* 11px */
    }
    .brand-text-container {
        margin-left: 0.75rem;
    }
}

@media (min-width: 1600px) {
    .actnow-title {
        font-size: 1.5rem; /* 24px */
        max-width: 400px;
    }
    .actnow-subtitle {
        font-size: 0.8rem; /* 13px */
    }
    .brand-text-container {
        margin-left: 1rem;
    }
}

/* Logo + Title Hover Effects */
.group:hover .actnow-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(11, 160, 214, 0.2));
}

.group:hover .actnow-title {
    color: var(--actnow-primary-hover);
}

.group:hover .actnow-subtitle {
    opacity: 1;
}

/* Enhanced Background Watermark Logo - Multiple Positions */
.background-logo-watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    animation: subtle-float 6s ease-in-out infinite;
}

.watermark-logo {
    height: 18rem; /* 288px - larger for better presence */
    width: auto;
    transform: rotate(12deg);
    filter: grayscale(100%) brightness(1.1);
    object-fit: contain;
}

/* Global page watermarks for all content */
.page-watermark {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.025;
}

.page-watermark.top-left {
    top: 5%;
    left: 5%;
    transform: rotate(-8deg) scale(0.6);
}

.page-watermark.center-right {
    top: 40%;
    right: 2%;
    transform: rotate(15deg) scale(0.8);
}

.page-watermark.bottom-left {
    bottom: 10%;
    left: 8%;
    transform: rotate(-12deg) scale(0.5);
}

.page-watermark img {
    height: 20rem;
    width: auto;
    filter: grayscale(100%) brightness(1.2) blur(0.5px);
    object-fit: contain;
}

@keyframes subtle-float {
    0%, 100% { transform: rotate(12deg) translateY(0px); }
    50% { transform: rotate(12deg) translateY(-3px); }
}

/* Responsive Watermark Scaling */
@media (max-width: 768px) {
    .background-logo-watermark {
        top: 15px;
        right: 15px;
    }
    .watermark-logo {
        height: 10rem; /* 160px on mobile */
    }
    .page-watermark img {
        height: 12rem;
    }
    .page-watermark.top-left {
        top: 8%;
        left: 3%;
        transform: rotate(-8deg) scale(0.4);
    }
    .page-watermark.center-right {
        top: 45%;
        right: -5%;
        transform: rotate(15deg) scale(0.6);
    }
    .page-watermark.bottom-left {
        bottom: 8%;
        left: 3%;
        transform: rotate(-12deg) scale(0.3);
    }
}

@media (min-width: 1280px) {
    .watermark-logo {
        height: 22rem; /* 352px on desktop */
    }
    .page-watermark img {
        height: 25rem;
    }
}

@media (min-width: 1920px) {
    .watermark-logo {
        height: 25rem; /* 400px on large screens */
    }
    .page-watermark img {
        height: 30rem;
    }
}

/* Enhanced Navigation Links - Compact Design */
.nav-link {
    color: var(--actnow-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
}

.nav-link:hover {
    color: var(--actnow-primary-hover);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 50%;
    background: linear-gradient(90deg, var(--actnow-primary), var(--actnow-primary-hover));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Compact menu spacing */
@media (min-width: 1280px) {
    .nav-menu {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 1600px) {
    .nav-menu {
        gap: 1.5rem;
    }
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1.25rem;
    }
}

/* Technical Enhancement: Subtle Animation for Professional Feel */
nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(11, 160, 214, 0.1);
}

/* Header Layout Optimization */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 60%;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

@media (max-width: 1279px) {
    .header-brand {
        max-width: 70%;
    }
}

@media (min-width: 1280px) {
    .header-container {
        gap: 2rem;
    }
    .header-brand {
        max-width: 50%;
    }
    .header-nav {
        gap: 2.5rem;
    }
}

/* Mobile Menu Enhancements */
@media (max-width: 1279px) {
    #navbarContent {
        backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.98);
    }
    
    .mobile-header-brand {
        max-width: 75%;
    }
    
    .mobile-header-brand .actnow-title {
        font-size: 0.9rem;
        max-width: 180px;
    }
    
    .mobile-header-brand .actnow-subtitle {
        font-size: 0.55rem;
    }
}

/* Professional Loading Animation */
.actnow-logo-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(11, 160, 214, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: tech-pulse 3s infinite;
}

@keyframes tech-pulse {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}


/* ========================================
   MOBILE TEXT ALIGNMENT OPTIMIZATION
   Professional UX for better readability
   ======================================== */

/* Mobile-optimized text alignment for better UX */
@media (max-width: 1279px) {
  /* Override Tailwind's text-center xl:text-start pattern for mobile readability */
  
  /* Hero section text alignment - left align paragraphs, center titles */
  section#hero p {
    text-align: left !important;
  }
  
  /* Feature sections - left align paragraphs and descriptions */
  section#features p {
    text-align: left !important;
  }
  
  section#features h2 {
    text-align: left !important;
  }
  
  /* Keep titles centered for visual hierarchy */
  section#hero h1,
  section#features h1 {
    text-align: center !important;
  }
  
  /* Left align all paragraph content in features */
  .text-center.xl\\:text-start p,
  .text-\\[\\#545454\\],
  .text-\\[\\#5C5C5C\\] {
    text-align: left !important;
  }
}

/* Footer mobile optimization */
@media (max-width: 1279px) {
  /* Reduce footer padding for mobile */
  footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Optimize footer spacing */
  footer .container > div {
    gap: 2rem !important;
  }
  
  /* Make footer links smaller and more compact */
  footer h1 {
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
  }
  
  footer li {
    margin-bottom: 0.5rem !important;
  }
  
  /* Reduce social media icon spacing */
  footer .gap-4 {
    gap: 0.75rem !important;
  }
}

/* ========================================
   PROFESSIONAL UX ENHANCEMENTS
   Technical excellence & smooth UX
   ======================================== */

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

/* Enhanced content container with subtle background */
main {
    background: linear-gradient(135deg, rgba(11, 160, 214, 0.005) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow-x: hidden;
}

/* Better container padding for comfortable reading at common screen widths */
.container {
    padding-left: 1.5rem !important; /* 24px */
    padding-right: 1.5rem !important; /* 24px */
}

/* Enhanced spacing for laptop/desktop widths */
@media (min-width: 1024px) {
    .container {
        padding-left: 3rem !important; /* 48px */
        padding-right: 3rem !important; /* 48px */
    }
}

@media (min-width: 1280px) {
    .container {
        padding-left: 4rem !important; /* 64px */
        padding-right: 4rem !important; /* 64px */
    }
}

@media (min-width: 1536px) {
    .container {
        padding-left: 6rem !important; /* 96px */
        padding-right: 6rem !important; /* 96px */
    }
}

/* Enhanced focus states for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--actnow-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   LANGUAGE SWITCHER STYLING
   Subtle single-flag approach
   ======================================== */

.language-switcher {
    display: flex;
    align-items: center;
}

.flag-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
    text-decoration: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.flag-switcher:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.flag-switcher:focus {
    outline: 2px solid var(--actnow-primary);
    outline-offset: 2px;
}

/* Responsive flag display */
@media (max-width: 640px) {
    .flag-switcher {
        padding: 0.375rem;
        font-size: 1.25rem;
    }
}

/* Mobile menu language switcher positioning */
@media (max-width: 767px) {
    .language-switcher {
        order: -1; /* Place before hamburger menu on mobile */
    }
}

/* Performance optimization for watermarks */
.watermark-logo, .page-watermark img {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms \!important;
        animation-iteration-count: 1 \!important;
        transition-duration: 0.01ms \!important;
    }
    
    .tech-grid-pattern {
        animation: none;
    }
    
    .background-logo-watermark {
        animation: none;
    }
}

/* ========================================
   LANGUAGE CONTENT SWITCHING
   CSS-based language switching for pages
   ======================================== */

/* Default: Show German content, hide English content */
#content-de, .language-content[data-lang="de"] {
    display: block !important;
}

#content-en, .language-content[data-lang="en"] {
    display: none !important;
}

/* When English language is active: hide German, show English */
body[data-language="en"] #content-de,
body[data-language="en"] .language-content[data-lang="de"] {
    display: none !important;
}

body[data-language="en"] #content-en,
body[data-language="en"] .language-content[data-lang="en"] {
    display: block !important;
}
