/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Ensure sections don't get overlapped by fixed navbar */
/* General section padding to avoid overlap */
section {
    padding: 8rem 2rem;
    scroll-margin-top: 80px; /* Adjust to slightly more than navbar height */
}

/* Section headings margin adjustments */
section h2 {
    margin-top: 1rem; /* Ensures some spacing above the heading */
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007AFF;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    height: 100vh; /* Full viewport height */
}

.hero-content {
    width: 100%;
    margin: 0 auto;
}


.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight {
    color: #007AFF;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.skills-list {
    list-style: none;
    margin-top: 1rem;
}

.skills-list li {
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects {
    background-color: #f8f9fa;
}

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

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

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

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

.project-card h3 {
    padding: 1rem;
    margin: 0;
}

.project-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.project-buttons .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007BFF; /* Primary blue */
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-buttons .btn:hover {
    background-color: #0056b3; /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.project-buttons .btn:nth-child(2) {
    background-color: #6c757d; /* Gray for GitHub button */
}

.project-buttons .btn:nth-child(2):hover {
    background-color: #5a6268; /* Darker gray */
}

/* Contact Section */
.contact {
    background-color: #fff;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-link {
    display: inline-block;
    font-size: 1.5rem;
    color: #007AFF;
    text-decoration: none;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #007AFF;
}

/* Common styles */
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .hamburger {
        width: 24px;
        height: 2px;
        background-color: #333;
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}
/* Center the calendar horizontally */
.contributions {
    text-align: center;
    padding: 20px 0; /* Add some vertical spacing */
}

/* Style the container of the calendar */
.calendar {
    margin: 0 auto; /* This centers a block-level element */
    max-width: 900px; /* Optional: Sets a maximum width for a cleaner look */
    /* Add a subtle shadow or border */
    border: 1px solid #4a84d0;
    border-radius: 6px;
    padding: 10px;
    background-color: #ffffff;
    /* For dark mode, you might want to adjust colors */
}

/* You can also style the individual day squares */
.ContributionCalendar-day {
    border-radius: 2px;
}
/* ================= Dark Mode Support ================= */

/* DARK MODE: Apply when .dark-mode is set on body */
body.dark-mode {
    background-color: #181818;
    color: #f1f1f1;
}

body.dark-mode .navbar {
    background-color: rgba(24,24,24,0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.30);
}

body.dark-mode .logo,
body.dark-mode .nav-links a {
    color: #f1f1f1;
}

body.dark-mode .nav-links a.active,
body.dark-mode .nav-links a:hover {
    color: #8ec6ff;
}

body.dark-mode .hero,
body.dark-mode section,
body.dark-mode .about-content,
body.dark-mode .projects,
body.dark-mode .contact,
body.dark-mode footer {
    background-color: transparent;
    color: #f1f1f1;
}

body.dark-mode .projects {
    background-color: #23272f;
}

body.dark-mode .project-card {
    background: #23272f;
    color: #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.40);
}

body.dark-mode .project-card p,
body.dark-mode .project-card h3 {
    color: #cbd5e1;
}

body.dark-mode .project-buttons .btn {
    background-color: #2563eb;
    color: #f1f1f1;
}

body.dark-mode .project-buttons .btn:hover {
    background-color: #1d4ed8;
}

body.dark-mode .project-buttons .btn:nth-child(2) {
    background-color: #374151;
}

body.dark-mode .project-buttons .btn:nth-child(2):hover {
    background-color: #111827;
}

body.dark-mode .contact {
    background-color: #1a1a1a;
}

body.dark-mode .contact-link,
body.dark-mode .social-link {
    color: #bae6fd;
}

body.dark-mode .social-link:hover {
    color: #fbbf24;
}

body.dark-mode footer {
    background-color: #23272f;
    color: #e2e8f0;
}

/* Contributions Calendar */
body.dark-mode .calendar {
    background-color: #23272f;
    border-color: #8ec6ff;
}

/* Toggle button styles */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1.5rem;
    outline: none;
    display: flex;
    align-items: center;
}

.toggle-icon {
    color: #333;
    transition: color 0.3s;
}

body.dark-mode .toggle-icon {
    color: #f1c40f;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }
}
/* Footer Social Links */
.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.footer-link {
    display: flex;
    align-items: center;
    color: #333;
    transition: color 0.3s;
    text-decoration: none;
}
.footer-link:hover {
    color: #0077b5; /* LinkedIn blue as accent on hover for all for pop */
}
.footer-link svg {
    display: block;
    width: 28px;
    height: 28px;
    pointer-events: none;
}
body.dark-mode .footer-link {
    color: #e0e7ef;
}
body.dark-mode .footer-link:hover {
    color: #fbbf24;
}
/* Footer Contact Item Styles */
.footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1.5rem;
    min-width: 75px;
}

.footer-contact-label {
    font-size: 1rem;
    margin-top: 0.35rem;
    color: #333;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.01em;
}

body.dark-mode .footer-contact-label {
    color: #e2e8f0;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .footer-social-links {
        gap: 1rem;
    }
    .footer-contact-item {
        margin: 0 0.5rem;
        min-width: 60px;
    }
    .footer-contact-label {
        font-size: 0.95rem;
    }
}
/* Disabled Project Style */
.project-card.disabled {
    filter: grayscale(1) brightness(0.85);
    opacity: 0.65;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.project-card.disabled h3,
.project-card.disabled p {
    color: #888 !important;
}

.project-card.disabled .btn,
.btn.disabled {
    background: #bbb !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border: none;
    box-shadow: none;
    pointer-events: none;
    opacity: 0.8;
}
/* Reduce gap for Project on React section */
.compact-section {
    padding-top: 2.5rem !important;
    margin-top: -4rem;
}
