@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0d9488;
    /* teal-600 */
    --primary-dark: #0f766e;
    /* teal-700 */
    --primary-light: #f0fdfa;
    /* teal-50 */
    --secondary-color: #0891b2;
    /* cyan-600 */
    --accent-color: #16a34a;
    /* green-600 */
    --text-color: #1f2937;
    /* gray-800 */
    --text-light: #6b7280;
    /* gray-500 */
    --bg-gradient-start: #f8fafc;
    /* slate-50 */
    --bg-gradient-mid: #eff6ff;
    /* blue-50 */
    --bg-gradient-end: #eef2ff;
    /* indigo-50 */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
}

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

body {
    font-family: 'Assistant', sans-serif;
    background: linear-gradient(to bottom right, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
    color: var(--text-color);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(13, 148, 136, 0.4), 0 8px 10px -6px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 3rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(13, 148, 136, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.nav-dropdown-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background-color: rgba(13, 148, 136, 0.08);
    color: var(--primary-color);
}

.desktop-cta {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-cta {
        display: flex;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 100;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #111827;
    /* gray-900 */
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.footer-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(22, 78, 99, 0.2), rgba(17, 94, 89, 0.2));
    pointer-events: none;
}

.footer-content {
    position: relative;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    /* gray-300 */
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    /* gray-700 */
    padding: 1.5rem 0;
    text-align: center;
    color: #6b7280;
    /* gray-500 */
    font-size: 0.875rem;
}

/* Utilities */
.hidden {
    display: none;
}

.flex {
    display: flex;
}

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

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

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

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

.mt-4 {
    margin-top: 1rem;
}

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

.w-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title {
    font-size: 4rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 7rem;
    }
}

.hero-subtitle {
    font-size: 1.375rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 1.625rem;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.blob-1 {
    top: -100px;
    right: -100px;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mt-auto {
    margin-top: auto;
}

/* Responsive Typography for About Page */
.about-hero-title {
    font-size: 2rem;
}

@media (min-width: 640px) {
    .about-hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .about-hero-title {
        font-size: 4.5rem;
    }
}

.about-hero-subtitle {
    font-size: 1rem;
}

@media (min-width: 640px) {
    .about-hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .about-hero-subtitle {
        font-size: 1.25rem;
    }
}

.about-values-title {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .about-values-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .about-values-title {
        font-size: 2.5rem;
    }
}

.about-values-subtitle {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .about-values-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .about-values-subtitle {
        font-size: 1.25rem;
    }
}

.about-cta-title {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .about-cta-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .about-cta-title {
        font-size: 2.5rem;
    }
}

.about-cta-subtitle {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .about-cta-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .about-cta-subtitle {
        font-size: 1.25rem;
    }
}

.about-quote-text {
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .about-quote-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .about-quote-text {
        font-size: 1.5rem;
    }
}

/* Responsive Grids */
.about-stats-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-locations {
    flex-direction: column;
}

@media (min-width: 640px) {
    .about-locations {
        flex-direction: row;
    }
}

/* Responsive Grid-2 for About Page */
.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Form Responsive Grid */
.contact-form-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tools Feature Grid (Index Page) */
.tools-feature-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .tools-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form Grid 2 Columns */
.form-grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive padding adjustments */
@media (max-width: 640px) {
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}