@font-face {
    font-family: 'OpenSans-CondensedSemiBold';
    src: url('../fonts/OpenSans-CondensedSemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
    font-weight: 400;
}

* {
    transition: all 0.3s ease-in-out;
    font-family: 'OpenSans-CondensedSemiBold', sans-serif;
}

:root {
    --back-color: #191923;
    --dark1: #222230;
    --dark2: #32324D;
    --primary: #00FFD1;
    --text-primary: rgba(255, 255, 255, 0.8);
    --text-secondary: rgba(255, 255, 255, 0.6);
}

html {
    scroll-behavior: smooth;
    background-color: var(--back-color);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--back-color);
    color: var(--text-primary);
    font-family: 'OpenSans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

.main-content {
    background-color: var(--back-color);
    min-height: 100vh;
}

.body.menu-open {
    overflow: hidden;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -200px;
    width: 200px;
    height: 100vh;
    background-color: var(--dark1);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.side-menu.open {
    left: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.menu-items {
    padding-top: 60px;
}

.menu-item {
    display: block;  /* Keep this as block */
    padding: 16px 0 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: transform 0.2s ease;
    width: fit-content;  /* Add this to make it wrap to text width */
}

.menu-item:hover {
    transform: translateX(10px);
}

.menu-item.active {
    color: var(--primary);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;    /* This will now match the fit-content width of parent */
    height: 2px;
    background-color: var(--primary);
}

.top-bar {
    background-color: rgba(34, 34, 48, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.menu-button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.menu-button:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.logo {
    height: 30px;
    width: auto;
}

.hero-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    margin-top: 54px;
    border-bottom: 1px solid var(--dark2); /* Added separation line */
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(25, 25, 35, 0.3), rgba(25, 25, 35, 0.7));
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    font-size: 32px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.content {
    padding: 20px;
    line-height: 1.6;
    position: relative;
    background-color: var(--back-color);
}

.content h2 {
    font-size: 20px; /* Reduced from 24px */
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    color: var(--primary);
}

.content h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content p {
    font-family: 'OpenSans', sans-serif;  /* Ensure OpenSans Regular is used */
    font-weight: 400;  /* Regular weight */
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);  /* Changed to primary text color */
    margin-bottom: 20px;
}

.content a {
    color: #4A9EFF;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content li {
    font-family: 'OpenSans', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 8px;
}

.primary-color {
    color: var(--primary);
}

/* Mobile styles */
@media (max-width: 767px) {
    .hero-image {
        height: 200px;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .content {
        max-width: 800px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .hero-image {
        height: 300px;
    }
}