/*
Theme Name: MobileApp Pro
Description: A mobile-first WordPress theme designed to look and feel like a native mobile app. Fully responsive with touch-friendly interface, optimized for performance and plugin compatibility.
Version: 1.0.0
Author: Custom Development
Tags: mobile-first, responsive, app-like, lightweight, performance
Text Domain: mobileapp-pro
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ==========================================================================
   MOBILE-FIRST CSS RESET & FOUNDATION
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ==========================================================================
   MOBILE-APP LAYOUT STRUCTURE
   ========================================================================== */

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.app-content {
    flex: 1;
    padding: 1rem;
    margin-bottom: 80px; /* Space for bottom nav */
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1000;
}

/* ==========================================================================
   MOBILE-FIRST NAVIGATION
   ========================================================================== */

.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Slide-out */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 2rem;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Items */
.mobile-menu ul {
    list-style: none;
    margin-top: 3rem;
}

.mobile-menu li {
    margin: 1rem 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateX(5px);
}

/* ==========================================================================
   BOTTOM TAB BAR (APP-LIKE)
   ========================================================================== */

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
}

.bottom-nav-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   CARD-BASED CONTENT LAYOUT
   ========================================================================== */

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card h1,
.content-card h2,
.content-card h3 {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

.content-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.content-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

/* ==========================================================================
   BUTTONS & FORM ELEMENTS (TOUCH-FRIENDLY)
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px; /* Touch-friendly */
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
    min-height: 48px; /* Touch-friendly */
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==========================================================================
   POST/PAGE CONTENT STYLES
   ========================================================================== */

.post-list {
    display: grid;
    gap: 1rem;
}

.post-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* ==========================================================================
   PLUGIN COMPATIBILITY STYLES
   ========================================================================== */

/* Contact Form 7 */
.wpcf7-form {
    margin: 0;
}

.wpcf7-form p {
    margin-bottom: 1rem;
}

.wpcf7-submit {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
}

/* Visual Composer */
.vc_row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.vc_column_container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Revolution Slider */
.rev_slider_wrapper {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* WooCommerce */
.woocommerce .button,
.woocommerce-page .button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.woocommerce .product {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet Portrait */
@media (min-width: 768px) {
    .app-content {
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .post-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .app-container {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .post-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bottom-nav {
        display: none; /* Hide bottom nav on desktop */
    }
    
    .app-content {
        margin-bottom: 0;
    }
    
    /* Desktop navigation can be enhanced here */
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }

.shadow { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }

/* ==========================================================================
   LOADING ANIMATIONS
   ========================================================================== */

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade-in animation for content */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

.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;
}

/* Focus styles */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ==========================================================================
   DARK FOOTER STYLES
   ========================================================================== */

.dark-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 3rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    padding: 0.5rem;
}

.footer-heading {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-description,
.footer-text {
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Footer Navigation */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-menu a:hover {
    color: #667eea;
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact {
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b8b8b8;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
    flex-shrink: 0;
}

.contact-item a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #667eea;
}

.contact-item.small-text {
    font-size: 0.8rem;
    opacity: 0.9;
    padding-left: 2rem;
}

.contact-item.small-text span {
    font-style: italic;
}

/* Footer Company Info */
.footer-company-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-company-info p {
    color: #b8b8b8;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    color: #888;
    margin: 0;
    font-size: 0.85rem;
}

.footer-social .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.footer-social .social-links a {
    color: #b8b8b8;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social .social-links a:hover {
    color: #667eea;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
    .dark-footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   ENHANCED APP HEADER STYLES
   ========================================================================== */

.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 1.25rem;
}

.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container .logo,
.logo-container .custom-logo-link {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-container .custom-logo {
    max-height: 50px;
    width: auto;
}

.hamburger {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Enhanced - SLIDES FROM RIGHT (COMPACT) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3a5f 0%, #2d5a7b 100%);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    left: auto;
}

.mobile-menu-header {
    padding: 1rem 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .menu-logo h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.mobile-menu-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.mobile-menu-list li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-list a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.3s ease;
}

.mobile-menu-list a:hover::before,
.mobile-menu-list a.current::before {
    width: 4px;
}

.mobile-menu-list a:hover,
.mobile-menu-list a.current {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 1.25rem;
}

.menu-icon {
    width: 18px;
    height: 18px;
    color: #fff;
    flex-shrink: 0;
    opacity: 0.85;
}

.mobile-menu-list a:hover .menu-icon {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.mobile-menu-extras {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ==========================================================================
   ENHANCED CONTENT CARDS
   ========================================================================== */

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4 {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.content-card h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-card h2 {
    font-size: 1.6rem;
    font-weight: 600;
}

.content-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.content-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}

.content-card ul,
.content-card ol {
    margin: 1rem 0 1rem 1.5rem;
    color: #555;
    line-height: 1.7;
}

.content-card li {
    margin-bottom: 0.5rem;
}

/* Entry Content Styling */
.entry-content {
    font-size: 1rem;
    line-height: 1.7;
}

.page-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   APP CONTENT AREA ENHANCEMENTS
   ========================================================================== */

.app-content {
    flex: 1;
    padding: 1.5rem;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
    .app-content {
        padding: 0;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card h1 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   BEAUTIFUL HOMEPAGE DESIGN
   ========================================================================== */

/* ==========================================================================
   ULTRA MODERN HOMEPAGE - UNIQUE DESIGN
   ========================================================================== */

.ultra-modern-homepage {
    padding: 0;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    min-height: 100vh;
}

/* Gradient Hero with Floating Shapes - COMPACT */
.gradient-hero {
    position: relative;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
    text-align: center;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: -3%;
    animation-delay: 3s;
}

.shape-3 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-wrapper {
    position: relative;
    z-index: 1;
}

.glowing-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: glow 3s ease-in-out infinite;
    line-height: 1.3;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 80px rgba(255, 255, 255, 0.5); }
}

.hero-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-metrics {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.metric-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.metric-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Hexagon Services Grid - COMPACT */
.hexagon-services {
    padding: 1.2rem 0.75rem;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 58, 0.95) 100%);
}

.modern-heading {
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hex-grid {
    display: grid;
    gap: 0.75rem;
}

.hex-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0.75rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hex-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hex-card:hover::before {
    opacity: 1;
}

.hex-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hex-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all 0.4s ease;
}

.hex-purple .hex-glow { background: linear-gradient(90deg, #667eea, #764ba2); }
.hex-cyan .hex-glow { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.hex-amber .hex-glow { background: linear-gradient(90deg, #f59e0b, #d97706); }
.hex-emerald .hex-glow { background: linear-gradient(90deg, #10b981, #059669); }

.hex-card:hover .hex-glow {
    height: 100%;
    opacity: 0.1;
}

.hex-icon-wrapper {
    margin-bottom: 0.5rem;
}

.hex-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.hex-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.hex-card p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.35;
    margin: 0;
}

/* Team Showcase with Modern Cards - COMPACT */
.team-showcase {
    padding: 1.2rem 0.75rem;
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.95) 0%, rgba(15, 20, 25, 0.95) 100%);
}

.team-mosaic {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.member-card:hover::after {
    left: 100%;
}

.member-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.card-style-1 {
    border-left: 3px solid #667eea;
}

.card-style-2 {
    border-left: 3px solid #f093fb;
}

.member-avatar {
    margin-bottom: 0.5rem;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.member-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    text-align: center;
    line-height: 1.3;
}

.role-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #a78bfa;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
    text-align: center;
}

.contact-links {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.4rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.65rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-2px);
}

.contact-link svg {
    width: 12px;
    height: 12px;
}

/* Call to Action Wave - COMPACT */
.wave-cta {
    position: relative;
    padding: 1.5rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,160L48,154.7C96,149,192,139,288,154.7C384,171,480,213,576,213.3C672,213,768,171,864,144C960,117,1056,107,1152,117.3C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.cta-content-box {
    position: relative;
    z-index: 1;
}

.cta-content-box h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.cta-content-box p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.pulse-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
}

.pulse-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: none;
}

.pulse-button svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (min-width: 576px) {
    .hex-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gradient-hero {
        padding: 5rem 2rem 4rem;
    }
    
    .glowing-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hexagon-services {
        padding: 5rem 2rem;
    }
    
    .hex-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .team-showcase {
        padding: 5rem 2rem;
    }
    
    .team-mosaic {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wave-cta {
        padding: 6rem 2rem;
    }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 30px;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */

.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.floating-whatsapp:active {
    transform: translateY(-2px) scale(1.05);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.btn.loading,
[type="submit"].loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after,
[type="submit"].loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ==========================================================================
   BODY LOADED STATE
   ========================================================================== */

body:not(.loaded) .fade-in {
    opacity: 0;
}

body.loaded .fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ==========================================================================
   ENHANCED SEARCH FORM
   ========================================================================== */

.mobile-search {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    margin-top: 0.5rem;
}

.mobile-search.hidden {
    display: none;
}

.mobile-search form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.mobile-search input[type="search"]:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.mobile-search button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .app-header,
    .dark-footer,
    .mobile-menu,
    .mobile-menu-overlay,
    .back-to-top,
    .bottom-nav {
        display: none !important;
    }
    
    .app-content {
        padding: 0;
        background: #fff;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}