:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary: #008800;
    --header-bg: #f8f9fa;
    --border: #e9ecef;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f1f1f1;
    --primary: #00b300;
    --header-bg: #2d2d2d;
    --border: #3d3d3d;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    padding-top: 90px;
}

main {
    min-height: 60vh;
}

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

.aura-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    box-sizing: border-box;
}

.aura-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aura-header a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

.aura-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Theme Switch Styles */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    vertical-align: middle;
}
.theme-switch input {
    display: none;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--primary);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}

.aura-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

/* Blog Styles */
.blog-list {
    display: grid;
    gap: 30px;
    margin-top: 20px;
}

.blog-card {
    background: var(--header-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-card-content {
    padding: 30px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.blog-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.blog-card h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-card h2 a:hover {
    text-decoration: underline;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Nav Desktop Layout */
#main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-icon {
    font-size: 20px;
    color: var(--text-color);
}

/* Floating Action Button (Mobile Only) */
.fab-menu {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, background-color 0.3s;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fab-menu .material-symbols-outlined {
    font-size: 28px;
}

.fab-menu:hover {
    transform: scale(1.05);
}

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .fab-menu {
        display: flex;
    }

    #main-nav {
        position: fixed;
        bottom: 110px;
        right: 30px;
        flex-direction: column;
        background-color: var(--header-bg);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        z-index: 999;
        gap: 20px;
        border: 1px solid var(--border);
        
        /* Animation details */
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.9);
        transform-origin: bottom right;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    #main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: right;
    }

    .nav-links a {
        margin-right: 0;
        padding: 10px;
        display: block;
        background: var(--bg-color);
        border-radius: 8px;
    }

    .theme-switch-wrapper {
        width: 100%;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .fab-menu.active {
        background-color: #dc3545;
        transform: rotate(90deg);
    }
}
