/*
Theme Name: UmairIT Agency Theme
Author: UmairIT
Description: Custom Agency Theme with Elementor Support
Version: 1.1
*/

:root {
  --bg-dark: #081226;
  --primary-cyan: #00B4FF;
  --accent-orange: #FF7F00;
  --text-white: #FFFFFF;
  --text-gray: #B0B8C4;
  --glass: rgba(12, 26, 53, 0.75);
  --border: 1px solid rgba(255, 255, 255, 0.08);
}

body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg-dark); color: var(--text-gray); }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- HEADER CONTAINER --- */
.header-container {
  position: fixed;
  top: 20px;
  left: 0; right: 0;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border);
  border-radius: 50px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
}

.logo { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; color: white; display: flex; align-items: center; gap: 10px; z-index: 1001; }
.logo i { color: var(--accent-orange); }

/* --- DESKTOP NAVIGATION LAYOUT --- */
/* This aligns the Menu and Button side-by-side on desktop */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
.nav-menu > li { position: relative; display: inline-block; padding: 10px 0; }
.nav-menu > li > a { color: var(--text-white); font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 5px; }
.nav-menu > li > a:hover { color: var(--primary-cyan); }

/* Hover Dot */
.nav-menu > li > a::after {
    content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%) scale(0);
    width: 6px; height: 6px; background: var(--accent-orange); border-radius: 50%; transition: 0.3s;
}
.nav-menu > li:hover > a::after { transform: translateX(-50%) scale(1); }

/* Header Button */
.header-btn {
  padding: 12px 25px;
  background: linear-gradient(90deg, var(--primary-cyan), #0090cc);
  color: white; border-radius: 30px; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 180, 255, 0.3);
  display: inline-block;
}
.header-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 180, 255, 0.5); color: white; }

/* Sticky State */
.header-container.scrolled { top: 0; width: 100%; max-width: 100%; }
.header-container.scrolled .navbar { border-radius: 0; border: none; background: rgba(8, 18, 38, 0.98); }

/* --- DROPDOWNS (DESKTOP) --- */
.nav-menu .sub-menu {
    position: absolute; top: 100%; left: 0; width: 220px;
    background: rgba(8, 18, 38, 0.95); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    padding: 10px 0; opacity: 0; visibility: hidden;
    transform: translateY(15px); transition: all 0.3s ease; z-index: 9999;
}
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu li a { display: block; padding: 10px 20px; color: var(--text-gray); font-size: 0.9rem; border-left: 2px solid transparent; }
.nav-menu .sub-menu li a:hover { background: rgba(255,255,255,0.05); color: var(--primary-cyan); border-left: 2px solid var(--accent-orange); padding-left: 25px; }
.nav-menu .sub-menu li a::after { display: none; }


/* 1. Force Top-Level Links to be Flex Rows */
.nav-menu > li > a {
    display: flex !important;       /* Forces items side-by-side */
    align-items: center !important; /* Vertically centers text and arrow */
    flex-direction: row;            /* Ensures horizontal layout */
    gap: 8px;                       /* Space between Text and Arrow */
    white-space: nowrap;            /* Prevents text from wrapping */
}

/* 2. Style the Arrow (The ::after pseudo-element) */
.nav-menu > .menu-item-has-children > a::after {
    content: '\ea4e';               /* Remix Icon: Arrow Down */
    font-family: 'remixicon';       /* Required for the icon to show */
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    line-height: 1;
    display: inline-block;          /* Ensures it behaves like an icon */
    
    /* Remove old positioning that might cause issues */
    position: static; 
    margin: 0;
    transform: none;
    width: auto;
    height: auto;
    background: none;
}
.mobile-dropdown-toggle {
    display: none;
}
/* 3. Remove the arrow from Sub-Menu items (optional, cleans up dropdowns) */
.nav-menu .sub-menu li a::after {
    display: none;
}
.mobile-dropdown-toggle{
    display: none;
}
/* --- MOBILE & OFF-CANVAS STYLES --- */
.mobile-toggle, .offcanvas-header, .offcanvas-overlay { display: none; }
@media(max-width: 576px){
        button.mobile-toggle {
    border: none!important;
    padding: 5px 10px !important;
    font-size: 24px!important;
    line-height: 1!important;
}
.close-menu{
    padding: 0 !important;
}
.close-menu i{
    font-size: 1.5rem !important;
    line-height: 1 !important;
}
.nav-menu{
    gap: 0!important
}
.mobile-dropdown-toggle i{
    font-size: 1.5rem !important;
}
.nav-menu > li {
    padding: 0!important;
}
}


@media (max-width: 991px) {
    .nav-menu > .menu-item-has-children > a::after {
        display: none !important;
        content: none;
    }
    /* Navbar Adjustments */
    .navbar { padding: 15px 20px; }

    /* Show Hamburger */
    .mobile-toggle {
        display: block; background: transparent; border: 1px solid rgba(255,255,255,0.2);
        color: white; border-radius: 8px; cursor: pointer;
    }

    /* Off-Canvas Logic (The Drawer) */
    .nav-wrapper {
        position: fixed; top: 0; right: -100%; /* Hidden off-screen */
        width: 85%; max-width: 350px; height: 100vh;
        background: rgba(8, 18, 38, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255,255,255,0.1);
        padding: 0; z-index: 9999;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex; flex-direction: column; gap: 0; /* Override desktop gap */
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-wrapper.active { right: 0; } /* Slide In */

    /* Drawer Header */
    .offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2); width: 100%; box-sizing: border-box; }
    .offcanvas-title { font-size: 1.2rem; font-weight: 600; color: white; }
    .close-menu { background: none; border: none; color: var(--text-gray); font-size: 1.5rem; cursor: pointer; }

    /* Menu Items in Drawer */
    .nav-menu { flex-direction: column; width: 100%; align-items: flex-start; }
    .nav-menu > li { width: 100%; display: block; border-bottom: 1px solid rgba(255,255,255,0.02); }
    .nav-menu > li > a { padding: 15px 25px; font-size: 1.05rem; width: 100%; box-sizing: border-box; justify-content: space-between; }
    .nav-menu > li > a::after { display: none; } /* Remove hover dot */

   
  

    /* 6. Mobile Dropdowns */
    .nav-menu > li {
        position: relative; /* Needed for toggle button positioning */
    }

    /* Hide Submenu by Default */
    .nav-menu .sub-menu {
        display: none; 
        background: rgba(255,255,255,0.03);
        width: 100%;
        padding: 0;
    }

    /* Show Submenu when class 'dropdown-open' is added via JS */
    .nav-menu li.dropdown-open > .sub-menu {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-menu .sub-menu li a {
        padding-left: 40px;
        color: rgba(255,255,255,0.7);
        border-bottom: 1px solid rgba(255,255,255,0.02);
    }

    /* The Toggle Button (Added via JS) */
    .mobile-dropdown-toggle {
        font-family: 'remixicon';
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 52px; /* Matches link height */
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--text-white);
        cursor: pointer;
        z-index: 10;
        border-left: 1px solid rgba(255,255,255,0.05);
        transition: 0.3s;
    }

    .mobile-dropdown-toggle:hover {
        background: rgba(255,255,255,0.1);
        color: var(--primary-cyan);
    }

    /* Rotate Arrow when Open */
    .nav-menu li.dropdown-open > .mobile-dropdown-toggle {
        transform: rotate(180deg);
        color: var(--accent-orange);
    }

    
    /* CTA Button in Drawer */
    .header-btn-container { margin-top: auto; padding: 25px; border-top: 1px solid rgba(255,255,255,0.05); width: 100%; box-sizing: border-box; }
    .header-btn { display: block; text-align: center; width: 100%; }

    /* Backdrop Overlay */
    .offcanvas-overlay { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s; }
    .offcanvas-overlay.active { opacity: 1; visibility: visible; }
}
/* Simple Slide Animation */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

/* FOOTER & ELEMENTOR FIXES */
footer { margin-top: 150px; padding-top: 150px; background: #020611; position: relative; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-cta-deck { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1000px; background: linear-gradient(135deg, var(--bg-dark), #0f2042); border: 1px solid var(--primary-cyan); padding: 60px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5); z-index: 10; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px 60px 20px; }
.footer-col h4 { color: white; margin-bottom: 25px; } .footer-col li { margin-bottom: 15px; } .footer-col a { color: var(--text-gray); font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 25px 0; text-align: center; font-size: 0.85rem; opacity: 0.5; }
@media (max-width: 900px) { .footer-cta-deck { flex-direction: column; text-align: center; padding: 40px; gap: 30px; } .footer-grid { grid-template-columns: 1fr; text-align: center; } }

.deck-btn {
    padding: 18px 40px;
    background: var(--accent-orange);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(255, 127, 0, 0.4);
}
  .deck-btn:hover { background: white; color: var(--accent-orange); }
