/* Base Reset and Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  background-color: #111;
  color: #f3f3f3;
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background: #000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  color: #e91e63;
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #e91e63;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: url('https://images.unsplash.com/photo-1588776814546-b102a1f683b7') center/cover no-repeat;
  background-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

/* Animated Button */
.btn {
  padding: 10px 20px;
  background-color: #e91e63;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 10px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.3s ease;
}

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

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.btn:hover {
  background-color: #ff4081;
  transform: scale(1.05);
}

/* Section Layout */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  color: #e91e63;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Grid Layout for Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Card Design */
.card {
  background-color: #1a1a1a;
  padding: 20px;
  border-left: 4px solid #e91e63;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(233, 30, 99, 0.2);
}

.card h3 {
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  color: #ccc;
}

/* Form Styling */
form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #222;
  color: #fff;
}

form button {
  background-color: #e91e63;
  color: #fff;
  padding: 12px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
}

form button:hover {
  background-color: #ff4081;
  transform: scale(1.03);
}

/* Footer - Helsinki Design System Style */
footer {
  background-color: #1e293b;
  color: white;
}

footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff;
}

/* Footer navigation section */
footer .border-b {
  border-color: #334155;
}

/* Footer base section */
footer .bg-slate-800 {
  background-color: #0f172a;
}

/* Mobile responsiveness for footer */
@media (max-width: 768px) {
  footer .flex-wrap {
    justify-content: center;
    text-align: center;
  }
  
  footer .lg\\:flex-row {
    align-items: flex-start;
  }
  
  footer .lg\\:justify-between {
    justify-content: center;
    text-align: center;
  }
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    margin: 10px 5px;
  }
}

/* Additional Embedded Styles */
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }
.max-readable { max-width: 65ch; }

/* Mobile-first responsive design - remove scaling issues */
.main-container {
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

/* Ensure proper mobile layout */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    z-index: 10000;
    background: #111827;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body { 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;
}

.dark-gradient { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    background-size: 400% 400%;
    animation: darkGradientShift 12s ease-in-out infinite;
}

@keyframes darkGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.neon-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.1);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s;
}

.card-hover:hover::before {
    left: 100%;
}

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

.geometric-bg {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #10b981, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    padding: 2px;
    border-radius: 1rem;
}

.border-gradient > div {
    background: #1e293b;
    border-radius: 0.875rem;
}

.floating-card {
    animation: floatCard 8s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

.hexagon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s ease-in-out;
}

.animate-progress {
    stroke-dashoffset: 0;
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid #3b82f6;
    white-space: nowrap;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #3b82f6; }
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.glass-morphism {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Transparent header styling */
.transparent-header {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    box-shadow: none !important;
}

.transparent-header .text-slate-800 {
    color: black !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.transparent-header .text-slate-600 {
    color: black !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.transparent-header .text-slate-600:hover {
    color: #3b82f6 !important;
}

.transparent-header .text-blue-400 {
    color: #1e40af !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Enhanced spacing for header */
.transparent-header .max-w-7xl {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Ensure proper spacing between header and hero content */
#home {
    padding-top: 4rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    #home {
        padding-top: 3rem;
        margin-top: 0.5rem;
    }
}

/* Ensure header doesn't overlap content */
nav {
    z-index: 1000;
}

/* Better spacing for hero content */
.hero-content {
    margin-top: 4rem;
    padding-top: 2rem;
}

/* Ensure proper header height */
.transparent-header {
    min-height: 6rem;
}

/* Better mobile spacing */
@media (max-width: 768px) {
    .hero-content {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    .transparent-header {
        min-height: 5rem;
    }
}

/* Adjust floating elements positioning */
.floating-card {
    z-index: 1;
}

/* Mobile menu styling for transparent header */
.mobile-nav {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Pure CSS Carousel - Mobile Only */
@media (max-width: 768px) {
    .services-carousel-container {
        display: inline-block;
        width: 100%;
        padding: 0 1rem;
    }

    .services-carousel {
        height: auto;
        min-height: 500px;
        width: 100%;
        overflow: hidden;
        text-align: center;
        position: relative;
        padding: 0;
        list-style: none;
        margin: 0;
    }

    /* Hide radio buttons */
    .carousel__activator {
        display: none;
    }

    .carousel__controls {
        display: none;
    }

    /* Carousel Track */
    .carousel__track {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 0;
        margin: 0;
        transition: transform 0.5s ease 0s;
    }

    .carousel__slide {
        display: block;
        top: 0;
        left: 0;
        right: 0;
        opacity: 1;
        height: 100%;
        position: absolute;
        overflow-y: auto;
        padding: 1rem;
        box-sizing: border-box;
    }

    /* Position slides */
    .carousel__slide:nth-of-type(1) { transform: translateX(0%); }
    .carousel__slide:nth-of-type(2) { transform: translateX(100%); }
    .carousel__slide:nth-of-type(3) { transform: translateX(200%); }
    .carousel__slide:nth-of-type(4) { transform: translateX(300%); }
    .carousel__slide:nth-of-type(5) { transform: translateX(400%); }

    /* Control arrows */
    .carousel__control {
        height: 30px;
        width: 30px;
        margin-top: -15px;
        top: 50%;
        position: absolute;
        display: block;
        cursor: pointer;
        border-width: 5px 5px 0 0;
        border-style: solid;
        border-color: #374151;
        opacity: 0.7;
        outline: 0;
        z-index: 3;
        transition: opacity 0.3s ease;
    }

    .carousel__control:hover {
        opacity: 1;
    }

    .carousel__control--backward {
        left: 20px;
        transform: rotate(-135deg);
    }

    .carousel__control--forward {
        right: 20px;
        transform: rotate(45deg);
    }

    /* Active states for each radio button */
    #service1:checked ~ .carousel__track { transform: translateX(0%); }
    #service2:checked ~ .carousel__track { transform: translateX(-100%); }
    #service3:checked ~ .carousel__track { transform: translateX(-200%); }
    #service4:checked ~ .carousel__track { transform: translateX(-300%); }
    #service5:checked ~ .carousel__track { transform: translateX(-400%); }

    #service1:checked ~ .carousel__slide:nth-of-type(1) {
        transition: opacity 0.5s, transform 0.5s;
        top: 0;
        left: 0;
        right: 0;
        opacity: 1;
        transform: scale(1);
    }

    #service2:checked ~ .carousel__slide:nth-of-type(2) {
        transition: opacity 0.5s, transform 0.5s;
        top: 0;
        left: 0;
        right: 0;
        opacity: 1;
        transform: scale(1);
    }

    #service3:checked ~ .carousel__slide:nth-of-type(3) {
        transition: opacity 0.5s, transform 0.5s;
        top: 0;
        left: 0;
        right: 0;
        opacity: 1;
        transform: scale(1);
    }

    #service4:checked ~ .carousel__slide:nth-of-type(4) {
        transition: opacity 0.5s, transform 0.5s;
        top: 0;
        left: 0;
        right: 0;
        opacity: 1;
        transform: scale(1);
    }

    #service5:checked ~ .carousel__slide:nth-of-type(5) {
        transition: opacity 0.5s, transform 0.5s;
        top: 0;
        left: 0;
        right: 0;
        opacity: 1;
        transform: scale(1);
    }

    /* Show controls for active slide */
    #service1:checked ~ .carousel__controls:nth-of-type(1) {
        display: block;
        opacity: 1;
    }

    #service2:checked ~ .carousel__controls:nth-of-type(2) {
        display: block;
        opacity: 1;
    }

    #service3:checked ~ .carousel__controls:nth-of-type(3) {
        display: block;
        opacity: 1;
    }

    #service4:checked ~ .carousel__controls:nth-of-type(4) {
        display: block;
        opacity: 1;
    }

    #service5:checked ~ .carousel__controls:nth-of-type(5) {
        display: block;
        opacity: 1;
    }

    /* Carousel slide content styling */
    .carousel__slide .glass-morphism {
        max-width: 350px;
        margin: 0 auto;
        height: auto;
    }
}


/* Testimonials Carousel Styles */
.testimonials-carousel-container {
    transition: transform 0.5s ease-in-out;
    display: flex;
}

.testimonials-carousel-slide {
    transition: all 0.3s ease;
    min-width: 100%;
    flex-shrink: 0;
}

.testimonials-carousel-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonials-carousel-dot:hover {
    transform: scale(1.2);
}

.testimonials-carousel-dot.active {
    transform: scale(1.3);
}

.team-card-3d {
    perspective: 1000px;
}

.team-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-card-3d:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front, .team-card-back {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
}

.team-card-back {
    transform: rotateY(180deg);
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #8b5cf6);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
}

.testimonial-card {
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    position: relative;
    overflow: hidden;
}

/* Enhanced Calendar Section Styling for Mobile */
.calendar-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cal-embed-container {
    border-radius: 1rem;
    overflow: hidden;
}

/* Cal.com embed customization for mobile */
.cal-embed-container iframe {
    border-radius: 1rem;
    border: none;
    width: 100%;
    height: 600px; /* Reduced height for mobile */
}

@media (max-width: 768px) {
    .cal-embed-container iframe {
        height: 500px; /* Even smaller on mobile */
    }
    
    /* Optimize calendar layout for mobile */
    .calendar-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .cal-embed-container {
        border-radius: 0;
        padding: 0.5rem;
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Mobile-optimized stats layout */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stats-grid .text-center {
        padding: 0.5rem;
    }
    
    .stats-grid .w-20 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .stats-grid .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .stats-grid .text-slate-500 {
        font-size: 0.75rem !important;
    }
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
    .mobile-nav {
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(20px);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons button {
        width: 100%;
        max-width: 300px;
    }
}

/* Improved carousel touch interactions */
.carousel-touch-active {
    cursor: grabbing !important;
    user-select: none !important;
}

.carousel-touch-active * {
    pointer-events: none;
}

/* Smooth carousel transitions */
.carousel-transition {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile-first responsive text sizing */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
}

/* Prevent horizontal overflow and ensure mobile boundaries */
body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

.main-container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all sections respect mobile boundaries */
section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile-specific padding adjustments */
@media (max-width: 768px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .px-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}


/* Additional mobile optimizations */
@media (max-width: 640px) {
    /* Ensure text doesn't overflow on small screens */
    .text-4xl, .text-5xl, .text-6xl {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Optimize button sizes for mobile */
    .px-10 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Ensure proper spacing on mobile */
    .mb-20 {
        margin-bottom: 3rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
}

/* Prevent any horizontal scrolling */
* {
    box-sizing: border-box;
}

/* Ensure smooth scrolling on mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}
