/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 5%;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(243, 111, 33, 0.1);
}

.main-header:hover {
    background: rgba(13, 13, 26, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.logo img {
    height: 40px;
    vertical-align: middle;
    transition: transform 0.3s ease;
    display: block;
}

.logo a {
    display: inline-block;
    line-height: 0;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.nav-menu > li {
    list-style: none;
}

.nav-menu > li::before {
    content: none;
    display: none;
}

.nav__link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav__link:hover,
.nav__link.active {
    color: #f36f21;
    background: rgba(243, 111, 33, 0.1);
    transform: translateY(-2px);
}

/* Dropdown Styles - Base */
.dropdown__item {
    position: relative;
}

.dropdown__button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown__button:hover {
    background: rgba(243, 111, 33, 0.1);
    color: #f36f21;
}

.dropdown__arrow {
    font-size: 0.7rem;
    font-weight: initial;
    transition: transform 0.4s ease;
    opacity: 0.8;
    display: inline-block;
}

/* Desktop Dropdown Menu */
.dropdown__menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
}

.dropdown__menu li {
    list-style: none;
}

.dropdown__menu li::before {
    content: none;
    display: none;
}

.dropdown__link {
    padding: 0.8rem 1rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 12px;
    margin: 0.2rem 0;
    transition: all 0.3s ease;
}

.dropdown__link:hover {
    background: linear-gradient(135deg, rgba(243, 111, 33, 0.15), rgba(243, 111, 33, 0.05));
    color: #f36f21;
    transform: translateX(5px);
}

/* Desktop only dropdown positioning */
@media (min-width: 769px) {
    .dropdown__menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 50%;
        transform: translateX(-50%);
        background: rgba(13, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(243, 111, 33, 0.2);
        border-radius: 16px;
        min-width: 200px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        z-index: 100;
    }

    .dropdown__item:hover .dropdown__menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .dropdown__item:hover .dropdown__arrow {
        transform: rotate(180deg);
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
}

.language-selector select {
    background: rgba(26, 26, 46, 0.8);
    color: #e0e0e0;
    border: 1px solid rgba(243, 111, 33, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-selector select:hover {
    background: rgba(26, 26, 46, 0.95);
    border-color: rgba(243, 111, 33, 0.6);
    transform: translateY(-2px);
}

.language-selector select:focus {
    border-color: #f36f21;
    box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.1);
}

/* Search Button */
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(243, 111, 33, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 0.5rem;
}

.search-button:hover {
    background: rgba(26, 26, 46, 0.95);
    border-color: rgba(243, 111, 33, 0.6);
    color: #f36f21;
    transform: translateY(-2px);
}

.search-button svg {
    display: block;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: rgba(13, 13, 26, 0.98);
    border: 1px solid rgba(243, 111, 33, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(243, 111, 33, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.search-close {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(243, 111, 33, 0.1);
    color: #f36f21;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(243, 111, 33, 0.5);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(243, 111, 33, 0.7);
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: rgba(224, 224, 224, 0.5);
    text-align: center;
}

.search-empty svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: rgba(224, 224, 224, 0.5);
    text-align: center;
}

.search-no-results svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.search-result-item {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(243, 111, 33, 0.1);
    border-color: rgba(243, 111, 33, 0.3);
}

.search-result-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(243, 111, 33, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #f36f21;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.search-result-content {
    font-size: 0.9rem;
    color: rgba(224, 224, 224, 0.7);
    line-height: 1.5;
}

.search-result-item mark {
    background: rgba(243, 111, 33, 0.3);
    color: #f36f21;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.search-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(243, 111, 33, 0.2);
    background: rgba(26, 26, 46, 0.5);
}

.search-shortcuts {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.6);
}

.search-shortcuts kbd {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(243, 111, 33, 0.3);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #e0e0e0;
    min-width: 30px;
    text-align: center;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 5%;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(13, 13, 26, 0.75),
        rgba(13, 13, 26, 0.85)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8),
                 0 0 15px rgba(243, 111, 33, 0.7);
    animation: fadeInUp 1s ease-out;
}

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

/* General Section Styling */
section {
    padding: 6rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}

#introduction p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column-layout img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-study-card {
    background: #000000;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #f36f21;
}

.case-study-card h3 {
    font-size: 1.5rem;
    color: #f36f21;
    margin-bottom: 1rem;
}

#tailored-ai p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 5%;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #f36f21;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ff8c42;
    transform: translateY(-5px);
}

/* ============================================
   BLOG PAGES STYLES
   ============================================ */

/* Blog Page */
.blog-page {
    min-height: 80vh;
    padding: 6rem 5%;
    background: #000000;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: rgba(224, 224, 224, 0.8);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card-link {
    text-decoration: none;
    display: block;
}

.blog-card {
    background: #000000;
    border: 2px solid #f36f21;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #ff8c42;
    box-shadow: 0 15px 40px rgba(243, 111, 33, 0.4);
    background: rgba(20, 20, 20, 0.95);
}

.blog-card h3 {
    font-size: 1.6rem;
    color: #f36f21;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.blog-card:hover h3 {
    color: #ff8c42;
}

.blog-card p {
    font-size: 1.05rem;
    color: rgba(224, 224, 224, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Blog Detail Page */
.blog-detail-page {
    min-height: 80vh;
    padding: 6rem 5%;
    background: #000000;
}

.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #f36f21;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-link:hover {
    color: #ff8c42;
    transform: translateX(-5px);
}

.blog-detail-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(243, 111, 33, 0.2);
}

.blog-detail-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-date,
.blog-category {
    color: rgba(224, 224, 224, 0.7);
    font-size: 0.95rem;
}

.blog-category {
    padding: 0.3rem 1rem;
    background: rgba(243, 111, 33, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(243, 111, 33, 0.3);
    color: #f36f21;
}

.blog-content {
    line-height: 1.9;
}

.blog-content section {
    margin-bottom: 3rem;
    padding: 0;
    border: none;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f36f21;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.blog-content p {
    font-size: 1.05rem;
    color: rgba(224, 224, 224, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.blog-content strong {
    color: #f36f21;
    font-weight: 600;
}

.blog-cta {
    background: linear-gradient(135deg, rgba(243, 111, 33, 0.1) 0%, rgba(243, 111, 33, 0.05) 100%);
    border: 2px solid rgba(243, 111, 33, 0.3);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.blog-cta h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.1rem;
    color: rgba(224, 224, 224, 0.8);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #f36f21 0%, #ff8c42 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(243, 111, 33, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #d15c1a 0%, #f36f21 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(243, 111, 33, 0.4);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-section {
    background: #000000;
    padding: 6rem 5%;
}

.contact-page {
    min-height: 80vh;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-page-header p {
    font-size: 1.1rem;
    color: rgba(224, 224, 224, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.contact-container h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(243, 111, 33, 0.2);
    border-radius: 15px;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.form-input:focus {
    border-color: #f36f21;
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 0 4px rgba(243, 111, 33, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f36f21 0%, #ff8c42 100%);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(243, 111, 33, 0.3);
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, #d15c1a 0%, #f36f21 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(243, 111, 33, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.social-media {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-media a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 111, 33, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 111, 33, 0.2);
}

.social-media a:hover {
    background: rgba(243, 111, 33, 0.2);
    transform: translateY(-3px);
    border-color: #f36f21;
    box-shadow: 0 5px 15px rgba(243, 111, 33, 0.3);
}

.social-media img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: filter 0.3s;
}

.social-media a:hover img {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(350deg);
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 992px) {
    .navbar {
        gap: 1rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav__link,
    .dropdown__button {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Search Button Tablet */
    .search-button {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 4%;
    }

    .navbar {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
        order: 3;
    }

    /* Logo stays in place */
    .logo {
        order: 1;
        z-index: 1001;
        flex-shrink: 0;
    }

    .logo img {
        height: 35px;
        display: block;
    }

    /* Search Button Mobile */
    .search-button {
        order: 2;
        width: 36px;
        height: 36px;
        margin: 0 0.5rem 0 auto;
    }

    /* Language selector moves */
    .language-selector {
        order: 3;
        margin-right: 0;
        margin-left: 0.5rem;
    }

    .language-selector select {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Search Modal Mobile */
    .search-modal {
        padding-top: 5vh;
    }

    .search-modal-content {
        width: 95%;
        max-height: 80vh;
    }

    .search-modal-header {
        padding: 1rem;
    }

    .search-input {
        font-size: 1rem;
    }

    .search-results {
        max-height: 300px;
    }

    .search-result-item {
        padding: 0.8rem;
    }

    .search-result-title {
        font-size: 1rem;
    }

    .search-result-content {
        font-size: 0.85rem;
    }

    .search-footer {
        padding: 0.8rem 1rem;
    }

    .search-shortcuts {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .search-shortcuts kbd {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2rem 0;
        gap: 0;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

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

    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(243, 111, 33, 0.1);
    }

    .nav__link {
        display: block;
        width: 100%;
        padding: 1.2rem 2rem;
        text-align: left;
        border-radius: 0;
        font-size: 1rem;
    }

    .nav__link:hover {
        transform: none;
        background: rgba(243, 111, 33, 0.15);
    }

    /* ==================================================
       MOBILE DROPDOWN - COMPLETE RESET
       ================================================== */
    
    /* Reset dropdown item */
    .nav-menu > li.dropdown__item {
        position: static !important;
        width: 100%;
    }

    /* Reset dropdown button */
    .nav-menu .dropdown__link:hover {
        transform: none !important;
        background: rgba(243, 111, 33, 0.15) !important;
    }

    /* Visual feedback */
    .nav-menu > li.dropdown__item.active > .dropdown__button {
        background: rgba(243, 111, 33, 0.05);
    }

    /* Blog Page Mobile */
    .blog-header h1 {
        font-size: 2.2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 2rem 1.5rem;
        min-height: 150px;
    }

    .blog-card h3 {
        font-size: 1.4rem;
    }

    .blog-card p {
        font-size: 1rem;
    }

    /* Blog Detail Mobile */
    .blog-detail-page {
        padding: 4rem 4%;
    }

    .blog-detail-header h1 {
        font-size: 2rem;
    }

    .blog-meta {
        gap: 1rem;
    }

    .blog-content h2 {
        font-size: 1.6rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }

    .blog-content p {
        font-size: 1rem;
    }

    .blog-cta {
        padding: 2rem 1.5rem;
    }

    .blog-cta h3 {
        font-size: 1.6rem;
    }

    .blog-cta p {
        font-size: 1rem;
    }

    /* Contact Page Mobile */
    .contact-page-header h1 {
        font-size: 2.2rem;
    }

    .contact-page-header p {
        font-size: 1rem;
    }

    .contact-section {
        padding: 4rem 4%;
    }

    .form-input {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }

    .form-submit-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .social-media {
        margin-top: 3rem;
        gap: 1.5rem;
    }

    .social-media a {
        width: 44px;
        height: 44px;
    }

    .social-media img {
        width: 22px;
        height: 22px;
    }

    /* Hero Section Mobile */
    .hero-content h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    /* Sections Mobile */
    section {
        padding: 4rem 4%;
    }

    h2 {
        font-size: 1.8rem;
    }

    .slider {
        grid-template-columns: 1fr;
    }

    .case-study-card {
        padding: 1.5rem;
    }

    /* Back to Top Mobile */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .main-header {
        padding: 0.8rem 3%;
    }

    .logo img {
        height: 30px;
        display: block;
    }

    .logo {
        flex-shrink: 0;
    }

    .language-selector select {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 3%;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav__link,
    .dropdown__button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .dropdown__link {
        padding: 0.9rem 2.5rem;
        font-size: 0.9rem;
    }

    .case-study-card {
        padding: 1.2rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }

    /* Blog Page Small Mobile */
    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-header p {
        font-size: 0.95rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .blog-card h3 {
        font-size: 1.2rem;
    }

    .blog-card p {
        font-size: 0.95rem;
    }

    /* Blog Detail Small Mobile */
    .blog-detail-page {
        padding: 3rem 3%;
    }

    .blog-detail-header h1 {
        font-size: 1.6rem;
    }

    .blog-content h2 {
        font-size: 1.4rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-content p {
        font-size: 0.95rem;
    }

    .blog-cta {
        padding: 1.5rem 1rem;
    }

    .blog-cta h3 {
        font-size: 1.4rem;
    }

    .blog-cta p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* Contact Page Small Mobile */
    .contact-page-header h1 {
        font-size: 1.8rem;
    }

    .contact-page-header p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .contact-section {
        padding: 3rem 3%;
    }

    .form-input {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }

    .form-submit-btn {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .social-media {
        margin-top: 2.5rem;
        gap: 1rem;
    }

    .social-media a {
        width: 40px;
        height: 40px;
    }

    .social-media img {
        width: 20px;
        height: 20px;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Mobile Dropdown Button */
@media (max-width: 768px) {
    .nav-menu .dropdown__button {
        position: static !important;
        width: 100%;
        justify-content: space-between;
        padding: 1.2rem 2rem;
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }

    .nav-menu .dropdown__arrow {
        font-size: 0.8rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    /* CRITICAL: Reset dropdown menu to static positioning */
    .nav-menu > li.dropdown__item > .dropdown__menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        background: rgba(26, 26, 46, 0.8) !important;
        border: none !important;
        border-top: 1px solid rgba(243, 111, 33, 0.15) !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Default closed state */
    .nav-menu > li.dropdown__item > .dropdown__menu {
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: max-height 0.4s ease !important;
    }

    /* ACTIVE/OPEN state - This should override everything */
    .nav-menu > li.dropdown__item.active > .dropdown__menu {
        max-height: 800px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .nav-menu > li.dropdown__item.active .dropdown__arrow {
        transform: rotate(180deg) !important;
    }

    /* Dropdown menu items */
    .nav-menu .dropdown__menu li {
        list-style: none !important;
        width: 100%;
    }

    .nav-menu .dropdown__menu li::before {
        display: none !important;
        content: none !important;
    }

    .nav-menu .dropdown__link {
        padding: 1rem 3rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        font-size: 0.95rem !important;
        border-bottom: 1px solid rgba(243, 111, 33, 0.05) !important;
        display: block !important;
        width: 100% !important;
    }
}