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

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 20px;
    height: 100vh;
    width: 100vw;
    animation: aurora 10s ease infinite;
    overflow: auto;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #bb86fc;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.nav-links li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #bb86fc;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #bb86fc;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    gap: 0.5rem;
    padding: 0 1rem;
    position: relative;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(50px, 1fr));
    gap: 2px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.square {
    background: #111;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.square.active {
    background: #7f00ff;
    box-shadow: 0 0 20px #7f00ff;
}

.square.dim {
    background: #4b0082;
    box-shadow: 0 0 10px #4b0082;
}

.square.faint {
    background: #2e004d;
    box-shadow: 0 0 5px #2e004d;
}

.text-section {
    max-width: 50%;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.image-section img {
    max-width: 400px;
    margin-top: 50px;
    height: auto;
    border-radius: 10px;
    z-index: 10;
    position: relative;
    border-radius: 50%;
    border: 3px solid #bb86fc;
}

.image-section {
    margin-right: 0.5rem;
}

h1 {
    font-size: 3rem;
    margin-top: 20px;
    text-transform: uppercase;
}

h2 {
    font-size: 1.5em;
    color: #ff00ff;
}

.typewriter h2 {
    font-size: 1.5rem;
    height: 2rem;
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 80px;
    }

    .text-section {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .image-section img {
        max-width: 250px;
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

@media (min-width: 901px) {
    .text-section {
        margin-right: 150px;
        margin-left: 50px;
    }

    .image-section img {
        margin-left: 150px;
    }
}

@media (min-width: 1201px) {
    .text-section {
        margin-right: 250px;
        margin-left: 50px;
    }

    .image-section img {
        margin-left: 250px;
    }
}





/* Navigation Styles updated in header section */

section {
    padding: 20px;
    margin: 20px 0;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3 {
    color: #bb86fc;
}






/* About Section Styles */
.about-section {
    margin-top: 150px;
    position: relative;
    z-index: 1;
}

#about {
    padding: 60px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    text-align: justify;
}

/* Responsive Layout for Smaller Screens */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 80%;
        max-width: 300px;
    }

    .about-text {
        text-align: left;
    }
}

/* Even Smaller Screens */
@media (max-width: 480px) {
    #about {
        padding: 20px;
    }

    .about-image img {
        width: 100%;
        max-width: 250px;
    }

    .about-text h1 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}







.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #bb86fc;
    color: #121212;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #03dac6;
}





#skills {
    text-align: center;
    margin-top: 30px;
    gap: 20px;
    justify-items: center;
    align-items: center;
}

/* Skills Section Carousel */
.skills-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.skills-filters button {
    background: transparent;
    border: 1px solid #bb86fc;
    color: #bb86fc;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    width: auto;
}

.skills-filters button.active,
.skills-filters button:hover {
    background: #bb86fc;
    color: #121212;
}

.skills-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.skills-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
}

.skills-carousel::-webkit-scrollbar {
    display: none;
}

.skill-card {
    min-width: 150px;
    background: #1e1e2e;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(187, 134, 252, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.3);
    border-color: #bb86fc;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.skill-card p {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
    font-weight: 500;
}






/* Education Section */
#education {
    text-align: center;
    padding: 50px;
    color: #fff;
}

h2 {
    color: #b399ff;
    margin-bottom: 30px;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
    background: #b399ff;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    border-radius: 10px;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    background: #b399ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #b399ff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.school-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Timeline Content */
.timeline-content {
    background: #1e1e2e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%;
    text-align: left;
}

.timeline-content h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.3rem;
}

.timeline-content p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #b6b6b6;
}

.timeline-content .date {
    color: #b399ff;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 5px;
    color: #cfcfcf;
}

/* Responsive layout */
@media (max-width: 768px) {
    .school-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.gate-highlight {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 16px 20px;
    border-left: 4px solid #bb86fc;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.15), rgba(0, 0, 0, 0.2));
    border-radius: 12px;
}

.gate-highlight h4 {
    margin-bottom: 6px;
    color: #bb86fc;
    font-weight: 600;
}

.gate-highlight ul {
    list-style: none;
    padding-left: 0;
}

.gate-highlight li {
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.gate-highlight span {
    color: #ff79c6;
    font-weight: bold;
}









/* ================= PROJECTS SECTION ================= */

#projects {
    padding: 80px 40px;
}

/* ---------- FILTER BUTTONS ---------- */

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.project-filters button {
    background: transparent;
    border: 1px solid #bb86fc;
    color: #bb86fc;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.project-filters button.active,
.project-filters button:hover {
    background: #bb86fc;
    color: #121212;
}

/* ---------- CAROUSEL WRAPPER ---------- */
.carousel-wrapper {
    width: 100%;
    position: relative;
}

/* ---------- CAROUSEL ---------- */

.project-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.project-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

/* ---------- PROJECT CARD ---------- */

.project-card {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;

    background: #1a1a1a;
    border-radius: 16px;
    padding: 16px;

    box-shadow: 0 0 15px rgba(187, 134, 252, 0.15);
    display: flex;
    flex-direction: column;

    cursor: grab;
    user-select: none;
}

.project-card:active {
    cursor: grabbing;
}

/* ---------- IMAGE ---------- */

.project-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a0845, #0f2027);
}

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

/* ---------- TEXT ---------- */

.project-card h4 {
    margin-top: 14px;
    color: #e0e0e0;
}

.project-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 6px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.project-tags span {
    background: rgba(187, 134, 252, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #bb86fc;
}

.project-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: auto;
}

/* ---------- GITHUB BUTTON ---------- */

.project-actions {
    margin-top: 12px;
}

.project-actions a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid #bb86fc;
    color: #bb86fc;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s;
}

.project-actions a:hover {
    background: #bb86fc;
    color: #121212;
}







/* github section */
#github {
    padding: 80px 40px;
    text-align: center;
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-items: center;
    margin-bottom: 40px;
}

.github-stats-grid img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.15);
}

.github-quote img {
    max-width: 90%;
    margin-top: 12px;
    border-radius: 12px;
}







/* Experience Section Styling */
#experience {
    padding: 50px 20px;
    color: #fff;
    text-align: center;
}

#experience h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #bb86fc;
}

.experience-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.experience-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #2b2b4f, #1f1f3b);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 1000px;
    cursor: pointer;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.experience-card:hover .icon img {
    transform: rotate(360deg);
}

/* Icon Container */
.experience-image {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #26264f;
    padding: 10px;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.icon img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.6);
}

/* Content Styling */
.experience-content {
    text-align: left;
    flex: 1;
}

.experience-content h3 {
    font-size: 1.8rem;
    color: #bb86fc;
}

.experience-content p {
    font-size: 1rem;
    margin: 6px 0;
    line-height: 1.6;
}

.experience-content ul {
    padding-left: 20px;
    list-style: disc;
}

.experience-content ul li {
    margin: 2px 0;
    font-size: 0.95rem;
    color: #e0e0e0;
    transition: color 0.3s;
}

.experience-content ul li:hover {
    color: #ff6f61;
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-card {
        flex-direction: column;
        text-align: center;
    }

    .experience-image {
        flex-direction: row;
        gap: 10px;
    }

    .icon img {
        width: 50px;
        height: 50px;
    }

    .experience-content h3 {
        font-size: 1.5rem;
    }

    .experience-content p,
    .experience-content ul li {
        font-size: 0.9rem;
    }
}








#blog {
    padding: 50px;
    color: #fff;
    text-align: left;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

#blog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/blog_bg.jpg') no-repeat center center/cover;
    opacity: 0.3;
    z-index: -1;
}


#blog h2 {
    font-size: 2rem;
    color: #e6cfff;
    border-bottom: 2px solid #bb86fc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.blog-container {
    display: flex;
    align-items: left;
    gap: 30px;
}

.blog-icon img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #00bfff;
    padding: 10px;
}

.blog-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.blog-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.read-more {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background: #000;
    border: 2px solid #bb86fc;
    border-radius: 30px;
    cursor: pointer;
    text-shadow: 0 0 5px #bb86fc;
    box-shadow: 0 0 10px #bb86fc;
}

.read-more:hover {
    background: #bb86fc;
    box-shadow: 0 0 20px #e6cfff;
}








form input,
form textarea,
button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
}

form input,
form textarea {
    background: #2a2a2a;
    color: #e0e0e0;
}

button {
    background: #bb86fc;
    color: #121212;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #6c63ff;
}






footer {
    background: #121212;
    padding: 20px;
    text-align: center;
}

footer .footer-links a {
    color: #bb86fc;
    margin: 0 10px;
    text-decoration: none;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

.social-icons img {
    max-width: 30px;
    margin-top: 15px;
    margin-left: 5px;
}









/* Galaxy Loader */
.hidden {
    display: none;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.galaxy {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: rotate 6s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.star {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffdd57;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffdd57;
    animation: orbit 3s linear infinite;
}

.star:nth-child(1) {
    top: 0;
    left: 50%;
    animation-duration: 2s;
}

.star:nth-child(2) {
    top: 50%;
    left: 0;
    animation-duration: 3s;
}

.star:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-duration: 4s;
}

.star:nth-child(4) {
    top: 50%;
    right: 0;
    animation-duration: 2.5s;
}

.star:nth-child(5) {
    bottom: 20%;
    right: 20%;
    animation-duration: 3.5s;
}

.star:nth-child(6) {
    top: 20%;
    left: 20%;
    animation-duration: 2s;
}

.star:nth-child(7) {
    bottom: 50%;
    left: 20%;
    animation-duration: 2.5s;
}

.loading-text {
    color: #ffffff;
    font-size: 1.2em;
    margin-top: 10px;
    margin-left: 70px;
    text-align: center;
}




::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #7f00ff, #ff0080);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff0080, #7f00ff);
}


/* Mobile Navigation and Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

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

    .hamburger {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .text-section {
        max-width: 100%;
    }

    .about-container {
        padding: 0 10px;
    }

    .blog-container {
        flex-direction: column;
        text-align: left;
    }

    .blog-icon img {
        width: 120px;
        height: 120px;
    }

    /* Reduce projects section margins on mobile */
    #projects {
        padding: 30px 5px;
    }

    .project-card {
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        padding: 14px;
    }

    .project-carousel {
        gap: 12px;
        padding-left: 5px;
        padding-right: 5px;
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

main {
    padding-top: 80px;
    /* Spacer for fixed header */
}