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

html, body {
    overflow-x: hidden;
}

body {
    font-weight: 400;
    line-height: 1.6;
    background: #000000;
    color: #e0e0e0;
}

h2 {
    font-family: "Playwrite HU", cursive;
    color: rgb(236, 236, 236);
    font-weight: bolder;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

h3, p {
    font-family: "Edu NSW ACT Hand Pre", cursive;
}

#about {
    padding: 20px;
    text-align: center;
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.profile-photo {
    width: 150px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 20px;
    border: 1px solid rgb(0, 0, 0);
}

.profile-info h3 {
    margin: 0;
    font-size: 24px;
}

.profile-info p {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
}

header {
    background: linear-gradient(0deg, rgb(238, 239, 241) 0%, rgba(0,0,0,1) 70%);
    padding: 30px 0;
    text-align: center;
    border-radius: 0 0 10px 10px;
    position: relative;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav {
    position: relative;
    z-index: 9999;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

nav ul li a:hover {
    color: #0b4453;
    text-decoration: underline;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #e0e0e0;
    z-index: 10000;
}

#nav-links {
    display: flex;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    list-style: none;
}

#nav-links li {
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

#nav-links li:hover {
    color: blue;
    transform: scale(1.1);
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
}

form label {
    margin: 10px 0 5px;
    color: #e0e0e0;
}

form input, form textarea {
    padding: 22px 22px;
    margin-bottom: 15px;
    border: 1px solid #0e0000;
    border-radius: 24px;
    background: #000000;
    color: #e0e0e0;
    transition: border-color 0.3s;
    width: 50%;
}

form input:focus, form textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

form button {
    padding: 14px 25px;
    background: #131414;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

form button:hover {
    background: #357ab8;
    transform: scale(1.05);
}

.button {
    transition: background 0.3s, transform 0.3s;
}
.button:hover {
    transform: scale(1.1);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.skill {
    background: radial-gradient(circle, rgb(116, 116, 113), rgba(0, 0, 0, 1));
    color: #fff;
    padding: 10px 22px;
    margin: 5px;
    border-radius: 25px;
    box-shadow: 0 0px 53px rgba(65, 72, 1, 0.296);
    font-family: "Exo 2", sans-serif;
}

main {
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
    padding: 20px;
    background: radial-gradient(circle, rgb(58, 56, 56) 0%, rgb(0, 0, 0) 100%);
    border-radius: 28px;
}

.project {
    background: #000000;
    padding: 15px;
    margin: 15px 0;
    border-radius: 25px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

footer {
    text-align: center;
    padding: 20px 0;
    background: #060606;
    color: #e0e0e0;
    border-radius: 20px 20px 0 0;
}

/* Gallery uses grid (not flex) */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 0 auto;
    width: 80%;
}

.gallery-item {
    margin: 10px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0px 65px rgb(117, 5, 31);
    transition: transform 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Responsive gallery grid */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog Container Styling for Responsive Cards */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-post {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 48px;
    box-shadow: 0 0px 88px rgb(16, 2, 2);
    padding: 20px;
    width: 100%;
    max-width: 350px;
    margin: 10px;
    text-align: left;
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.blog-post p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Read More Button Styling */
.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #1bd8b2;
    color: #000000;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    transition: background-color 0.6s ease;
}

.read-more:hover {
    background-color: #0056b3;
}

/* Responsive Layout for Larger Screens */
@media (min-width: 768px) {
    .blog-post {
        width: calc(33.333% - 20px);
    }
}

/* Responsive Layout for Small Screens */
@media (max-width: 767px) {
    .blog-container {
        flex-direction: column;
    }
}

/* Code snippets CSS */
pre code {
    background-color: #000000;
    color: #5ce05f;
    padding: 10px;
    border-radius: 25px;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1em;
    overflow-x: auto;
}

/* If code1 is a class, use .code1; if tag, use code */
.code1 {
    font-family: Consolas, "Courier New";
    color: rgb(220, 20, 193);
    background-color: #000000;
    padding: 5px 7px;
    font-size: 105%;
    border-radius: 15px;
}

/* Headings and emphasis */
strong {
    text-decoration: underline;
}

.subHeading {
    color: rgb(3, 3, 3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: larger;
    text-decoration: underline;
}

.miniHeading {
    color: rgb(255, 255, 2);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-style: italic;
    text-decoration-line: underline;
    text-decoration-style: wavy;
}

p {
    color: rgb(255, 255, 255);
}

.gap {
    margin-top: 30px;
}

/* Introduction Section Styling */
.introduction {
    padding: 20px;
    background-color: #000000;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.intro-image {
    width: 50%;
    max-width: 300px;
    border-radius: 60px;
}

.intro-description {
    width: 50%;
    font-size: 1rem;
    line-height: 1.5;
    color: #f0f0f0;
}

/* Responsive adjustments for introduction */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    .intro-image,
    .intro-description {
        width: 100%;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    padding: 10px;
    display: none;
    transition: background 0.3s;
}

.back-to-top:hover {
    background: #357ab8;
}

/* Responsive nav and header adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    nav ul li {
        margin: 0 5px;
    }
    main {
        padding: 20px;
    }
    section {
        margin-bottom: 30px;
    }
    form input, form textarea {
        padding: 0 5px;
        border-radius: 1px;
    }
    form button {
        padding: 10px;
    }
    .profile-container {
        flex-direction: column;
    }
    .profile-photo {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    .hamburger {
        display: block;
    }
    #nav-links {
        flex-direction: row;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #000000;
        padding: 10px 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 1s ease-in-out, visibility 0.9s ease-in-out;
    }
    #nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    main {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 5px 0;
    }
}

/* Sliding images */

.slider-container {
        position: relative;
        width: 70%;
        margin: 20px auto;
        overflow: hidden;
        border-radius: 10px;
    }

    .slider-images {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }

    .slider-images img {
        min-width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 24px;
        z-index: 10;
        border-radius: 50%;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }
