body {
    background-color: #1a1a1a;
    color: white;
    margin: 0;
    font-family: 'Arial', sans-serif;
    max-width: 100%;
    overflow-x: hidden;
    font-size: 1rem;
    line-height: 1.5;
    zoom: 1;  /* Reset zoom level */
}

.nav-menu {
    background-color: #2d2d2d;
    padding: 10px;
    margin-bottom: 30px;
    width: 100%;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
}

.nav-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-menu li {
    display: inline-block;
    margin: 0 20px;
    list-style: none;
}

.nav-menu a {
    color: #00ff9d;
    text-decoration: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #00ff9d;
    color: #1a1a1a;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2d2d2d;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1;
}

.dropdown-content a {
    display: block;
    text-align: left;
    padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Arrow indicator */
.dropdown > a:after {
    content: ' ▼';
    font-size: 12px;
    vertical-align: middle;
}

/* Content section styles */
.content-section {
    max-width: min(1200px, 90vw);  /* Use viewport width */
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);  /* Responsive padding */
    background-color: #2d2d2d;
    border-radius: 10px;
    display: none;  /* Hidden by default */
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #00ff9d;
    margin-bottom: 20px;
}

.content-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card {
    background-color: #3d3d3d;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateX(10px);
}

/* Pagination styles */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    margin: 20px 0;
}

.pagination button {
    background-color: #3d3d3d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #4a4a4a;
    color: #00ff9d;
}

.pagination button.active {
    background-color: #00ff9d;
    color: #1a1a1a;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Update grid layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-preview {
    cursor: pointer;
    background-color: #3d3d3d;
    border-radius: 8px;
    padding: clamp(1rem, 2vw, 1.5rem);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    margin-bottom: 15px;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.blog-preview img {
    width: 50px;
    height: auto;
}

.blog-preview:hover {
    background-color: #4a4a4a;
    transform: none;
    border-color: #00ff9d;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
}

.blog-preview:hover h3 {
    background-color: #00cc7d;
    color: #1a1a1a;
}

.blog-preview:hover .tag {
    background-color: #00ff9d;
    color: #1a1a1a;
}

/* Update tag transition */
.tag {
    display: inline-block;
    background-color: #1a1a1a;
    color: #00ff9d;
    padding: clamp(0.25rem, 0.75vw, 0.5rem) clamp(0.5rem, 1vw, 0.75rem);
    border-radius: 4px;
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

/* Blog detail styles */
.blog-detail {
    background-color: #2d2d2d;
    padding: 30px;
    border-radius: 10px;
}

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

.blog-detail .tech-stack {
    margin: 20px 0;
}

.back-button {
    background-color: #3d3d3d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #00ff9d;
    color: #1a1a1a;
}

.blog-links {
    margin-top: 20px;
}

.blog-links a {
    display: inline-block;
    background-color: #00ff9d;
    color: #1a1a1a;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.blog-links a:hover {
    background-color: #00cc7d;
    transform: translateY(-2px);
}

.blog-preview h3 {
    color: #00cc7d;  /* Dark orange */
    background-color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Base responsive styles */
* {
    box-sizing: border-box;
}

/* Mobile-first approach */
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navigation menu */
.nav-menu {
    width: 100%;
    padding: 10px;
}

.nav-menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

/* Content sections */
.content-section {
    padding: 20px;
    margin: 60px;
}

/* Blog grid responsive */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;  /* Single column on mobile */
    gap: 20px;
    padding: 10px;
}

/* Blog preview cards */
.blog-preview {
    width: 100%;
    margin-bottom: 15px;
}

.blog-preview .header {
    flex-wrap: wrap;
}

/* Images */
img {
    max-width: min(100%, 800px);
    height: auto;
    object-fit: contain;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Media Queries */
@media screen and (min-width: 768px) {
    /* Tablet and larger */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns */
    }

    .nav-menu {
        padding: 20px 0;
    }

    .nav-menu ul {
        gap: 20px;
    }
}

@media screen and (min-width: 1024px) {
    /* Desktop */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);  /* 3 columns */
    }

    .content-section {
        padding: 40px;
        margin: 20px auto;
        max-width: 1200px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    /* Adjust hover states for touch devices */
    .blog-preview:hover {
        transform: none;
    }

    .nav-menu a {
        padding: 12px 20px;  /* Larger touch target */
    }

    .pagination button {
        padding: 12px 20px;
    }
}

/* Add viewport meta tag to HTML */

/* Add zoom-aware responsive design */
:root {
    font-size: 16px;  /* Base font size */
}

/* Fluid typography */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* Media queries with zoom awareness */
@media screen and (max-width: 768px) and (max-resolution: 150dpi) {
    :root {
        font-size: 14px;  /* Slightly smaller base font on lower resolution */
    }
}

@media screen and (min-width: 2000px) {
    :root {
        font-size: 18px;  /* Larger base font on very wide screens */
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    :root {
        font-size: 15px;  /* Adjusted base size for retina displays */
    }
}

/* Prevent zoom issues on mobile */
@media screen and (max-width: 480px) {
    input, select, textarea {
        font-size: 16px !important;  /* Prevent zoom on input focus */
    }
}





