/* ==================== CSS Variables ==================== */
:root {
    /* Colors */
    --primary: hsl(180, 98%, 31%);
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* Background & Text */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    /* Spacing */
    --nav-height: 80px;
    --container-max: 100%;
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}
/* Dark Mode Variables */
body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
}
/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}
/* ==================== Scroll Progress Bar ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}
/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-primary);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom-color: var(--border-color);
        box-shadow: var(--shadow-md);
    }

body.dark-mode .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

    .nav-logo:hover {
        transform: translateY(-2px);
    }

    .nav-logo img {
        height: 65px;
        width: auto;
    }

    .nav-logo .accent {
        color: var(--accent);
    }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--accent));
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--accent);
        background: #faf3e8;
    }

body.dark-mode .nav-link:hover {
    background: var(--gray-800);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link i {
    font-size: 1.4rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle,
.search-btn {
    padding: 10px 20px;
    width: auto;
    height: 44px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    transition: var(--transition);
}

    .theme-toggle:hover,
    .search-btn:hover {
        background: var(--primary);
        color: var(--white);
        transform: translateY(-2px) scale(1.05);
    }

    .search-btn i {
        margin-right: 4px;
    }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--gray-100);
    transition: var(--transition);
}

    .hamburger span {
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: var(--transition);
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

/* ==================== DROPDOWN - FINAL FIXED VERSION ==================== */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 0.75rem;
    transition: var(--transition);
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 0.25rem;
    transition: transform 0.35s ease;
}

/* Desktop Hover */
@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 380px;
        background: var(--bg-primary);
        border-radius: 1rem;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow: hidden;
    }

    .nav-item.dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .nav-item.dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Mobile Click - Perfect Smooth Open/Close */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        border-bottom: 1px solid var(--border-color);
    }

        .nav-menu.active {
            transform: translateX(0);
        }

    .nav-link,
    .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        border-radius: 0.75rem;
    }

    body.dark-mode .dropdown-toggle {
        background: var(--gray-800);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        margin: 0 1rem 1rem 1rem;
        border-radius: 1rem;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.55s ease, padding 0.55s ease, margin 0.55s ease;
        pointer-events: none;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .nav-item.dropdown.open .dropdown-menu {
        max-height: 1000px;
        padding: 1rem 0;
        pointer-events: auto;
        background: var(--bg-primary);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
    }

    .nav-item.dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Dropdown Grid & Items */
.dropdown-grid {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--gray-50);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

body.dark-mode .dropdown-item {
    background: var(--gray-800);
}

.dropdown-item:hover {
    background: var(--white);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.dark-mode .dropdown-item:hover {
    background: var(--gray-700);
}

.dropdown-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, hsl(180, 98%, 31%) 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .dropdown-icon i {
        color: var(--white);
        font-size: 1.25rem;
    }

.dropdown-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dropdown-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.dropdown-item:hover .dropdown-link {
    gap: 0.5rem;
}

/* ==================== Search Overlay ==================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

    .search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.search-container {
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(-50px);
    transition: var(--transition);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

    .search-close:hover {
        transform: rotate(90deg);
        background: var(--danger);
        color: var(--white);
    }

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-box i {
        position: absolute;
        left: 1.5rem;
        font-size: 1.5rem;
        color: var(--gray-400);
    }

    .search-box input {
        width: 100%;
        padding: 1.5rem 1.5rem 1.5rem 4rem;
        font-size: 1.25rem;
        border: none;
        border-radius: 1rem;
        background: var(--white);
        color: var(--black);
        outline: none;
        box-shadow: var(--shadow-xl);
    }

        .search-box input::placeholder {
            color: var(--gray-400);
        }

/* ==================== Main Content ==================== */
.main-content {
    min-height: 100vh;
    /*padding-top: var(--nav-height);*/
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

    .footer-logo i {
        color: var(--primary);
        font-size: 1.75rem;
    }

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

    .social-link:hover {
        background: var(--primary);
        color: var(--white);
        transform: translateY(-3px);
    }

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 2px;
    }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .footer-links a {
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: var(--transition-fast);
    }

        .footer-links a:hover {
            color: var(--primary);
            padding-left: 0.5rem;
        }

    .footer-links i {
        font-size: 0.75rem;
    }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        color: var(--text-secondary);
    }

    .footer-contact i {
        color: var(--primary);
        margin-top: 0.25rem;
        font-size: 1.125rem;
    }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

    .footer-bottom-links a {
        color: var(--text-secondary);
        transition: var(--transition-fast);
    }

        .footer-bottom-links a:hover {
            color: var(--primary);
        }

/* ==================== Scroll to Top Button ==================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: var(--transition);
    z-index: 999;
}

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .scroll-top:hover {
        background: #f59e0b;
        transform: scale(1.1) translateY(-3px);
    }

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    :root {
        --nav-height: 70px;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 65px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.25rem;
    }

        .nav-logo i {
            font-size: 1.5rem;
        }

    .search-box input {
        padding: 1.25rem 1.25rem 1.25rem 3.5rem;
        font-size: 1rem;
    }

    .search-box i {
        left: 1.25rem;
        font-size: 1.25rem;
    }
}

/* ==================== Animations & Utilities ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 2rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: var(--white);
    }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.powered-by:hover {
    color: var(--accent);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}
