/* Global Styles */
:root {
    --primary-color: #ef4444; /* Red Accent */
    --primary-dark: #dc2626;  /* Darker Red */
    --secondary-color: #10b981; /* Green for success/checks */
    --text-color: #1f2937;
    --light-text: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --footer-bg: #111827;
    --nav-active-bg: rgba(239, 68, 68, 0.1); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: 90px; /* NEW: Avoid content overlap with fixed header */
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

.container {
    max-width: 1400px; /* Wider container for single line menu */
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px; 
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent button text wrapping */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    gap: 15px;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 20px;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

.nav-links li {
    position: relative;
    white-space: nowrap;
}

.nav-links a {
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--nav-active-bg);
}

/* Active Menu State */
.nav-links a.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg, #111827);
    color: #9ca3af;
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

footer a {
    color: #9ca3af;
    transition: color 0.2s ease;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-col p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.copyright {
    border-top: 1px solid #1f2937;
    padding-top: 30px;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive Breakpoint for Mobile & Tablet */
@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-container {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 20px;
        margin-left: 0;
    }

    .nav-container.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin: 0;
        gap: 8px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a { 
        display: block; 
        padding: 12px; 
        width: 100%; 
        font-size: 1rem;
    }

    .nav-actions {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f9fafb;
        margin-top: 10px;
        display: none;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    .hero h1 { font-size: 2.5rem; }
}

/* Horizontal Tabs Styles */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap; /* NEW: Allow wrapping */
    justify-content: center; /* Center items */
    gap: 8px; /* Space between tabs */
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px; /* Padding around tabs */
}

.tabs-header::-webkit-scrollbar {
    display: none; 
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 50px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Reserve space for border */
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.tabs-content {
    padding: 32px;
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

/* Card inside Tab */
.tab-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tab-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.tab-card ul {
    padding-left: 20px;
    color: var(--text-color);
}

.tab-card li {
    margin-bottom: 10px;
}
