/* Sidebar Styles */
.sidebar-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar {
    width: 80px;
    height: 100vh;
    background: linear-gradient(135deg, #2E86AB 0%, #1e5f7a 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(0);
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar:hover,
.sidebar.expanded {
    width: 270px;
}

.sidebar .nav-link span,
.sidebar .logo span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .nav-link span,
.sidebar:hover .logo span,
.sidebar.expanded .nav-link span,
.sidebar.expanded .logo span {
    opacity: 1;
    width: auto;
    margin-left: 0.5rem;
}

.sidebar .logo {
    padding: 1.5rem 1rem;
}

.sidebar .nav-link {
    justify-content: flex-start;
    padding: 1rem 1rem;
}

.sidebar:hover .logo,
.sidebar.expanded .logo {
    padding: 2rem 1.5rem;
}

.sidebar:hover .nav-link,
.sidebar.expanded .nav-link {
    padding: 1rem 1.5rem;
}

.sidebar .nav-link i {
    margin: 0;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(241, 143, 1, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Logo */
.logo {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F18F01, #ff9f1a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(241, 143, 1, 0.3);
    transition: all 0.3s ease;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.logo a:hover .logo-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(241, 143, 1, 0.4);
}

/* Navigation */
.nav {
    list-style: none;
    padding: 2rem 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.nav li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #F18F01, #ff9f1a);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #F18F01;
    transform: translateX(5px);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 3px;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link:hover i,
.nav-link.active i {
    transform: scale(1.2);
    color: #F18F01;
}

.nav-link span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Edge Detection Zone */
.edge-detection {
    position: fixed;
    left: 0;
    top: 0;
    width: 50px;
    height: 100vh;
    z-index: 998;
    background: transparent;
}

.edge-detection:hover ~ .sidebar-container .sidebar {
    width: 270px;
}

.edge-detection:hover ~ .sidebar-container .sidebar .nav-link span,
.edge-detection:hover ~ .sidebar-container .sidebar .logo span {
    opacity: 1;
    width: auto;
    margin-left: 0.5rem;
}

.edge-detection:hover ~ .sidebar-container .sidebar .logo {
    padding: 2rem 1.5rem;
}

.edge-detection:hover ~ .sidebar-container .sidebar .nav-link {
    padding: 1rem 1.5rem;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, #2E86AB, #1e5f7a);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.mobile-toggle:hover {
    background: linear-gradient(135deg, #F18F01, #ff9f1a);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(241, 143, 1, 0.4);
}

.mobile-toggle i {
    font-size: 1.2rem;
}

/* Overlay for mobile */
.overlay {
    display: none;   /* default = hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* prevent blocking clicks when hidden */
}

.overlay.active {
    display: block; 
    opacity: 1;
    pointer-events: auto; /* clickable only when active */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .overlay {
        display: block;
    }
    
    .edge-detection {
        display: block;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

@media (min-width: 1025px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 80px;
        transition: margin-left 0.3s ease;
    }
    
    .sidebar:hover ~ .homepage .main-content,
    .edge-detection:hover ~ .homepage .main-content,
    .sidebar:hover + .main-content {
        margin-left: 270px;
    }
    
    .edge-detection {
        display: block;
    }
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(241, 143, 1, 0.5);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(241, 143, 1, 0.7);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.sidebar.sliding-in {
    animation: slideIn 0.3s ease forwards;
}

.sidebar.sliding-out {
    animation: slideOut 0.3s ease forwards;
}

/* Hover Effects */
.nav-link::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    width: 0;
    height: 2px;
    background: #F18F01;
    transition: all 0.3s ease;
    opacity: 0;
}

.nav-link:hover::after {
    width: 20px;
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* Active state enhancements */
.nav-link.active {
    background: linear-gradient(90deg, rgba(241, 143, 1, 0.2), rgba(241, 143, 1, 0.05));
    box-shadow: inset 3px 0 0 #F18F01;
}

.nav-link.active i {
    color: #F18F01;
    text-shadow: 0 0 10px rgba(241, 143, 1, 0.3);
}

/* Focus states for accessibility */
.nav-link:focus {
    outline: 2px solid #F18F01;
    outline-offset: -2px;
}

.mobile-toggle:focus {
    outline: 2px solid #F18F01;
    outline-offset: 2px;
}

/* Custom scrollbar for sidebar on mobile */
@media (max-width: 1024px) {
    .sidebar {
        scrollbar-width: thin;
        scrollbar-color: rgba(241, 143, 1, 0.5) rgba(255, 255, 255, 0.1);
    }
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom animations and utility classes */
.gradient-text {
    background: linear-gradient(135deg, #2E86AB, #F18F01);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-bg {
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.05) 0%, rgba(241, 143, 1, 0.05) 100%);
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(46, 134, 171, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(241, 143, 1, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.card-hover:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(46, 134, 171, 0.15);
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #2E86AB, #F18F01);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-hover:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    -webkit-text-fill-color: #F18F01;
    color: #F18F01;
}

.section-divider {
    background: linear-gradient(90deg, transparent, #2E86AB, transparent);
    height: 3px;
    width: 120px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.feature-highlight {
    background: linear-gradient(45deg, rgba(46, 134, 171, 0.1), rgba(241, 143, 1, 0.1));
    border-left: 4px solid #2E86AB;
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    background: linear-gradient(45deg, rgba(46, 134, 171, 0.15), rgba(241, 143, 1, 0.15));
    transform: translateX(10px);
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(46, 134, 171, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(46, 134, 171, 0.3);
    box-shadow: 0 10px 25px rgba(46, 134, 171, 0.1);
}

/* Technology Icons */
.tech-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-icon:hover {
    transform: scale(1.1) translateY(-5px);
    color: #F18F01;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce-subtle 2s infinite;
}

@keyframes bounce-subtle {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Top Notice Bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50%;
    top: 40px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2E86AB, transparent);
    z-index: 1;
}

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
    
    .process-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -25px;
        width: 2px;
        height: 50px;
        background: linear-gradient(180deg, #2E86AB, transparent);
        transform: translateX(-50%);
    }
}

/* FAQ Styling */

.faq-question.active i {
    transform: rotate(180deg);
}

/* Button Styles */
button, .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
}

button::before, .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .grid.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .home-info {
        flex-direction: column;
        text-align: center;
    }
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2E86AB, #F18F01);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #F18F01, #2E86AB);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.loading:nth-child(1) { animation-delay: 0.1s; }
.loading:nth-child(2) { animation-delay: 0.2s; }
.loading:nth-child(3) { animation-delay: 0.3s; }
.loading:nth-child(4) { animation-delay: 0.4s; }

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #2E86AB, #F18F01) 1;
}

.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(46, 134, 171, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(241, 143, 1, 0.1) 0%, transparent 50%);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
a:focus {
    outline: 2px solid #2E86AB;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sidebar-container,
    .topbar,
    .floating-shapes {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}
@media (max-width: 1024px) {
    .edge-detection {
        display: none !important;
    }
}
.overlay {
    display: block;   /* <--- always on mobile */
    opacity: 0;
}
