/* Design System CSS Variables */
:root {
    --accent-color: #008a6f;
    --accent2-color: #006655;
    --accent3-color: #004b44;
    --accent4-color: #357b72;
    --primary-color: #004d45;
    --dark-text-color: #1a1a1a;
    --gray-text-color: #909090;
    --button-padding-x: 15px;
    --button-padding-y: 10px;
    --font-family-body: 'Roboto', sans-serif;
    --light-text-color: #f5f5f5;
    --dark-border-color: #333333;
    --light-border-color: #cfcfcf;
    --font-family-heading: 'Poppins', sans-serif;
    --button-rounded-radius: 6px;
    --dark-background-color: #1c1c1c;
    --light-background-color: #e6f2ef;
    --medium-background-color: #cfe5de;
    --primary-button-text-color: #ffffff;
    --secondary-button-bg-color: #007765;
    --secondary-button-text-color: #ffffff;
    --primary-button-hover-bg-color: #003d36;
    --primary-button-hover-text-color: #ffffff;
    --secondary-button-hover-bg-color: #005c4e;
    --secondary-button-hover-text-color: #ffffff;
}

/* General Styling */
html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-body);
}

body {
    background-color: var(--light-background-color);
    color: var(--dark-text-color);
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    display: block;
    width: 100%;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Utility Classes */
.hovered-element {
    outline: #3871E0 dashed 2px;
}

.clicked-element {
    outline: #3871E0 solid 2px;
}

.clicked-code-section {
    border: #3B82F6 solid 2px;
}

/* Header Styles */
header {
    transition: all 0.3s ease;
}

header a {
    text-decoration: none;
    display: inline-block;
}

header nav a:hover {
    color: var(--accent-color) !important;
}

/* Desktop Navigation */
header nav.lg\:flex {
    flex: 1;
    justify-content: flex-end;
    padding-left: 2rem;
}

/* Hero Section */
section:first-of-type .absolute {
    background-attachment: fixed;
}

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

/* Form Inputs */
input,
select,
textarea {
    font-family: var(--font-family-body);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-text-color);
    opacity: 0.7;
}

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-family-heading);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Menu */
[data-landingsite-mobile-menu] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    display: none;
    opacity: 0;
    visibility: hidden;
}

[data-landingsite-mobile-menu].active {
    max-height: 350px;
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Card Styles */
[class*="border"][class*="rounded"] {
    transition: all 0.3s ease;
}

[class*="border"][class*="rounded"]:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    color: var(--light-text-color);
}

p {
    font-family: var(--font-family-body);
    line-height: 1.6;
}

/* Section Spacing */
section {
    padding: 3rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 1.5rem 0;
    }

    /* Responsive Header Logo */
    header .flex.items-center {
        height: auto;
        min-height: auto;
    }

    header img[data-logo] {
        height: auto;
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - even smaller logo */
    header img[data-logo] {
        max-height: 48px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus Visible */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Gradient Backgrounds */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--dark-background-color), #0d0d0d);
}

.bg-gradient-to-r {
    background: linear-gradient(to right, var(--accent3-color), var(--dark-background-color));
}

.bg-gradient-to-l {
    background: linear-gradient(to left, black, transparent);
}

.bg-gradient-to-br {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Shadows */
.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Blur Effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.filter.blur-3xl {
    filter: blur(64px);
}

/* Opacity */
.opacity-90 {
    opacity: 0.9;
}

.opacity-95 {
    opacity: 0.95;
}

.opacity-5 {
    opacity: 0.05;
}

.opacity-10 {
    opacity: 0.1;
}

/* Border Radius */
.rounded-lg {
    border-radius: var(--button-rounded-radius);
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Flex Utils */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Spacing */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.pt-8 {
    padding-top: 2rem;
}

/* Text Colors */
.text-white {
    color: #ffffff;
}

.text-gray-100 {
    color: #f3f4f6;
}

.text-gray-500 {
    color: #6b7280;
}

.text-red-500 {
    color: #ef4444;
}

/* Transitions */
.transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-y-1 {
    transform: translateY(0.25rem);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

/* Transform Utils */
.transform {
    transform: translate(0, 0);
}

.translate-x-1\/2 {
    transform: translateX(50%);
}

/* Positioning */
.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.right-1\/2 {
    right: 50%;
}

.bottom-8 {
    bottom: 2rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Z-Index */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Width & Height */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-28 {
    height: 7rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

/* Font Sizes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-7xl {
    font-size: 4.5rem;
}

/* Font Weight */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Line Heights */
.leading-relaxed {
    line-height: 1.625;
}

.leading-tight {
    line-height: 1.25;
}

/* Display */
.hidden {
    display: none !important;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

/* Responsive Display - Mobile First */
@media (max-width: 1023px) {
    .lg\:flex {
        display: none !important;
    }

    .lg\:hidden {
        display: block !important;
    }
    
    .lg\:hidden.flex {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }

    .lg\:hidden {
        display: none !important;
    }
}

/* Special Classes for RTL Direction */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}

/* Print Styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
}
