/* Menasaat Website - Custom Styles */

/* ========================================
   COLOR VARIABLES & DARK MODE SUPPORT
   ======================================== */
:root {
    --primary: #00B4B4;
    --primary-dark: #009999;
    --secondary: #003366;
    --accent: #00D4AA;
    --neutral-light: #F8FAFC;
    --neutral-dark: #1E293B;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --white: #FFFFFF;

    /* Dark Mode Variables */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #1E293B;
}

/* Dark Mode Color Overrides */
.dark {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --card-bg: #1E293B;
    --header-bg: rgba(15, 23, 42, 0.98);
    --footer-bg: #020617;
    --gray-100: #334155;
    --gray-200: #475569;
    --neutral-light: #1E293B;
}

/* Dark Mode Base Styles */
.dark body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.dark .header {
    background: var(--header-bg);
}

.dark .header.scrolled {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark .card,
.dark .product-card,
.dark .case-study-card,
.dark .testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark .section-alt {
    background: var(--bg-secondary);
}

.dark .footer {
    background: var(--footer-bg);
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: var(--text-primary);
}

.dark p {
    color: var(--text-secondary);
}

.dark .text-gray-600,
.dark .text-gray-700 {
    color: var(--text-secondary) !important;
}

.dark .text-gray-500,
.dark .text-gray-400 {
    color: var(--text-muted) !important;
}

.dark .border-gray-100,
.dark .border-gray-200 {
    border-color: var(--border-color) !important;
}

.dark .bg-white {
    background-color: var(--card-bg) !important;
}

.dark .bg-gray-50,
.dark .bg-gray-100 {
    background-color: var(--bg-tertiary) !important;
}

.dark .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark .dropdown-menu a {
    color: var(--text-secondary);
}

.dark .dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.dark .mobile-menu {
    background: var(--bg-primary);
}

.dark .mobile-menu a {
    color: var(--text-secondary);
}

.dark .accordion-header {
    background: var(--card-bg);
    color: var(--text-primary);
}

.dark .accordion-body {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.dark .form-input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark .form-input::placeholder {
    color: var(--text-muted);
}

.dark .trust-bar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark .placeholder-logo,
.dark .placeholder-image {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-muted);
}

.dark .icon-box {
    background: linear-gradient(135deg, rgba(0, 180, 180, 0.2) 0%, rgba(0, 212, 170, 0.2) 100%);
}

.dark .badge-primary {
    background: rgba(0, 180, 180, 0.2);
}

.dark .badge-secondary {
    background: rgba(0, 51, 102, 0.3);
    color: #93C5FD;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.dark-mode-toggle:hover {
    background: var(--gray-100);
}

.dark .dark-mode-toggle:hover {
    background: var(--bg-tertiary);
}

.dark-mode-toggle .fa-moon {
    display: inline;
}

.dark-mode-toggle .fa-sun {
    display: none;
}

.dark .dark-mode-toggle .fa-moon {
    display: none;
}

.dark .dark-mode-toggle .fa-sun {
    display: inline;
    color: #FBBF24;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

/* Custom Gradient */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #004080 100%);
}

/* Button Styles */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 180, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    background: transparent;
}

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

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

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

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 50;
    padding: 0.5rem 0;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 100;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Placeholder Styles */
.placeholder-image {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    border-radius: 0.5rem;
}

.placeholder-logo {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    border-radius: 0.5rem;
    padding: 1rem;
}

.placeholder-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 180, 180, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

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

.section-alt {
    background: var(--neutral-light);
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.25rem;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-header.active {
    background: var(--gray-100);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-body {
    padding: 1.25rem;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-200);
}

/* Footer Styles */
.footer {
    background: var(--neutral-dark);
    color: var(--gray-300);
}

.footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Newsletter */
.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    outline: none;
    width: 100%;
}

.newsletter-input::placeholder {
    color: var(--gray-400);
}

.newsletter-input:focus {
    border-color: var(--primary);
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero h1 {
    color: var(--white);
}

/* Page-specific Hero Backgrounds */
.hero-about {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-services {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-products {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-industries {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-case-studies {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-blog {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-contact {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* Service Page Heroes */
.hero-web-dev {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1547658719-da2b51169166?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-mobile-dev {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-erp {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-lms {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1501504905252-473c47e087f8?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-migration {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-hosting {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-vr-ar {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1622979135225-d2ba269cf1ac?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-support {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* Product Page Heroes */
.hero-education {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-ecommerce {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-crm {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-marketplace {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-ai {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-booking {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1506784983877-45594efa4cbe?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-healthcare {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-utility {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* Trust Bar */
.trust-bar {
    background: var(--white);
    padding: 3rem 0;
}

.trust-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.trust-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 4rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background: var(--gray-200);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Case Study Card */
.case-study-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-study-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

/* Testimonial */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    background-color: var(--white);
    color: var(--text-primary);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(0, 180, 180, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(0, 51, 102, 0.1);
    color: var(--secondary);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

/* ========================================
   ACCESSIBILITY FEATURES
   ======================================== */

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Screen Reader Only Content */
.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;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus Visible States - Enhanced Visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced focus for buttons */
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-white:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(0, 180, 180, 0.3);
}

/* Focus within cards */
.card:focus-within,
.product-card:focus-within,
.case-study-card:focus-within {
    box-shadow: 0 0 0 3px var(--primary);
}

/* Form Focus States */
.form-input:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.2);
    outline: none;
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero {
        background-attachment: scroll !important;
    }

    .skip-link {
        transition: none;
    }
}

/* ========================================
   HIGH CONTRAST MODE SUPPORT
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #008B8B;
        --secondary: #00264D;
    }

    .btn-primary,
    .btn-outline,
    .btn-white {
        border: 2px solid currentColor;
    }

    a {
        text-decoration: underline;
    }

    .card,
    .product-card,
    .case-study-card {
        border: 2px solid var(--gray-800);
    }
}

/* ========================================
   LIVE REGIONS FOR DYNAMIC CONTENT
   ======================================== */
[role="alert"],
[aria-live="polite"],
[aria-live="assertive"] {
    /* Ensure screen readers can find these */
}

.form-status {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid #059669;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid #DC2626;
}

.dark .form-status.success {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.dark .form-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .skip-link,
    .mobile-menu,
    .mobile-overlay,
    .dark-mode-toggle {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
