/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

@custom-variant dark (&:is(.dark *));

:root {
  --font-size: 16px;
  --background: #F9F8F4;
  --foreground: #03594D;
  --card: #ffffff;
  --card-foreground: #03594D;
  --popover: #ffffff;
  --popover-foreground: #03594D;
  --primary: #03594D;
  --primary-foreground: #ffffff;
  --secondary: #82eda6;
  --secondary-foreground: #03594D;
  --muted: #B7FAFE;
  --muted-foreground: #03594D;
  --accent: #FFFF95;
  --accent-foreground: #03594D;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(3, 89, 77, 0.2);
  --input: transparent;
  --input-background: #ffffff;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #82eda6;
  --chart-1: #82eda6;
  --chart-2: #B7FAFE;
  --chart-3: #F6BBFD;
  --chart-4: #D6E26D;
  --chart-5: #F9CEDC;
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
  
  /* Custom hosting colors */
  --hosting-mint: #82eda6;
  --hosting-yellow: #FFFF95;
  --hosting-purple: #F6BBFD;
  --hosting-cyan: #B7FAFE;
  --hosting-pink: #F9CEDC;
  --hosting-dark-green: #03594D;
  --hosting-lime: #D6E26D;
  --hosting-light-blue: #AEFBFF;
  --hosting-cream: #F9F8F4;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-input-background: var(--input-background);
  --color-switch-background: var(--switch-background);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  html {
    direction: rtl;
  }

  body {
    @apply bg-background text-foreground;
    direction: rtl;
    scroll-behavior: smooth;
    line-height: 1.6;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

  ::-webkit-scrollbar-track {
    background: var(--hosting-cream);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--hosting-mint);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--hosting-dark-green);
  }

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

  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

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

  @keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
      transform: translateY(0);
    }
    40%, 43% {
      transform: translateY(-10px);
    }
    70% {
      transform: translateY(-5px);
    }
    90% {
      transform: translateY(-2px);
    }
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  @keyframes glow {
    0%, 100% {
      box-shadow: 0 0 5px var(--hosting-mint);
    }
    50% {
      box-shadow: 0 0 20px var(--hosting-mint), 0 0 30px var(--hosting-mint);
    }
  }

  /* Text gradient */
  .gradient-text {
    background: linear-gradient(135deg, var(--hosting-dark-green), var(--hosting-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display, 'Assistant', 'Rubik', sans-serif);
  }

  .gradient-text-secondary {
    background: linear-gradient(135deg, var(--hosting-mint), var(--hosting-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-primary, 'Assistant', 'Rubik', sans-serif);
  }

  /* Typography utilities */
  .text-display {
    font-family: var(--font-display, 'Assistant', 'Rubik', sans-serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .text-heading {
    font-family: var(--font-primary, 'Assistant', 'Rubik', sans-serif);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  .text-body {
    font-family: var(--font-secondary, 'Assistant', 'Rubik', sans-serif);
    font-weight: 400;
    line-height: 1.6;
  }

  .text-body-strong {
    font-family: var(--font-secondary, 'Assistant', 'Rubik', sans-serif);
    font-weight: 500;
    line-height: 1.5;
  }

  /* Hover effects */
  .hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(3, 89, 77, 0.15);
  }

  .hover-glow {
    transition: all 0.3s ease;
  }

  .hover-glow:hover {
    box-shadow: 0 0 30px rgba(130, 237, 166, 0.3);
  }

  /* Parallax elements */
  .parallax-slow {
    will-change: transform;
  }

  /* Glass effect */
  .glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Morphism effect */
  .morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

/**
 * Base typography. This is not applied to elements which have an ancestor with a Tailwind text class.
 */
@layer base {
  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) {
    h1 {
      font-family: var(--font-display, 'Assistant', 'Rubik', sans-serif);
      font-size: var(--text-2xl);
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    h2 {
      font-family: var(--font-primary, 'Assistant', 'Rubik', sans-serif);
      font-size: var(--text-xl);
      font-weight: 600;
      line-height: 1.3;
      letter-spacing: -0.01em;
    }

    h3 {
      font-family: var(--font-primary, 'Assistant', 'Rubik', sans-serif);
      font-size: var(--text-lg);
      font-weight: 600;
      line-height: 1.4;
    }

    h4 {
      font-family: var(--font-primary, 'Assistant', 'Rubik', sans-serif);
      font-size: var(--text-base);
      font-weight: 500;
      line-height: 1.4;
    }

    p {
      font-family: var(--font-secondary, 'Assistant', 'Rubik', sans-serif);
      font-size: var(--text-base);
      font-weight: var(--font-weight-normal);
      line-height: 1.6;
    }

    label {
      font-family: var(--font-secondary, 'Assistant', 'Rubik', sans-serif);
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
    }

    button {
      font-family: var(--font-primary, 'Assistant', 'Rubik', sans-serif);
      font-size: var(--text-base);
      font-weight: var(--font-weight-medium);
      line-height: 1.5;
      letter-spacing: 0.01em;
    }

    input {
      font-size: var(--text-base);
      font-weight: var(--font-weight-normal);
      line-height: 1.5;
    }
  }
}

html {
  font-size: var(--font-size);
}
