/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0B0F14;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    color: #FFFFFF;
}

h2 {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    color: #FFFFFF;
}

p {
    color: #D1D5DB;
    font-size: 1rem;
}

code {
    font-family: 'JetBrains Mono', monospace;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #121820;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Navigation with Dropdown */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #3B82F6;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #121820;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #D1D5DB;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #3B82F6;
    color: #FFFFFF;
}

/* Hero Section - Enhanced for Mobile */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 1.5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg svg {
    width: 100%;
    height: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn.primary {
    background-color: #3B82F6;
    color: #FFFFFF;
}

.btn.primary:hover {
    background-color: #2563EB;
}

.btn.secondary {
    background-color: transparent;
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

.btn.secondary:hover {
    background-color: #3B82F6;
    color: #FFFFFF;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.who-i-am, .how-i-think, .capabilities, .tools, .data-literacy, .blog-preview, .social-links, .contact, .about, .projects, .research {
    text-align: center;
}

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

.card {
    background-color: #121820;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

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

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.badges span {
    background: linear-gradient(45deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

/* Profile Picture */
/* Profile Picture */
.profile-pic {
    width: 200px;
    height: 300px;
    object-fit: cover;
    display: block;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bio {
    flex: 1;
    text-align: left;
}

/* Projects Grid and Categories */
/* Projects Grid and Compact Tiles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-category {
    margin-bottom: 4rem;
}

.project-category h3 {
    margin-bottom: 2rem;
    color: #3B82F6;
}

.project-card {
    background-color: #121820;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    overflow: hidden;
    max-height: 500px; /* Limit height for compactness */
}

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

.project-card img {
    width: 100%;
    height: 180px; /* Smaller image */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.project-card-content {
    padding: 1rem; /* Reduced padding for compactness */
}

.project-card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-card-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tools-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.tools-badges span {
    background: linear-gradient(45deg, #10B981, #059669);
    color: #FFFFFF;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-card {
    background-color: #121820;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

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

.research-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.research-keywords span {
    background: linear-gradient(45deg, #10B981, #059669);
    color: #FFFFFF;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Research Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.status-ongoing {
    background-color: #10B981;
    color: #FFFFFF;
}

.status-completed {
    background-color: #6B7280;
    color: #FFFFFF;
}

/* Blog Cards */
#blog-cards .card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Contact Tiles */
.contact-tiles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-tile {
    background-color: #121820;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 200px;
    transition: transform 0.3s;
}

.contact-tile:hover {
    transform: translateY(-5px);
}

.contact-tile p {
    margin: 0;
    font-size: 1rem;
}

/* Footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex-wrap: wrap;
}

.social-links h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #FFFFFF;
}

/* Mobile Responsiveness for About */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack bio first, then image below */
        text-align: center; /* Center align for better readability */
        gap: 1rem;
    }

    .bio {
        text-align: center; /* Center the text on mobile */
        padding: 1rem; /* Add padding to prevent cut-off */
        line-height: 1.8; /* Improve line height for first lines */
        font-size: 1.1rem; /* Larger font for readability */
    }

    .profile-pic {
        width: 150px; /* Smaller image on mobile */
        height: 200px; /* Adjust height */
        margin: 1rem auto; /* Center and add margin */
    }

    /* Other mobile enhancements */
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }


    .research-grid {
        grid-template-columns: 1fr;
    }

    .contact-tiles {
        flex-direction: column;
        align-items: center;
    }

    .contact-tile {
        min-width: 80%;
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links a {
        margin: 0.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .card, .project-card, .research-card {
        padding: 2rem;
        font-size: 1rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .badges span, .tools-badges span, .research-keywords span {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-height: none; /* Allow full height on mobile */
    }

    .dropdown-menu {
        position: static;
        display: none;
        background-color: transparent;
        box-shadow: none;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .card, .project-card, .research-card {
        padding: 1.5rem;
    }


    .bio {
        padding: 0.5rem; /* Extra padding for small screens */
    }
}

