:root {
    --primary: #0a192f;
    --secondary: #112240;
    --accent: #64ffda;
    --text: #ccd6f6;
    --text-secondary: #8892b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

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

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -10px;
    left: 0;
    background-color: var(--accent);
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
}

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-name {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 40px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

#about {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--secondary);
    padding: 30px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 20px;
}

.skill-list {
    list-style-type: none;
}

.skill-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.skill-list li::before {
    content: '▹';
    color: var(--accent);
    margin-right: 10px;
}

.certifications {
    margin-top: 60px;
}

.certifications h3 {
    color: var (--accent);
    margin-bottom: 20px;
    font-size: 24px;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cert-item {
    background-color: var(--secondary);
    padding: 20px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-item h4 {
    margin-bottom: 10px;
    color: var(--text);
}

.cert-item p {
    color: var(--text-secondary);
    font-size: 14px;
}


/* Badge Section Styling */
.badges {
    margin-top: 60px;
}

.badges h3 {
    color: var (--accent);
    margin-bottom: 20px;
    font-size: 24px;
}
.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.badge-card {
    background-color: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    height: 205px;
    width: 205px;
    justify-self: center;
}

.badge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.badge-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-image.circular {
    border-radius: 50%;
    overflow: hidden;
}

.badge-image.square {
    border-radius: 0;
    overflow: hidden;
}

.badge-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badges-cta {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.badges-button {
    font-weight: 500;
}

/* Responsive styles for badges */
@media (max-width: 768px) {
    .badges-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .badge-card {
        height: 150px;
        width: 150px;
    }
}

/* For very small screens */
@media (max-width: 400px) {
    .badges-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--secondary);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: #1d3557;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    text-align: center;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 22px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}


.project-links a:hover {
    color: var(--accent);
}



/* Projects header with search */
.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.project-search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#projectSearch {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #2d3952;
    background-color: var(--secondary);
    color: var(--text);
    font-size: 16px;
    width: 220px;
    transition: all 0.3s;
}

#projectSearch:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

#searchButton {
    padding: 10px 15px;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

#searchButton:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Active tags display */
.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-pill {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.tag-pill:hover {
    background-color: rgba(100, 255, 218, 0.2);
}

.remove-tag {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(100, 255, 218, 0.3);
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
}

/* Hidden projects */
.project-card.hidden {
    display: none;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .project-search-container {
        width: 100%;
    }
    
    #projectSearch {
        flex-grow: 1;
    }
}




#blog {
padding: 100px 0 100px 20px; /* Reduced right padding */
}

.blog-container {
    position: relative;
    width: 100%;
    overflow-x: hidden; /* Hide overflow for scroll controls */
}

.blog-posts {
    display: flex; /* Changed from grid to flex for horizontal scrolling */
    gap: 20px;
    overflow-x: auto; /* Enable horizontal scrolling */
    padding-bottom: 20px; /* Space for scrollbar */
    scroll-behavior: smooth; /* Smooth scrolling */
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

/* Cloud-shaped Blog Section Updates */

/* Blog section container */
#blog {
    position: relative;
}

/* Horizontal scrolling container */
.blog-posts-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.blog-posts-container::-webkit-scrollbar {
    display: none;
}

/* Horizontal blog posts layout */
.blog-posts {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    width: max-content; /* Allow container to expand */
    padding-left: 20px;
    padding-right: 20px;
}

/* Cloud-like card styling */
.blog-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    min-width: 350px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cloud-like shape and effects */
.blog-card::before,
.blog-card::after {
    content: '';
    position: absolute;
    background: var(--secondary);
    border-radius: 50%;
}

.blog-card::before {
    width: 80px;
    height: 80px;
    top: -15px;
    left: 25px;
    box-shadow: 30px 0 0 var(--secondary), 60px 0 0 var(--secondary);
    z-index: -1;
    opacity: 0.7;
}

.blog-card::after {
    width: 60px;
    height: 60px;
    bottom: -15px;
    right: 25px;
    z-index: -1;
    opacity: 0.7;
}

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

/* Inner glow on hover */
.blog-card:hover .blog-content {
    background: linear-gradient(135deg, 
        rgba(100, 255, 218, 0.05) 0%, 
        rgba(100, 255, 218, 0) 70%);
}

.blog-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
    border-radius: 12px;
    padding: 5px;
}

.blog-date {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-content h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    margin-top: auto;
    position: relative;
    padding-bottom: 3px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.read-more:hover::after {
    width: 100%;
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 22%;
    transform: translateY(-50%);
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.scroll-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Hide scroll buttons on mobile */
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text);
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    background-color: var(--secondary);
    border: 1px solid #2d3952;
    border-radius: 4px;
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.social-links a {
    color: var(--text);
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--secondary);
    color: var(--text-secondary);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 40px;
    }
    
    .hero-tagline {
        font-size: 30px;
    }
    
    #about {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: var(--secondary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 101;
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    
    .mobile-nav.active {
        transform: translateX(0);
    }
    
    .mobile-nav a {
        color: var(--text);
        text-decoration: none;
        font-size: 20px;
        margin: 15px 0;
    }
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    width: 80%;
    height: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#imageViewer {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Adjust modal content for images */
.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 5px;
    width: 94%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
}


.close {
    color: #64ffda;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Style your certification cards */
.cert-card {
    padding: 15px;
    margin: 10px 0;
    background-color: #162e56;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cert-card:hover {
    background-color: #416e8d;
}



