/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 15px 0;
    min-height: 120px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 200px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    margin: 0;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: flex-end;
    gap: 30px;
    margin: 0;
    margin-bottom: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 30px;
    justify-content: space-around;
    align-self: flex-end;
    margin-bottom: 10px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Content Cards */
.content-card {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 0px solid rgba(255, 255, 255, 0.3);
}

.content-header {
    margin-bottom: 30px;
}

.content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.content-body a:hover {
    border-bottom-color: #3498db;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.content-body blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.content-body code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.content-body pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Button */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-menu {
        order: 2;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.85);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        margin-bottom: 0;
        align-items: center;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .content-title {
        font-size: 1.75rem;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-img {
        height: 80px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .background-overlay {
        background: rgba(20, 20, 30, 0.6);
    }
    
    .header {
        background: rgba(30, 30, 40, 0.8);
    }
    
    .logo-text {
        color: #ecf0f1;
    }
    
    .nav-link {
        color: #bdc3c7;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #3498db;
        background: rgba(52, 152, 219, 0.15);
    }
    
    .content-card {
        background: rgba(40, 40, 50, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .content-title {
        color: #ecf0f1;
    }
    
    .content-body {
        color: #bdc3c7;
    }
    
    .content-body h1,
    .content-body h2,
    .content-body h3,
    .content-body h4,
    .content-body h5,
    .content-body h6 {
        color: #ecf0f1;
    }
    
    .footer {
        background: rgba(20, 20, 30, 0.8);
    }
    
    @media (max-width: 768px) {
        .nav-menu {
            background: rgba(30, 30, 40, 0.85);
        }
    }
}