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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    min-height: 100vh;
}

#container {
    max-width: 1200px;
	margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

#logo {
    position: relative;
    z-index: 2;
}

#logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

#logo a:hover {
    transform: scale(1.05);
}

#logo img {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Navigation Styles */
#menubar, #menubar-s {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

#menubar ul, #menubar-s ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

#menubar li, #menubar-s li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menubar li a, #menubar-s li a {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
}

#menubar li a::before, #menubar-s li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

#menubar li a:hover::before, #menubar-s li a:hover::before {
    left: 0;
}

#menubar li a:hover, #menubar-s li a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

#menubar li.current a, #menubar-s li.current a {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Content Styles */
#contents {
    padding: 3rem 2rem;
}

#main {
    max-width: 1000px;
    margin: 0 auto;
}

section {
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 2px;
}

h3 {
    color: #764ba2;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    position: relative;
    padding-left: 1rem;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 2px;
}

h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin: 1rem 0;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Project List Styles */
.list {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 15px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.list:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(5px);
}

.list figure {
    flex-shrink: 0;
    margin: 0;
}

.list figure img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.list:hover figure img {
    transform: scale(1.05);
}

.list a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.list a:hover {
    color: #4CAF50;
}

.list h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.list p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Update Information Styles */
#new dl {
    margin-bottom: 1rem;
}

#new dt {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#new dd {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    padding: 1rem;
    border-radius: 0 10px 10px 0;
}

#new dd a {
    color: #4CAF50;
	text-decoration: none;
    transition: color 0.3s ease;
}

#new dd a:hover {
    color: #2E7D32;
    text-decoration: underline;
}

/* Footer Menu */
#footermenu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0;
}

#footermenu li a {
    text-decoration: none;
    color: #4CAF50;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(76, 175, 80, 0.1);
}

#footermenu li a:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Page Top Button */
.nav-fix-pos-pagetop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.nav-fix-pos-pagetop a {
    display: block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-fix-pos-pagetop a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    pointer-events: none;
}

footer small {
    position: relative;
    z-index: 2;
    color: #333;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #2E7D32;
    text-decoration: underline;
}

.pr {
    position: relative;
    z-index: 2;
    margin-left: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    #container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header {
        padding: 1.5rem;
    }
    
    #logo img {
        max-width: 250px;
    }
    
    #menubar ul, #menubar-s ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    #contents {
        padding: 2rem 1rem;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .list {
        flex-direction: column;
        text-align: center;
    }
    
    .list figure img {
        width: 100px;
        height: 100px;
    }
    
    footer {
        padding: 1.5rem;
    }
    
    .nav-fix-pos-pagetop {
        bottom: 20px;
        right: 20px;
    }
    
    .nav-fix-pos-pagetop a {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #logo img {
        max-width: 200px;
    }
    
    .list figure img {
        width: 80px;
        height: 80px;
    }
    
    #new dd {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-fix-pos-pagetop {
        bottom: 15px;
        right: 15px;
    }
    
    .nav-fix-pos-pagetop a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 0.9rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #388E3C 0%, #1B5E20 100%);
}

/* Hide mobile menu by default */
#menubar-s {
	display: none;
}

/* Mobile menu button */
#menubar_hdr {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#menubar_hdr::before,
#menubar_hdr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

#menubar_hdr::before {
    transform: translate(-50%, -50%) rotate(0deg);
}

#menubar_hdr::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

#menubar_hdr.open::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#menubar_hdr.open::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
