/* ===================================
   Power Academy - Site CSS
   Custom Styles for Common Components
   =================================== */

/* Root Variables */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f97316;
    --accent-color: #fbbf24;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --white: #ffffff;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   HEADER STYLES
   =================================== */

.header-section {
    background: var(--white);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-section.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 1.2rem 0;
    transition: all 0.4s ease;
}

.header-section.scrolled .navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-wrapper {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.header-section.scrolled .logo-wrapper {
    width: 55px;
    height: 55px;
    padding: 7px;
}

.logo-wrapper:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-text .brand-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.header-section.scrolled .brand-text .brand-name {
    font-size: 1.4rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-text .brand-tagline {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.header-section.scrolled .brand-text .brand-tagline {
    color: var(--accent-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

.header-section.scrolled .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.header-section.scrolled .navbar-nav .nav-link:hover,
.header-section.scrolled .navbar-nav .nav-link.active {
    color: var(--white);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    border-radius: 2px;
}

.header-section.scrolled .navbar-nav .nav-link::after {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Premium Call Button */
.btn-premium {
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #fb923c, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.7);
    color: var(--white);
}

/* Mobile Toggle */
.navbar-toggler {
    padding: 0.6rem;
    font-size: 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: transparent;
}

.header-section.scrolled .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.2);
}

.header-section.scrolled .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.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='rgba%2830, 58, 138, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-section.scrolled .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='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas Mobile Menu */
.offcanvas {
    max-width: 320px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.offcanvas-header {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    padding: 1.5rem;
}

.offcanvas-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--white);
}

.mobile-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas .nav-link {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateX(10px);
}

.offcanvas .nav-link i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Mobile Contact Section */
.mobile-contact h6 {
    font-weight: 600;
    color: var(--dark-color);
}

/* ===================================
   FOOTER STYLES
   =================================== */

.footer-section {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-links a i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
}

.footer-contact-info i {
    margin-right: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===================================
   CHATBOT STYLES
   =================================== */

.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
    }
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 991px) {
    .brand-text .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-text .brand-tagline {
        font-size: 0.65rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .brand-text .brand-name {
        font-size: 1rem;
    }
    
    .brand-text .brand-tagline {
        display: none;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}
