/* =================================
   Common Styles (Navbar, Menu, Footer)
   ================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: #0d1b2a; color: #f0f0f0; overflow-x: hidden; }
#dna-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.15; }

.navbar { background: rgba(20, 20, 40, 0.65); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); height: 60px; width: 90%; max-width: 1400px; position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; }
.navbar.scrolled { top: 10px; background: rgba(25, 25, 45, 0.75); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); }
.nav-left, .nav-right { display: flex; align-items: center; width: 50%; }
.nav-left { justify-content: flex-end; padding-right: 150px; }
.nav-right { justify-content: flex-start; padding-left: 150px; }
.nav-item { padding: 0 25px; font-size: 16px; font-weight: 500; cursor: pointer; color: #e0e0e0; text-decoration: none; height: 60px; display: flex; align-items: center; transition: color 0.3s; }
.nav-item.active, .nav-item:hover, .dropdown:hover .nav-item > button { color: #00d65b; }
.dropdown { position: relative; display: inline-block; }
.dropdown .nav-item { padding: 0; }
.dropdown > .nav-item > button { background: none; border: none; color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; padding: 0 25px; height: 60px; cursor: pointer; }
.dropdown-content { display: none; position: absolute; background-color: rgba(30, 35, 60, 0.9); backdrop-filter: blur(15px); min-width: 200px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3); z-index: 1; border-radius: 10px; margin-top: 5px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.dropdown-content a { color: #e0e0e0; padding: 12px 16px; text-decoration: none; display: block; font-size: 15px; transition: background-color 0.3s, color 0.3s; }
.dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.08); color: #00d65b; }
.dropdown:hover .dropdown-content { display: block; }
.logo-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 101; }
.logo-image { width: 200px; max-height: 55px; height: auto; object-fit: contain; }

.mobile-menu-button { display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #e0e0e0; font-size: 24px; cursor: pointer; z-index: 102; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: rgba(30, 30, 50, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 99; padding-top: 70px; transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); box-shadow: -5px 0 20px rgba(0, 0, 0, 0.25); border-left: 1px solid rgba(255, 255, 255, 0.12); }
.mobile-menu.active { right: 0; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 98; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-item, .mobile-menu-title { display: block; padding: 15px 30px; font-size: 18px; font-weight: 500; color: #e0e0e0; text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.mobile-menu-title { font-weight: 600; color: #00d65b; padding-bottom: 5px; }
.mobile-menu-item.sub-item { padding-left: 45px; font-size: 16px; color: #c0c0d0; }
.mobile-menu-item.active, .mobile-menu-item:hover { background-color: rgba(255, 255, 255, 0.1); color: #00d65b; }

footer { background-color: #050510; padding: 60px 5% 30px; margin-top: 60px; border-top: 1px solid rgba(0, 214, 91, 0.2); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-section { flex: 1; min-width: 200px; }
.footer-section h4 { color: #00d65b; margin-bottom: 25px; font-size: 18px; font-weight: 600; }
.footer-section ul { list-style-type: none; padding: 0; }
.footer-section li { margin-bottom: 12px; }
.footer-section a { color: #b0b0c0; text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-section a:hover { color: #00d65b; padding-left: 5px; }
.copyright { text-align: center; margin-top: 50px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* =================================
   Blog Page-Specific Styles
   ================================= */
main { padding: 120px 20px 40px; }
.page-header { text-align: center; max-width: 800px; margin: 0 auto 80px; }
.page-header h1 { font-size: 48px; color: #00d65b; margin-bottom: 20px; }
.page-header p { font-size: 18px; color: #c0c0d0; line-height: 1.6; }
.blog-section { max-width: 1100px; margin: 0 auto 80px; }
.blog-section h2 { font-size: 36px; text-align: center; margin-bottom: 50px; color: #e0e0e0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.blog-card { background-color: rgba(13, 27, 42, 0.75); backdrop-filter: blur(10px); padding: 30px; border-radius: 15px; border: 1px solid rgba(0, 214, 91, 0.15); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 214, 91, 0.2); }
.blog-card .category { display: inline-block; background-color: rgba(0, 214, 91, 0.15); color: #00d65b; padding: 5px 12px; border-radius: 15px; font-size: 12px; font-weight: 700; margin-bottom: 15px; }
.blog-card h3 { font-size: 22px; margin-bottom: 15px; line-height: 1.4; }
.blog-card .excerpt { font-size: 16px; color: #c0c0d0; line-height: 1.6; flex-grow: 1; margin-bottom: 20px; }
.blog-card .meta { font-size: 14px; color: #a0a0b0; border-top: 1px solid #2a3a5e; padding-top: 15px; margin-top: auto; }
.blog-card .read-more { color: #4ddcff; text-decoration: none; font-weight: 600; cursor: pointer; }
.blog-card .read-more:hover { text-decoration: underline; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 1000; display: none; align-items: center; justify-content: center; }
.modal-container { background-color: #0d1b2a; border-radius: 15px; border: 1px solid #00d65b; max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 30px; color: #a0a0b0; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: #fff; }
.modal-title { font-size: 32px; color: #00d65b; margin-bottom: 10px; }
.modal-meta { color: #a0a0b0; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #2a3a5e; }
.modal-content { color: #c0c0d0; line-height: 1.8; }
.modal-content h3 { color: #00d65b; margin: 30px 0 15px; }

/* Media Queries */
@media (max-width: 768px) { .mobile-menu-button { display: block; } .nav-left, .nav-right { display: none; } .logo-container { left: 20px; transform: translate(0, -50%); } .page-header h1 {font-size: 36px;} }
@media (max-width: 576px) { main { padding: 80px 10px 20px; } .modal-container { padding: 30px 20px;} .modal-title {font-size: 24px;} }
