/*
Theme Name: Semligo Premium
Theme URI: https://semligo.com/theme
Description: The ultimate high-converting premium WordPress theme for selling App Development and Web Development products. Features stunning dark glassmorphism aesthetics, fluid micro-animations, and high-performance modular components.
Version: 1.0.0
Author: Semligo Team
Author URI: https://semligo.com
Text Domain: semligo
*/

/**
 * Semligo Premium Theme Core Stylesheet
 * Custom Obsidian Dark Design System with Glassmorphism, Fluid Transitions, and Glowing Gradients.
 */

/* ==========================================================================
   0. CORE CUSTOM VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #0b0b14;
    --bg-dark-rgb: 11, 11, 20;
    --bg-surface: rgba(22, 22, 38, 0.6);
    --bg-surface-hover: rgba(30, 30, 50, 0.8);
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-hover: rgba(255, 255, 255, 0.12);
    
    --accent-cyan: #00f2fe;
    --accent-purple: #7f00ff;
    --accent-blue: #0984e3;
    --accent-magenta: #ff007f;
    
    --text-primary: #ffffff;
    --text-muted: #a4b0be;
    --text-cyan: #00f2fe;
    
    --gradient-primary: linear-gradient(135deg, #7f00ff 0%, #00f2fe 100%);
    --gradient-glow: linear-gradient(135deg, rgba(127, 0, 255, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. PREMIUM UTILITY CLASSES & GLASSMORPHISM
   ========================================================================== */
.semligo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.semligo-glass {
    background: var(--bg-surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass) !important;
    border-radius: 16px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.semligo-glass:hover {
    border-color: var(--border-glass-hover) !important;
    background: var(--bg-surface-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.glowing-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 242, 254, 0.25));
}

.glowing-btn {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glowing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.glowing-btn:active {
    transform: translateY(-1px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   2. HERO & KEYBOARD CURSOR KEYFRAMES
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background-image: radial-gradient(circle at 10% 20%, rgba(127, 0, 255, 0.08) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 45%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2) !important;
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #fff !important;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 580px;
}

.typing-text::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--accent-cyan);
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-showcase-box {
    position: relative;
    padding: 20px;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.floating-tech-badge {
    position: absolute;
    background: rgba(22, 22, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==========================================================================
   3. PRODUCTS SHOWROOM & CARDS
   ========================================================================== */
.showroom-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff !important;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass) !important;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent !important;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: var(--gradient-glow);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.product-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-tech-wrap {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass) !important;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff !important;
    text-decoration: none;
    display: block;
}

.product-title:hover {
    color: var(--accent-cyan);
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-cyan);
}

/* ==========================================================================
   4. SERVICES & SERVICES GRID
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(127, 0, 255, 0.03) 0%, transparent 60%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 35px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-glass) !important;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-glow);
    border: 1px solid rgba(0, 242, 254, 0.15) !important;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    transition: transform var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff !important;
}

.service-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   5. STATS, TESTIMONIALS & NEWSLETTER
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    background: rgba(22, 22, 38, 0.3);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 900;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.testimonials-section {
    padding: 100px 0;
}

.testimonial-card {
    padding: 30px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    object-fit: cover;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    color: #fff !important;
}

.testimonial-company {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(127, 0, 255, 0.05) 100%);
}

.contact-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass) !important;
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 38px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .semligo-container {
        padding: 0 16px;
    }
}

/* ==========================================================================
   7. FLOATING GLOWING WHATSAPP BUTTON (Aesthetic Integration)
   ========================================================================== */
.semligo-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #075E54 100%);
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 99999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    text-decoration: none;
}

.semligo-whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.semligo-whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2s infinite;
    z-index: -1;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   8. RESPONSIVE MENU & DYNAMIC Drawer STYLING
   ========================================================================== */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.desktop-nav a:hover {
    color: #fff;
}

/* Hamburger toggle styling */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 100000;
}

.mobile-menu-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Slide Drawer overlay */
.semligo-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: rgba(11, 11, 20, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-glass-hover);
    z-index: 999999;
    padding: 90px 30px 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0,0,0,0.5);
}

.semligo-mobile-drawer.active {
    right: 0;
}

.mobile-drawer-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.mobile-drawer-close:hover {
    color: var(--accent-cyan);
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.mobile-drawer-links a {
    color: var(--text-muted);
    font-size: 17px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    padding-bottom: 8px;
}

.mobile-drawer-links a:hover {
    color: var(--accent-cyan);
}

/* ==========================================================================
   9. OVERFLOW FIXES FOR ALL MODULES (Responsive Grid & Sections)
   ========================================================================== */
.semligo-responsive-grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.semligo-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.9fr);
    gap: 40px;
}

/* Main Mobile responsive tweaks */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .semligo-responsive-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .semligo-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }
}

@media (max-width: 575px) {
    .semligo-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    /* Overall safety margin fixes */
    .semligo-container {
        padding: 0 16px !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    
    section, footer {
        overflow: hidden !important;
    }
    
    .contact-form div {
        grid-template-columns: 1fr !important;
    }
}
