/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, nav, .nav-links a {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    line-height: 1.6;
    color: #000000;
    background-attachment: fixed;
    background-size: cover;
    animation: movePattern 10s linear infinite;
    padding-top: 80px; /* Adjust based on the navbar height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Light Mode Styles */
body {
    background-color: #ffffff;
}

.nav-content {
    background-color: transparent;
}

body, .nav-content, .dropdown-content {
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0 !important; /* Force navbar to stay at top */
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.6rem 0;
    transform: translateY(0) !important; /* Force navbar to remain visible */
    font-family: 'Courier Prime', monospace;
    will-change: transform; /* Optimize for animations */
}

/* White background for non-home pages and when scrolled */
.navbar.not-home,
.navbar.scrolled {
    background-color: #ffffff;
}

/* Minimized state */
.navbar.minimized {
    padding: 0.4rem 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    position: relative;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 0.5px;
}

.navbar:not(.scrolled):not(.not-home) .nav-link {
    color: #333333;
}

/* Hover effect for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Dropdown styles */
.dropdown {
    position: relative;
    padding: 0.4rem 0;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: #ffffff !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
    padding: 0.4rem 0;
    margin-top: 0.5rem;
    z-index: 1001;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Show dropdown */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Add hover area to prevent flickering */
.dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Dropdown links */
.dropdown-link {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    background-color: transparent !important;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hover effect for dropdown links */
.dropdown-link:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    padding-left: 1.5rem;
    color: #000000;
}

/* Remove any background inheritance from sections */
.portfolio .dropdown-content,
.projects .dropdown-content,
section .dropdown-content {
    background-color: #ffffff !important;
}

/* Ensure white background in all contexts */
.navbar.not-home .dropdown-content,
.navbar.scrolled .dropdown-content {
    background-color: #ffffff !importantflex-end;
    background-color: transparent;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        padding-left: 1rem;
        min-width: 100%;
        margin-top: 0;
        background: transparent;
    }
}

/* Active state for current page */
.nav-link.active::after,
.dropdown-link.active {
    background-color: #000000;
    color: #000000;
}

/* Remove underline from dropdown button */
.dropbtn {
    text-decoration: none;
}

/* Dropdown button hover */
.dropbtn:hover {
    color: #000000;
}

/* Mobile menu button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #333333;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    font-family: 'Courier Prime', monospace;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
        z-index: 1010;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 60px; /* Adjust based on navbar height */
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        transition: right 0.3s ease-in-out;
        list-style: none;
        padding: 1rem 0;
        margin: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1005;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        padding: 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.8rem 1.5rem;
        width: 100%;
        color: #333333;
        font-size: 16px;
        font-family: 'Courier Prime', monospace;
        letter-spacing: 0.5px;
    }
    
    .nav-link:hover::after {
        transform: scaleX(0); /* Disable underline effect on mobile */
    }
    
    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dropdown {
        width: 100%;
        padding: 0;
    }
    
    .dropdown > a {
        display: block;
        padding: 0.8rem 1.5rem;
        width: 100%;
        position: relative;
    }
    
    /* Add dropdown indicator arrow */
    .dropdown > a:after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #333;
        transition: transform 0.3s ease;
    }
    
    /* Rotate arrow when dropdown is active */
    .dropdown.active > a:after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .dropdown-content {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        box-shadow: none !important;
        background-color: rgba(0, 0, 0, 0.02) !important;
        margin-top: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        pointer-events: auto !important;
    }
    
    .dropdown-link {
        padding: 1rem 2.5rem;
        color: #333333;
        font-size: 15px;
        font-family: 'Courier Prime', monospace;
        letter-spacing: 0.5px;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .dropdown-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-link:hover {
        background-color: rgba(0,0,0,0.05);
    }

    .nav-content {
        padding: 0 1rem;
        justify-content: space-between;
    }
}

/* Hero Section */
.hero {
    height: 100vh; /* Fallback for browsers that do not support custom properties */
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.logo {
    width: 150px;
    height: 150px;
    background-color: #606060;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    background-color: #505050;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.logo span {
    color: #ffffff;
    font-size: 40px;
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
    transition: all 0.3s ease;
}

.logo:hover span {
    color: #f0f0f0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.brand-name {
    text-align: left;
}

.brand-name h1 {
    font-family: 'Courier Prime', monospace;
    font-size: 42px;
    line-height: 1.2;
    margin: 0;
    color: #2c2c2c;
    font-weight: 400;
}

.brand-name p {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    color: #666666;
    margin: 10px 0 0 0;
    font-weight: 400;
}

.brand-name .tagline {
    font-size: 18px;
    color: #000000;
    margin-top: 15px;
    font-style: italic;
}

.cta-button {
    margin-top: 30px;
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    color: #000000;
    background-color: transparent;
    border: 2px solid #000000;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* About Section Layout */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr; /* Left column for image and info, right for description */
    gap: 50px;
    align-items: start;
    padding: 40px 20px;
}

/* Left column containing profile pic and info */
.about-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-image img {
    width: 100%; /* Makes the image take the full width of its container */
    height: auto; /* Maintains the aspect ratio of the image */
    max-width: 200px; /* Sets a maximum width for the image */
    border-radius: 10px; /* Optional: adds rounded corners */
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-height: 250px;
    display: block;
    /* margin: auto; */
}

/* Personal Info Section */
.personal-info {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: -10px; /* Reduce gap between image and info */
}

.info-item {
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

/* About text section */
.about-text {
    font-family: 'Courier Prime', monospace; /* Apply Courier Prime font */
    padding: 20px;
}

.skills h2{
    font-size: 36px;
    margin-top: 0;
    color: #000000;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* .about h2, .skills h2, .projects h2 {
    font-size: 36px;
    margin-top: 500px;
    color: #000000;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
} */

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 600;
}

.about-description {
    font-size: 16px;
    font-family: 'Courier Prime', monospace;
    /* Remove any animation or special styling */
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
    position: static;
    background: none;
    text-shadow: none;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 90px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item i {
    font-size: 20px;
    color: #001f3f;
}

.detail-item a {
    color: #000000;
    text-decoration: none;
}

.about-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #152238;
    color: #152238;
}

.cta-button.secondary:hover {
    background: #152238;
    color: white;
}

.cta-button i {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-section {
        max-width: 300px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 60px 15px;
    }

    .about-text {
        padding: 15px;
    }

    .about-cta {
        flex-direction: column;
    }

    .about-details {
        grid-template-columns: 1fr;
    }
}

/* Projects Section */
.projects {
    padding: 120px 40px;
    background-color: #ffffff;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 20px; /* Added rounded edges */
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;
    background-color: #000;
    text-decoration: none;
    border-radius: 20px; /* Ensure rounded edges on hover/active */
}

.filter-btn:hover::after,
.filter-btn.active::after {
    transform: scaleX(0); /* Remove underline on hover and active */
}

/* Project card visibility classes */
.project-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.hide {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
    height: auto;
}

/* Animation for filtered cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    z-index: 2;
}

.project-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    padding: 20px;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.project-description {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.project-tech {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #ffffff;
    backdrop-filter: blur(5px);
}

/* Responsive adjustments for project cards */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 60px 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .project-card {
        aspect-ratio: 16/10;
        width: 100%;
        max-width: 100%;
    }
    
    .project-overlay {
        padding: 15px;
        width: 100%;
    }
    
    .project-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .tech-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        aspect-ratio: 16/12;
    }
    
    .project-overlay {
        padding: 10px;
    }
    
    .project-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .project-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .project-tech {
        gap: 6px;
    }
    
    .tech-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px; /* Increase padding for more space */
}

.skill-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s;
}

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

.skill-card i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 600;
}

.skill-card p {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    font-weight: 400;
}

/* Dashboard Slideshow Styles */
.dashboard-slideshow {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

.slideshow-container {
    position: relative;
    margin: auto;
}

.dashboard-slide {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

.slideshow-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* Adjust existing dashboard card styles for slideshow */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
    margin: 0 auto;
    max-width: 900px;
    transition: transform 0.3s ease;
}

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

/* Contact Section Adjustments */
#contact {
    background-color: #dcdcdc;
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
    margin-top: -1px;
    margin-bottom: -1px;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px; /* Increased left padding */
}

.contact-info {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

/* Remove hover transform from contact-item */
.contact-item:hover {
    transform: none;
}

.contact-item h2 {
    margin-left: 20px;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    text-decoration: none;
    color: #000000;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

/* Change hover effect to background color instead of transform */
.contact-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.contact-link i {
    font-size: 24px;
    color: #152238;
    /* Remove transform transition */
    transition: color 0.3s ease;
}

/* Modify icon hover effect */
.contact-link:hover i {
    color: #152238;
    transform: none;
}

.contact-link p {
    margin: 0;
    font-size: 16px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: none;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon i {
    font-size: 24px;
    color: #001f3f;
    transition: color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #001f3f;
}

.social-icon:hover i {
    color: white;
}

/* Responsive design for contact section */
@media (max-width: 768px) {
    .contact-content {
        padding: 0 10px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon i {
        font-size: 20px;
    }
}

/* Different Backgrounds for Each Section */
#about {
    padding: 80px 0;
    background-color: #ffffff;
}

#about h2 {
    display: none;
}

#skills {
    background-color: #f0f0f0;
    padding: 120px 40px;
}

#projects {
    background-color: #e6e6e6;
}

#contact {
    background-color: #dcdcdc;
}

/* Dynamic Background Animation */
@keyframes movePattern {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Ensure particles.js is visible */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: -1;
    top: 0;
    left: 0;
}

/* Visualization Grid Styles */
.viz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.viz-card {
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: transparent;
}

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

.viz-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: transparent;
}

.viz-slides {
    width: 100%;
    height: 100%;
    background: transparent;
}

.viz-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
}

.viz-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viz-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.viz-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.viz-content h3 {
    margin: 0 0 10px 0;
    color: #000000;
    font-size: 1.5em;
}

.viz-content p {
    margin: 0 0 15px 0;
    color: #000000;
    font-size: 0.9em;
    line-height: 1.5;
}

.viz-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.viz-tech span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    color: #000000;
    backdrop-filter: blur(5px);
}

.fade {
    animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* Responsive Design */
@media (max-width: 1024px) {
    .viz-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .viz-slideshow {
        height: 250px;
    }
}

/* Projects Section Header */
.projects h2 {
    font-size: 42px;
    color: #333333;
    text-align: center;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.filter-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;
    background-color: #000;
    text-decoration: none;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    transform: scaleX(0); /* Remove underline on hover and active */
}

/* Project Items */
.project-item {
    transition: all 0.3s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Prevent navbar from hiding when dropdown is open */
.dropdown:hover + .navbar.nav-hidden {
    transform: translateY(0);
}

/* Ensure dropdown stays visible when navbar is transitioning */
.navbar.nav-hidden .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Machine Learning Projects Specific Styles */
.ml-projects {
    background: #f8f9fa;
    padding: 80px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.header-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Project Card Styles */
.ml-projects .project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ml-projects .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5; /* Light gray background while loading */
}

.project-image img[src$="placeholder.jpg"] {
    object-fit: contain;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Metrics Preview */
.metrics-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    display: flex;
    justify-content: space-around;
    color: white;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
}

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

.project-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.tag.algorithm {
    background: #e3f2fd;
    color: #1976d2;
}

.tag.tool {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tag.dataset {
    background: #e8f5e9;
    color: #388e3c;
}

/* Project Details */
.detail-section {
    margin-bottom: 15px;
}

.detail-section h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.detail-section p {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.5;
}

/* Project Links - Updated for fixed positioning */
.project-links.fixed-corner {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    margin: 0;
}

.code-btn {
    background: #2d333b;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.code-btn:hover {
    background: #444c56;
    transform: translateY(-2px);
}

.code-btn i {
    font-size: 1.1em;
}

.code-btn span {
    white-space: nowrap;
    font-size: 0.9rem;
}

/* SQL Projects Specific Styles */
.sql-projects {
    background: #f8f9fa;
    padding: 80px 20px;
}

/* Database Stats Overlay */
.db-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 15px;
    display: flex;
    justify-content: space-around;
    color: white;
}

.project-card:hover .db-stats {
    transform: translateY(0);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    color: #a8b2d1;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64ffda;
}

/* Query Preview Section */
.query-preview {
    background: #1e1e1e;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
}

.query-preview h4 {
    color: #e6f1ff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.query-preview pre {
    margin: 0;
    padding: 0;
}

.query-preview code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a8b2d1;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* SQL-specific Tags */
.tag.database {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag.technique {
    background: #e3f2fd;
    color: #1565c0;
}

.tag.analysis {
    background: #fce4ec;
    color: #c2185b;
}

/* Project Card Modifications for SQL */
.sql-projects .project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sql-projects .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

/* Database Icon */
.db-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-icon i {
    font-size: 20px;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sql-projects {
        padding: 60px 15px;
    }

    .query-preview {
        padding: 10px;
    }

    .query-preview code {
        font-size: 0.75rem;
    }

    .db-stats {
        position: relative;
        transform: translateY(0);
        background: #2c3e50;
    }
}

/* Data Visualization Projects Specific Styles */
.viz-projects {
    background: #f8f9fa;
    padding: 80px 20px;
}

/* Visualization Preview */
.viz-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .viz-preview {
    transform: translateY(0);
}

/* Visualization Stats */
.viz-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.viz-stat {
    text-align: center;
}

.viz-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    color: #a8b2d1;
}

.viz-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64ffda;
}

/* Visualization Tools */
.viz-tools {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tool-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tool-icon i {
    font-size: 18px;
    color: #64ffda;
}

.tool-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Visualization Tags */
.tag.tool {
    background: #e3f2fd;
    color: #1565c0;
}

.tag.viz-type {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tag.data {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Visualization Preview Section */
.viz-preview-section {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.viz-iframe {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.viz-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Insights Section */
.insights {
    margin-top: 20px;
}

.insights h4 {
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.insights ul {
    list-style-type: none;
    padding: 0;
}

.insights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.insights li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #64ffda;
}

/* Design Approach Section */
.viz-approach {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.viz-approach h4 {
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.viz-approach p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .viz-projects {
        padding: 60px 15px;
    }

    .viz-preview {
        position: relative;
        transform: translateY(0);
        background: #2c3e50;
    }

    .viz-iframe {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }

    .project-links {
        flex-direction: column;
    }
}

/* Animation for visualization loading */
@keyframes vizFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.viz-preview-section {
    animation: vizFadeIn 0.5s ease-out;
}

/* Power BI Projects Specific Styles */
.powerbi-projects {
    background: #f8f9fa;
    padding: 80px 20px;
}

/* Power BI Preview */
.powerbi-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .powerbi-preview {
    transform: translateY(0);
}

/* Power BI Stats */
.powerbi-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.powerbi-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #64ffda;
}

/* Power BI Tags */
.tag.powerbi {
    background: #f2c811;
    color: #000000;
}

.tag.dax {
    background: #e6f3ff;
    color: #0078d4;
}

.tag.data-source {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Embed Container */
.powerbi-embed {
    margin: 20px 0;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Code Preview */
.code-preview {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.code-preview h4 {
    color: #e6f1ff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.code-preview pre {
    margin: 0;
    padding: 0;
}

.code-preview code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a8b2d1;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Features Section */
.features-section ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.features-section li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.features-section li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #f2c811;
}

/* Responsive Design */
@media (max-width: 768px) {
    .powerbi-projects {
        padding: 60px 15px;
    }

    .powerbi-preview {
        position: relative;
        transform: translateY(0);
        background: #2c3e50;
    }

    .embed-container {
        padding-bottom: 75%;
    }

    .code-preview {
        padding: 10px;
    }

    .code-preview code {
        font-size: 0.75rem;
    }
}

/* Animation for embed loading */
@keyframes embedFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.powerbi-embed {
    animation: embedFadeIn 0.5s ease-out;
}

/* Only make navbar transparent on home page */
.home-page .navbar:not(.scrolled) {
    background-color: transparent;
    box-shadow: none;
}

.home-page .nav-content:not(.scrolled) {
    background-color: transparent;
}

/* Area of Interest Section */
.area-of-interest {
    background: #f8f9fa;
    padding: 160px 40px;
    min-height: 100vh;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0;
}

.interest-card {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interest-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.interest-card p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .area-of-interest {
        padding: 100px 20px;
    }
    
    .interest-card {
        padding: 40px 30px;
        min-height: 400px;
    }
}

/* Power BI Page Navbar Background */
.powerbi-projects .navbar {
    background-color: #ffffff !important; /* White background for Power BI page */
}

/* Project Card View Code Button */
.project-card .view-code {
    position: absolute;
    bottom: -10px; /* Shifted up to ensure visibility */
    right: 10px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    display: block;
}

/* Skills section styling - moved from index.html */
.skills-section {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background-color: #4f46e5;
    margin: 10px auto;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flip Card Styles - Optimized for performance */
.flip-card {
    perspective: 1000px;
    height: 250px;
    cursor: pointer;
    background: transparent;
    transform-style: preserve-3d;
    will-change: transform;
    margin-bottom: 20px;
    contain: layout style; /* Improve performance with CSS containment */
}

/* Add a container for better 3D rendering */
.skills-container .flip-card {
    background-color: transparent;
    transform-style: preserve-3d;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: none;
    will-change: transform;
    contain: layout style; /* Improve performance with CSS containment */
}

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

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card.flipped:hover .flip-card-inner {
    transform: rotateY(180deg) translateY(-10px);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    contain: content; /* Improve performance with CSS containment */
}

.flip-card-front {
    background-color: #ffffff;
    z-index: 2; /* Ensure front is above back when not flipped */
}

.flip-card-back {
    background-color: #121212;
    color: white;
    transform: rotateY(180deg);
    z-index: 1; /* Ensure back is below front when not flipped */
}

.skill-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.flip-card:hover .skill-logo {
    transform: scale(1.1);
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 15px;
}

.skill-description {
    line-height: 1.6;
    font-weight: 300;
    max-width: 90%;
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px; /* Reduced gap for better fit */
    }
    
    .flip-card {
        height: 220px;
        margin-bottom: 15px; /* Ensure proper spacing between cards */
    }
    
    /* Ensure text is readable on smaller screens */
    .skill-title {
        font-size: 1.3rem;
    }
    
    .skill-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .flip-card {
        height: 200px; /* Slightly smaller height for very small screens */
    }
}

/* Lazy loading image placeholder */
img[src*="placeholder.jpg"] {
    background-color: #f0f0f0;
    min-height: 100px;
    position: relative;
}

img[src*="placeholder.jpg"]::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

/* Fade in animation for lazy-loaded images */
@keyframes imgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

img.lazy-loaded {
    animation: imgFadeIn 0.5s ease-in;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    background-color: #24292e;
    color: #ffffff;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto; /* This pushes the footer to the bottom */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
}

@media (max-width: 768px) {
    footer {
        padding: 20px 0;
    }
    
    footer p {
        font-size: 12px;
    }
}

.data-viz-projects {
    min-height: calc(100vh - 150px); /* Subtract header and footer height */
    padding-bottom: 50px; /* Add padding at the bottom to create space before footer */
}
