/* Basic Reset and Typography */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #ffffff;
}

body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./public/images/calligraphy.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: fixed;
    opacity: 0.15; /* Making the background more subtle */
    z-index: -1;
    pointer-events: none;
}

/* Center content in the hero section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-bottom: 100px; /* Add padding at bottom to prevent content from being hidden behind social icons */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #000;
    text-align: center;
}

/* Optional: adjust image size if needed */
.hero-image {
    max-width: 100%;
    height: auto;
  }

a{
    color: black;
    transition: color 0.3s ease-in-out;
    text-decoration: underline;
}

a:visited{
    color: black;
    text-decoration: underline;
}

a:hover {
    color: blue; /* Change this to any color you prefer */
    text-decoration: underline; /* Optional: Adds an underline on hover */
}
  
/* Active (when clicking) */
a:active {
    color: darkblue; /* A slightly different color when the link is actively clicked */
}

/* About Me text styling */
.about {
    text-align: left;
    max-width: 800px;  /* Increased max-width for better readability */
    margin: 1em auto;     /* Add vertical spacing */
    padding: 0 20px;    /* Add consistent padding */
}

.about li {
    text-align: left;
    margin-left: 20px;
    list-style-position: outside;
}

/* Center the section title but keep content left-aligned */
.about + .about {
    margin-top: 2em;  /* Add more space between sections */
}

.about-list {
    list-style: disc;     /* or circle, square, none, etc. */
    padding-left: 20px;   /* indentation from the left */
    margin-bottom: 1em;   /* space below the list */
}
  
  
  
header, main, footer {
    padding: 20px;
    margin: auto;
    max-width: 800px;
}
  
/* Navigation Links Overlay */
.nav-links {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
    flex-wrap: wrap;
    justify-content: flex-end;
}
  
.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: all 0.3s ease;
}
  
.nav-links a:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}
  
/* Gallery for Photos Page */
.gallery {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
  
.gallery img {
    width: calc(33% - 10px);
    height: auto;
}
  
/* Blog Posts Styling */
.blog-posts article {
    margin-bottom: 40px;
}
  
/* Publications List Styling */
.publications ul {
    list-style: none;
    padding: 0;
}
  
.publications li {
    margin-bottom: 20px;
}
  
/* Gallery Styles */
.gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}
  
/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #bbb;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.prev, .next {
    cursor: pointer;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Social Icons */
.social-icons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    background: transparent;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 1);
    color: #0077b5; /* LinkedIn blue */
}

.social-icons a:first-child:hover {
    color: #333; /* GitHub black */
}

/* Education Section Styles */
.education-trigger {
    color: #000000;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.education-trigger:hover {
    opacity: 0.7;
}

.education-details {
    text-align: center;
    max-width: 800px;
    margin: 1em auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.education-details.expanded {
    max-height: 500px;
    opacity: 1;
    padding: 20px 0;
}

.education-details ul {
    text-align: left;
    padding-left: 20px;
    margin: 1em 0;
    list-style-position: inside;
}

.education-details li {
    margin-bottom: 0.5em;
    text-align: left;
}

/* Photo Categories Navigation */
.photo-categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
}

.category-link {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.category-link:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    color: #000;
}

.category-link.active {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.category-link.active:hover {
    background: rgba(0, 0, 0, 1);
    color: white;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .hero {
        padding-top: 80px; /* Add space for the navigation */
    }

    .nav-links {
        top: 10px;
        right: 10px;
        gap: 5px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .calligraphy-image {
        width: 100%;
        max-width: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about {
        max-width: 90%;
        margin: 1em auto;
    }

    .education-details {
        max-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .nav-links {
        position: static;
        justify-content: center;
        margin: 20px 0;
    }

    .hero {
        padding-top: 20px;
    }
}
  