/* Copyright (c) 2025. Jericho Crosby (Chalwk) */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --font-primary: 'Roboto', sans-serif;
    --font-mono: 'Source Code Pro', monospace;

    --section-padding: 5rem 0;
    --container-max: 1200px;

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--darker);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.highlight {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--darker);
    margin-left: 0.5rem;
}

.logo i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin-right: 0.5rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.2rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links .dropdown-toggle {
    padding: 0.2rem 0;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-toggle i {
    margin-top: -1px;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    font-weight: 500;
    border: none;
}

.dropdown-menu a:hover {
    background: var(--primary);
    color: white;
}

.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-toggle .fa-chevron-right {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown-submenu:hover .submenu-toggle .fa-chevron-right {
    transform: rotate(90deg);
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
        margin-left: 0.5rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle .fa-chevron-down {
        transform: rotate(0deg);
    }

    .dropdown.active .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }

    .nav-links .dropdown-toggle {
        padding: 0.5rem 0;
        justify-content: space-between;
    }

    .dropdown-toggle i {
        margin-top: 0;
    }

    .submenu {
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 1rem;
    }

    .dropdown-submenu.active .submenu {
        display: block;
    }

    .submenu-toggle .fa-chevron-right {
        transform: rotate(0deg);
    }

    .dropdown-submenu.active .submenu-toggle .fa-chevron-right {
        transform: rotate(90deg);
    }
}

@media (min-width: 769px) {
    .nav-links a {
        padding: 0.2rem;
    }
}

footer {
    background-color: transparent;
    padding: 2rem 0;
}

footer p {
    text-align: center;
    margin: 0 auto 15px;
    max-width: 800px;
    padding: 0 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.social-icons a {
    color: var(--gray);
    font-size: 1.4rem;
    line-height: 1;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 15px;
}

.footer-copyright::before {
    content: "© 2025. Jericho Crosby (Chalwk)";
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

/* Add to core.css - Better mobile navigation */
@media (max-width: 768px) {
    .nav-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        max-height: 500px;
        overflow-y: auto;
    }

    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active > .dropdown-menu {
        max-height: 300px;
    }

    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-submenu.active > .submenu {
        max-height: 200px;
    }

    /* Ensure dropdown arrows are visible */
    .dropdown-toggle .fa-chevron-down,
    .submenu-toggle .fa-chevron-right {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }

    .dropdown-submenu.active .submenu-toggle .fa-chevron-right {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    footer {
        margin-top: 40px;
        padding-top: 20px;
    }

    .footer-container {
        padding: 15px 10px;
    }

    .social-icons a {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}