* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;

}
body {
    font-family: "IBM Plex Mono", monospace;;
    scroll-behavior: smooth;
    padding-top: 60px; /* Khoảng trống để tránh navbar che nội dung */
}
/* Đặt canvas làm nền toàn trang */
#neuralCanvas {
    position: fixed; /* Cố định toàn màn hình */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Đẩy canvas ra sau */
    background-color: #4c4c4cb8;
}
/* Thanh Navbar cố định */
.navbar {
    position: fixed; /* Navbar cố định */
    top: 0;
    left: 0;
    width: 100%; /* Chiều rộng toàn màn hình */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    color: white;
    z-index: 2000 !important;
    /* background-color: #f3f3f3a3; */
    /* backdrop-filter: blur(100px); Hiệu ứng mờ */
    /* box-shadow: 0 4px 10px rgba(113, 113, 113, 0.2); Đổ bóng nhẹ */
}

.navbar .logo {
    display: none !important;
}

.navbar .links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px; /* Khoảng cách giữa các liên kết */
}

.navbar .links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s;
}

.navbar .links a:hover {
    color: #141415;
}

.navbar .button {
    background-color: #bcbcbc;
    color: rgba(23, 21, 21, 0.7);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.navbar .button:hover {
    background-color: #3a3b3cb6;
}

.section {
    position: static !important;
    z-index: auto !important;
    margin-bottom: 60px;
    padding-bottom: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.5s ease-in-out;
}
.section:nth-child(odd) {
    /* background-color: #f4a261; */
}
.section:nth-child(even) {
    /* background-color: #2a9d8f; */
}



#section1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-bottom: 0;
    padding-bottom: 0;
    color: #fff;
    text-align: center;
}

#section1 h1, #section1 h2, #section1 p, #section1 .profile-info, #section1 .profile-info p {
    color: #fff !important;
    text-align: center;
}

.profile-container {
    display: flex; /* Chia thành 2 cột */
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
}

/* Cột trái chứa ảnh */
.profile-image {
    flex: 40%;
    text-align: center;
}

.profile-image img {
    width: 100%;
    max-width: 250px;
    /* border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

/* Cột phải chứa giới thiệu */
.profile-info {
    flex: 60%;
    padding-left: 20px;
}

.profile-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.profile-info p {
    font-size: 16px;
    color: #ddd;
}

/* Các icon mạng xã hội */
.social-icons {
    margin-top: 15px;
}

.social-icons a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00bfff;
}




/* Projects */
.projects-container {
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
    /* overflow: hidden; */ /* Xóa dòng này nếu có */
}

.projects-container h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
    gap: 30px;
    margin-top: 40px;
}

/* Project Card */
.project {
    background: #f3f3f3a3 !important;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(0,0,0,0.12) !important;
    overflow: hidden;
    position: relative;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00bfff, #0056b3, #00bfff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.project:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project:hover::before {
    transform: scaleX(1);
}

/* Ảnh của Project */
.project img {
    width: 100%;
    border-radius: 0;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Project Content */
.project-content {
    padding: 25px;
}

/* Tiêu đề Project */
.project h3 {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.4;
}

.project h3 a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 8px;
}

.project h3 a:hover {
    color: #0056b3;
}

/* Mô tả Project */
.project p {
    font-size: 1rem;
    color: #4a5568;
    margin: 12px 0;
    line-height: 1.6;
}

.project p:last-of-type {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* Link Project */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #00bfff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.project-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #00bfff, #0056b3);
    gap: 12px;
    transform: translateX(5px);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}




/* Contact Section */
#contact {
    background-color: rgba(255, 255, 255, 0.9); /* Màu nền sáng với độ trong suốt */
    padding: 50px 0; 
    text-align: center; 
    border-radius: 10px; /* Bo góc cho phần contact */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Đổ bóng nhẹ */
    margin-top: 200px; /* Thêm khoảng cách trên để tránh bị che */
}


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

.contact-container h2 {
    color: #333; 
    margin-bottom: 20px; /* Khoảng cách dưới tiêu đề */
}

.contact-container p {
    font-size: 1.2em;
    margin-bottom: 30px; 
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 20px; 
}

.contact-method {
    display: flex;
    align-items: center; 
    font-size: 1.2em; 
    background: rgba(0, 0, 0, 0.1); /* Nền nhẹ cho các phương thức liên lạc */
    padding: 10px;
    border-radius: 5px; /* Bo góc cho các phương thức liên lạc */
    transition: background-color 0.3s; /* Hiệu ứng chuyển màu nền */
}

.contact-method:hover {
    background: rgba(0, 0, 0, 0.2); /* Tối màu nền khi hover */
}

.contact-method i {
    margin-right: 10px; 
    font-size: 1.5em; 
}

.contact-method a {
    color: #333; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.contact-method a:hover {
    color: #007bff; /* Màu chữ khi hover */
}





footer {
    padding: 50px;
    background-color: #f3f3f3a3;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin: 10px;
    text-align: left;
}

/* Tỷ lệ các cột */
.footer-section:first-child {
    flex: 2; /* Cột đầu tiên rộng hơn */
}

.footer-section:nth-child(2),
.footer-section:nth-child(3) {
    flex: 1; /* Hai cột sau nhỏ hơn */
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

ul li a {
    color: #333;
    font-size: 1rem;
    transition: color 0.3s;
}

ul li a:hover {
    color: #007bff;
}

.info {
    font-size: 0.95rem;
    line-height: 1.5;
}

.info span {
    font-weight: bold;
}

.cv-link {
    margin-top: 15px;
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.cv-link:hover {
    color: #0056b3;
}

.footer-bottom {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom a {
    color: #333;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .navbar {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    .navbar .links,
    .navbar .button {
        display: none !important;
    }
    .hamburger {
        display: none !important;
    }
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }
    
      .project {
        width: 100%;
        overflow: hidden;
      }
    
      .project img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
      }
    #section1{
        padding-top: 0px;
        margin-top: 0px;
        margin-bottom: 400px;
    }
    #section4{
        padding-top: 100px;
        margin-top: 200px;
    }

    .footer-container {
        padding: 20px;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .navbar .logo {
        display: none !important;
    }
}
@media (min-width: 601px) {
  .navbar .links,
  .navbar .button {
    display: flex !important;
  }
  .hamburger,
  .mobile-menu {
    display: none !important;
  }
}

/* Blog Section */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #000000;
}

.blog-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff !important;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #fff !important;
    margin-bottom: 40px;
    font-style: italic;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: #f3f3f3a3 !important;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 2px solid rgba(0,0,0,0.18) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: #0066cc;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-date i {
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #0066cc;
}

.blog-summary {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #000000;
    gap: 12px;
}

.blog-actions {
    margin-top: 30px;
}

.view-all-blogs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 102, 204, 0.2);
    color: #0066cc;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.view-all-blogs-btn:hover {
    background: rgba(0, 102, 204, 0.3);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

@media (max-width: 600px) {
    .blog-container {
        padding: 20px;
    }

    .blog-container h2 {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blogs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .blog-card {
        width: 100%;
        overflow: hidden;
    }

    .blog-image {
        height: 150px;
    }

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-date {
        font-size: 0.8rem;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-summary {
        font-size: 0.9rem;
    }

    .read-more-btn {
        font-size: 0.8rem;
    }

    .view-all-blogs-btn {
        padding: 10px 20px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blogs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .profile-container {
        max-width: 800px;
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 10px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .navbar .logo {
        font-size: 1.1rem;
        margin-right: 8px;
    }
    .navbar .links {
        gap: 10px;
    }
    .navbar .links a {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    .navbar .button {
        font-size: 0.85rem;
        padding: 6px 12px;
        margin-left: 8px;
    }
    /* Profile Section */
    .profile-container {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        margin: 30px 20px;
    }
    
    .profile-image {
        flex: none;
        margin-bottom: 20px;
    }
    
    .profile-image img {
        max-width: 200px;
    }
    
    .profile-info {
        flex: none;
        padding-left: 0;
    }
    
    .profile-info h2 {
        font-size: 20px;
    }
    
    .profile-info p {
        font-size: 14px;
    }
    
    /* Projects Section */
    .projects-container {
        margin: 40px 20px;
        padding: 0 15px;
    }
    
    .projects-container h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    
    .project {
        border-radius: 15px;
    }
    
    .project img {
        height: 200px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .project p {
        font-size: 0.95rem;
        margin: 10px 0;
    }
    
    .project-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Blog Section */
    .blog-container {
        margin: 0 20px;
    }
    
    .blog-container h2 {
        font-size: 1.8rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        margin: 0;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-summary {
        font-size: 0.9rem;
    }
    
    /* Contact Section */
    .contact-container {
        margin: 0 20px;
    }
    
    .contact-container h2 {
        font-size: 1.8rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-method {
        justify-content: center;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .info p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .cv-link {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hamburger {
        display: flex !important;
        z-index: 2100 !important;
        color: #fff !important;
        background: none !important;
        position: relative !important;
    }
    .navbar {
        overflow: visible !important;
        width: 100vw !important;
        min-width: 0 !important;
    }
    .navbar .links {
        width: 100vw !important;
        min-width: 0 !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        background: transparent;
    }
    .navbar .links a {
        display: block !important;
        width: 100% !important;
        color: #fff !important;
        background: transparent !important;
        text-align: left !important;
        padding: 8px 0 !important;
    }
    .navbar .button {
        width: 100% !important;
        margin: 0 !important;
        font-size: 0.9rem !important;
        padding: 8px 0 !important;
    }
    /* Sections */
    .section {
        padding: 30px 0;
        height: auto;
        min-height: 100vh;
    }
    
    /* Profile Section */
    .profile-container {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .profile-image img {
        max-width: 150px;
    }
    
    .profile-info h2 {
        font-size: 18px;
    }
    
    .profile-info p {
        font-size: 13px;
    }
    
    .social-icons a {
        font-size: 20px;
        margin-right: 12px;
    }
    
    /* Projects Section */
    .projects-container {
        margin: 30px 15px;
        padding: 0 10px;
    }
    
    .projects-container h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .projects-grid {
        gap: 20px;
        margin-top: 25px;
    }
    
    .project {
        border-radius: 12px;
    }
    
    .project img {
        height: 180px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .project p {
        font-size: 0.9rem;
        margin: 8px 0;
    }
    
    .project-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Blog Section */
    .blog-container {
        margin: 0 15px;
    }
    
    .blog-container h2 {
        font-size: 1.6rem;
    }
    
    .blog-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .blog-image {
        height: 150px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-date {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .blog-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .blog-summary {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .read-more-btn {
        font-size: 0.8rem;
    }
    
    .view-all-blogs-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    /* Contact Section */
    .contact-container {
        margin: 0 15px;
    }
    
    .contact-container h2 {
        font-size: 1.6rem;
    }
    
    .contact-container p {
        font-size: 0.9rem;
    }
    
    .contact-method {
        font-size: 0.9rem;
    }
    
    .contact-method i {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-container {
        padding: 25px 15px;
        gap: 25px;
    }
    
    .footer-section h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .footer-section ul {
        gap: 8px;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .info p {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .info span {
        font-weight: bold;
    }
    
    .cv-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 15px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .section {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .profile-container {
        flex-direction: row;
        text-align: left;
        margin: 20px;
    }
    
    .profile-image {
        flex: 40%;
        margin-bottom: 0;
    }
    
    .profile-info {
        flex: 60%;
        padding-left: 20px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .project img,
    .blog-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .project:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .blog-card:hover .blog-image img {
        transform: none;
    }
}

@media (max-width: 768px) {
  #section1 h1 {
    font-size: 2.7rem !important;
  }
  #section1 p {
    font-size: 1.1rem !important;
  }
}
@media (max-width: 480px) {
  #section1 h1 {
    font-size: 2rem !important;
  }
  #section1 p {
    font-size: 0.95rem !important;
  }
}

/* Hamburger menu styles */
.hamburger {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px !important;
  height: 48px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.08) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 8px 12px 0 0 !important;
  transition: background 0.2s;
}
.hamburger:hover {
  background: rgba(255,255,255,0.18) !important;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu hidden by default */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(30,30,30,0.97);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1200;
  flex-direction: column;
  align-items: stretch;
  padding: 80px 24px 24px 24px;
  gap: 18px;
  min-height: 100vh;
  animation: fadeInMenu 0.25s;
}
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu a, .mobile-menu button {
  color: #fff !important;
  background: none;
  border: none;
  font-size: 1.2rem;
  text-align: left;
  padding: 12px 0;
  width: 100%;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu a:hover, .mobile-menu button:hover {
  background: rgba(255,255,255,0.08);
}

/* Show hamburger and mobile menu on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .navbar .links, .navbar .button {
    display: none !important;
  }
  .mobile-menu.open {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hamburger {
    display: flex !important;
    z-index: 2100 !important;
    color: #fff !important;
    background: none !important;
    position: relative !important;
  }
  .navbar {
    overflow: visible !important;
    width: 100vw !important;
    min-width: 0 !important;
  }
}
@media (max-width: 400px) {
  .hamburger {
    display: flex !important;
  }
}
@media (max-width: 375px) {
  .hamburger {
    display: flex !important;
  }
}
@media (max-width: 360px) {
  .hamburger {
    display: flex !important;
  }
}
@media (max-width: 320px) {
  .hamburger {
    display: flex !important;
  }
}

/* --- Hamburger menu visibility control --- */
@media (max-width: 600px) {
  .hamburger {
    display: none !important;
  }
}
@media (min-width: 601px) {
  .hamburger {
    display: none !important;
  }
}
