/* ============================================
   Base Styles & CSS Variables
   ============================================ */

:root {
    /* Color Variables */
    --primary-color: #545663;
    --secondary-color: #2ac1ae;
    --accent-color: #8652db;
    --electric-violet: #8B5CF6;
    --neon-blue: #06B6D4;
    
    /* Light Theme Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    
    /* Spacing */
    --section-padding: 60px;
    --container-padding: 15px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Base Typography & General Styles
   ============================================ */

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

/* ============================================
   Navbar Styles
   ============================================ */

.custom-navbar {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    padding: 15px 0;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(84, 86, 99, 0.1);
    transform: translateY(0);
}

.custom-navbar .container {
    position: relative;
}

/* Logo Styles */
.navbar-brand {
    padding: 0;
    margin-right: 0;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo {
    height: 50px;
    width: auto;
    transition: all var(--transition-fast);
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    padding: 12px 20px !important;
    margin: 0 8px;
    border-radius: 10px;
    position: relative;
    transition: all var(--transition-normal);
    text-transform: capitalize;
    border: 2px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(173, 216, 230, 0.15);
    transform: translateY(-1px);
    border-color: rgba(173, 216, 230, 0.4);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border: 2px solid transparent;
    font-weight: 600;
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #2ac1ae, #8652db, #2ac1ae) border-box;
    animation: borderMove 3s linear infinite;
}


.navbar-nav .nav-link.active:hover {
    background-color: rgba(173, 216, 230, 0.15);
    transform: translateY(-1px);
}

/* CTA Button - Consistent Styling */
.btn-custom-gradient {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    min-width: 200px;
    cursor: pointer;
    user-select: none;
}

.btn-custom-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: var(--white);
}

.btn-custom-gradient:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 0.6s ease-out;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

/* Mobile Toggle Button */
.custom-toggler {
    border: 2px solid #2ac1ae;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all var(--transition-fast);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 193, 174, 0.25);
    outline: none;
}

.custom-toggler:hover {
    background-color: rgba(173, 216, 230, 0.15);
    border-color: #2ac1ae;
    transform: scale(1.05);
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232ac1ae' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all var(--transition-fast);
}

.custom-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232ac1ae' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transform: rotate(90deg);
}

.custom-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232ac1ae' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

/* ============================================
   Footer Styles
   ============================================ */

.custom-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-violet), var(--neon-blue), var(--secondary-color));
    animation: gradientMove 3s ease-in-out infinite;
}

.custom-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(42, 193, 174, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes borderMove {
    0% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(0deg, #2ac1ae, #8652db, #2ac1ae) border-box;
    }
    25% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(90deg, #2ac1ae, #8652db, #2ac1ae) border-box;
    }
    50% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(180deg, #2ac1ae, #8652db, #2ac1ae) border-box;
    }
    75% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(270deg, #2ac1ae, #8652db, #2ac1ae) border-box;
    }
    100% {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(360deg, #2ac1ae, #8652db, #2ac1ae) border-box;
    }
}

/* Footer Logo */
.footer-logo-img {
    height: 40px;
    width: auto;
    transition: all var(--transition-fast);
}

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

/* Footer Description */
.footer-description {
    color: #cbd5e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer Title */
.footer-title {
    color: var(--footer-title);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--electric-violet), var(--neon-blue));
    border-radius: 2px;
}

/* Mobile footer title alignment */
@media (max-width: 768px) {
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: #cbd5e0;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    margin-top: 2px;
    width: 16px;
    flex-shrink: 0;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--electric-violet), var(--neon-blue));
    transition: left var(--transition-normal);
    z-index: -1;
}

.social-icon:hover::before {
    left: 0;
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    border-color: transparent;
}

.social-icon i {
    font-size: 18px;
    z-index: 1;
    position: relative;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet Styles */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 10px 18px !important;
        margin: 5px 3px;
        font-size: 15px;
    }
    
    .btn-custom-gradient {
        margin-top: 15px;
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .custom-navbar {
        padding: 12px 0;
    }
    
    .custom-footer {
        padding: 40px 0 15px;
        margin-top: 0;
    }
    
    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }
    
    .custom-footer {
        text-align: center;
    }
    
    .custom-footer .row {
        justify-content: center;
    }
    
    .custom-footer .col-lg-3,
    .custom-footer .col-md-6 {
        margin-bottom: 30px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }
    
    .custom-navbar {
        padding: 12px 0;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        z-index: 1030;
    }
    
    /* Mobile specific toggler positioning while maintaining original styles */
    .custom-toggler {
        position: relative !important;
        z-index: 1031 !important;
        margin-right: 0 !important;
        /* All original custom-toggler styles are preserved */
    }
    
    /* Prevent navbar from being pushed off screen */
    .custom-navbar .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0 auto;
    }
    
    .logo {
        height: 40px;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 20px 15px;
        background: rgba(255, 255, 255, 0.98);
        margin: 15px -15px 0;
        border-radius: 15px;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(42, 193, 174, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 14px 25px !important;
        margin: 8px 15px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(45deg, #2ac1ae, #8652db, #2ac1ae) border-box;
        border: 2px solid transparent;
        animation: borderMove 3s linear infinite;
    }
    
    .btn-custom-gradient {
        margin: 25px 15px 15px;
        padding: 18px 40px;
        font-size: 17px;
        border-radius: 30px;
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    }
    
    .custom-footer {
        padding: 40px 0 20px;
        margin-top: 0;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links li,
    .footer-contact li {
        text-align: center;
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-description {
        margin-bottom: 20px;
    }
    
    .social-icons {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .footer-contact li {
        font-size: 13px;
    }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .custom-footer {
        padding: 35px 0 20px;
    }
    
    .custom-footer .col-lg-3,
    .custom-footer .col-md-6 {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-title {
        text-align: center;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-description {
        text-align: center;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
        padding-left: 0;
    }
    
    .footer-links li,
    .footer-contact li {
        text-align: center;
        margin-bottom: 8px;
    }
    
    .social-icons {
        justify-content: center;
        margin: 20px 0;
    }
    
    .footer-bottom {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .logo {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        font-size: 15px;
    }
    
    .btn-custom-gradient {
        font-size: 16px;
        padding: 16px 32px;
    }
    
    .footer-title {
        font-size: 15px;
    }
    
    .footer-description,
    .footer-links a,
    .footer-contact li {
        font-size: 13px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   Floating Widgets
   ============================================ */

.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
}

.widget-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    z-index: -1;
}

.widget-item i {
    font-size: 24px;
    color: var(--white);
    z-index: 2;
}

.widget-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.voice-widget {
    background: linear-gradient(135deg, #ff6b6b, #feca57) !important;
}

.voice-widget::before {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}

.voice-widget:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

.chatbot-widget {
    background: linear-gradient(135deg, #2ac1ae, #8652db) !important;
}

.chatbot-widget::before {
    background: linear-gradient(135deg, #2ac1ae, #8652db);
}

.chatbot-widget:hover {
    box-shadow: 0 8px 30px rgba(42, 193, 174, 0.4);
}

/* ElevenLabs widget positioning */
.voice-assistant-widget {
    position: fixed !important;
    bottom: -300px !important;
    right: 30px !important;
    z-index: 1002 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateY(20px) !important;
}

.voice-assistant-widget.active {
    bottom: 120px !important;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) !important;
}

/* Add a backdrop when widget is active */
.voice-assistant-widget.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-widgets {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .widget-item {
        width: 50px;
        height: 50px;
    }
    
    .widget-item i {
        font-size: 20px;
    }
}

/* ============================================
   Animations & Effects
   ============================================ */

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse Animation - Removed to prevent conflicts */

/* Page load animation removed for navbar */

/* Enhanced navbar scroll effects */
.custom-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(84, 86, 99, 0.15);
    transform: translateY(0);
}

/* Navbar brand animation */
.navbar-brand:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(5, 130, 113, 0.5));
}

/* Enhanced mobile collapse animation */
.navbar-collapse {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}


/* Consistent button hover effects - No conflicting animations */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity var(--transition-normal);
}

img:not([src]) {
    opacity: 0;
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn-custom-gradient:focus,
.social-icon:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .custom-navbar,
    .custom-footer {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}
