/* =====================================================
   INFINITE OPTION - COMMON STYLES
   Base styles, Header, Footer, Mobile Menu
===================================================== */

/* CSS Variables */
:root {
    --primary: #6C5CE7;
    --primary-dark: #5B4AE4;
    --dark: #1a1a2e;
    --text: #2D3436;
    --text-light: #636E72;
    --bg: #F8F9FA;
    --white: #ffffff;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   HEADER STYLES
===================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
}

/* =====================================================
   MOBILE MENU STYLES
===================================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--bg);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark);
}

.mobile-menu-logo svg {
    width: 30px;
    height: 30px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

.mobile-menu-links {
    padding: 20px;
    flex: 1;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--bg);
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: var(--primary);
}

.mobile-menu-links a i {
    width: 20px;
    color: var(--primary);
}

.mobile-menu-contact {
    padding: 0 20px 20px;
}

.mobile-menu-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 10px;
}

.mobile-menu-contact a i {
    color: var(--primary);
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--bg);
}

.mobile-menu-social a {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   FOOTER STYLES
===================================================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    padding-right: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo-text span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 14px;
    margin-top: 3px;
}

.footer-contact-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--primary);
}

/* =====================================================
   COMMON PAGE STYLES
===================================================== */
.page-header {
    padding: 140px 20px 60px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.page-title span {
    background: linear-gradient(135deg, var(--primary), #7c6fef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Common CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary), #7c6fef);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   RESPONSIVE - TABLET
===================================================== */
@media (max-width: 1024px) {
    .header-container {
        padding: 15px 20px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-logo,
    .footer-social {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 15px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon svg {
        width: 32px;
        height: 32px;
    }

    .page-header {
        padding: 120px 15px 40px;
    }

    .page-title {
        font-size: 24px;
    }

    .cta-section {
        padding: 60px 15px;
    }

    .cta-section h2 {
        font-size: 22px;
    }
}
