:root {
    --header-height: 60px;
    --primary-color: #00bcd4;
    --primary-color-rgb: 0, 188, 212;
    --bg-color: #121212;
    --card-bg: #1f1f1f;
    --text-color: #e0e0e0;
}
/* Base Styles */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

body {
    padding-top: calc(var(--header-height) + 20px);
}

* {
    box-sizing: inherit;
}



/* Typography */
h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Layout */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.blogs-container {
    min-height: calc(100vh - var(--header-height) - 100px); /* Adjust 100px as needed */
    display: flex;
    flex-direction: column;
}

.blog-grid {
    flex: 1;
}

section {
    margin-bottom: 60px;
    padding-top: var(--header-height);
    margin-top: calc(-1 * var(--header-height));
    position: relative;
}

/* Header and Navigation */
header {
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-color);
}

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

.header-right {
    display: flex;
    align-items: center;
}

.header-social-links {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.header-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.header-social-links a:hover {
    color: var(--primary-color);
}

.header-social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .header-social-links {
        display: none; /* Hide on mobile to prevent clutter */
    }
}

.logo-name {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    margin-right: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.logo-link:hover .logo {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.full-name {
    display: flex;
    align-items: center;
}

.source-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 4px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.source-code-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.source-code-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--bg-color);
}

@media (max-width: 768px) {
    .source-code-btn {
        padding: 3px;
    }

    .source-code-btn svg {
        width: 14px;
        height: 14px;
    }
}


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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .logo-name {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 5px;
    }

    .full-name {
        font-size: 14px;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
#hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px;
    padding-bottom: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    flex: 1;
    padding-left: 0;
    text-align: center;
}

.hero-text h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1.2;
}

.hero-text .typing {
    display: inline-block;
    color: var(--primary-color);
}

.hero-image {
    flex: 0 0 220px;
    height: 220px;
    position: relative;
    margin-top: 40px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .key-info {
        flex-direction: row;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

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

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

.hero-image::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

/* Key Info */
.key-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.key-info-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(200, 200, 200, 0.1);
    backdrop-filter: blur(5px);
}

.key-info-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.key-info-box p {
    font-size: 0.9rem;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .key-info {
        flex-direction: row;
        justify-content: space-around;
    }

    .key-info-box {
        width: 28%;
    }
}

.key-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(200, 200, 200, 0.2); /* Intensified silver/grey glow on hover */
    border-color: var(--primary-color);
}

.key-info-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.key-info-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.key-info-box p {
    font-size: 0.9rem;
}


/* About Section */
#about {
    padding-top: 40px;
    margin-top: -100px;
}

#about .about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-summary, .about-education, .about-experience {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.education-content, .experience-content {
    display: flex;
    flex-direction: column;
}

.education-text, .experience-text {
    flex: 1;
    padding-right: 0;
}

.university-logo, .company-logo {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 auto 20px;
}

@media (min-width: 768px) {
    .about-details {
        grid-template-columns: 1fr 1fr;
    }

    .education-content, .experience-content {
        flex-direction: row;
    }

    .education-text, .experience-text {
        padding-right: 120px;
    }

    .university-logo, .company-logo {
        position: absolute;
        top: 20px;
        right: 20px;
        margin: 0;
    }
}

.university-logo img, .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-education h3, .about-experience h3 {
    font-size: 1.em;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.about-education h3::after, .about-experience h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% + 120px); /* Extends to the image */
    height: 2px;
    background-color: var(--primary-color);
}

.university-logo, .company-logo {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.university-logo img, .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Shared styles for Projects and Blog Sections */
.project-grid, .blog-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.project-card, .blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card img, .blog-thumbnail {
    width: 100%;
    object-fit: cover;
}

.project-card h3, .blog-card h3 {
    color: var(--primary-color);
    margin: 15px;
    font-size: 1.2em;
}

/* Blog preview on index page */
#blog .blog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#blog .blog-card {
    display: flex;
    flex-direction: row;
    height: auto;
    max-height: 200px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#blog .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#blog .blog-thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

#blog .blog-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex-grow: 1;
    overflow: hidden;
}

#blog .blog-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

#blog .blog-date {
    font-size: 0.9em;
    color: var(--text-color-secondary);
    margin-bottom: 10px;
}

#blog .blog-excerpt {
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#blog .blog-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

#blog .view-all {
    display: block;
    width: max-content;
    margin: 30px auto 0;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    color: var(--primary-color);
    margin: 15px;
    font-size: 1.2em;
}

.project-card p {
    margin: 0 15px 15px;
    font-size: 0.9em;
    flex-grow: 1;
}

/* Blog Section for blogs.html */
.blogs-container .blog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blogs-container .blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blogs-container .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blogs-container .blog-thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.blogs-container .blog-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex-grow: 1;
}

.blogs-container .blog-card h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.blogs-container .blog-date {
    font-size: 0.9em;
    color: var(--text-color-secondary);
    margin-bottom: 10px;
}

.blogs-container .blog-excerpt {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.blogs-container .blog-card .btn {
    align-self: flex-start;
}

.view-all {
    display: block;
    width: max-content;
    margin: 30px auto 0;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 15px 0;
    margin-top: auto;
    position: relative; /* Add this line */
    z-index: 10; /* Add this line to ensure footer is above other content */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.social-links a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-text {
    font-size: 0.85em;
    color: var(--text-color-secondary);
    margin-left: 0; /* Align with the email icon */
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .footer-content {
        align-items: flex-start; /* Keep left alignment on mobile */
    }

    .social-links {
        justify-content: flex-start; /* Align icons to the left on mobile */
        width: 100%;
    }

    .footer-text {
        text-align: left; /* Keep text left-aligned on mobile */
    }
}       

.social-links {
    display: flex;
    justify-content: flex-start; /* Align to the left */
    gap: 20px;
    margin-top: 20px;
    margin-left: 60px; /* Add some left margin */
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 12px; /* Slightly rounded corners */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 1;
}

.social-links a:hover::before {
    width: 100%;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.social-links a:hover svg {
    fill: var(--bg-color);
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(calc(100% - 50px)); }
    50% { transform: translateY(calc(100% - 55px)); }
}

#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 500px;
    background-color: #0c0c1e;
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(calc(100% - 50px));
    z-index: 9999; /* Add this line to ensure chatbot is on top */
}

#chatbot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at top center,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
    z-index: 2;
}

/* Falling Stars */
@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(45deg);
        opacity: 0;
    }
}

.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1; /* Place stars behind other elements */
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    animation: fall linear infinite;
}

/* Generate multiple stars */
.star:nth-child(1) { left: 10%; animation-duration: 5s; animation-delay: 0s; }
.star:nth-child(2) { left: 30%; animation-duration: 7s; animation-delay: 1s; }
.star:nth-child(3) { left: 50%; animation-duration: 6s; animation-delay: 2s; }
.star:nth-child(4) { left: 70%; animation-duration: 8s; animation-delay: 3s; }
.star:nth-child(5) { left: 90%; animation-duration: 5s; animation-delay: 4s; }


#chatbot:not(.open) {
    animation: subtle-bounce 3s ease-in-out infinite, subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1),
                    0 0 20px rgba(255, 255, 255, 0.1),
                    0 0 30px rgba(255, 255, 255, 0.05);
    }
    50% { 
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2),
                    0 0 25px rgba(255, 255, 255, 0.15),
                    0 0 35px rgba(255, 255, 255, 0.1);
    }
}

#chatbot.open {
    transform: translateY(0);
    animation: none;
}

#chatbot-header {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 20px 16px 12px; /* Increased top padding for speaker */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.iphone-speaker {
    width: 40px; /* Reduced width for a more realistic look */
    height: 4px; /* Reduced height for a more realistic look */
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-bottom: 15px; /* Increased margin for better separation */
    opacity: 0.5; /* Increased transparency for a subtler look */
}

#chatbot-header .header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

#chatbot-header .chat-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

#chatbot-header .chat-text {
    font-size: 16px;
    color: var(--text-color);
}


.chat-icon {
    margin-right: 10px;
    transition: transform 0.3s ease;
    transform: rotate(-10deg);
}
.chat-text {
    font-size: 16px;
    font-weight: 600;
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #1c1c1e;
}

.chatbot-input-wrapper {
    padding: 10px 20px;
    background-color: #1c1c1e;
    border-top: 1px solid #38383a;
}

#chatbot-input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background-color: #2c2c2e;
    color: #ffffff;
    font-size: 14px;
}

#chatbot-input::placeholder {
    color: #8e8e93;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#chatbot-messages::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#chatbot-messages {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.message {
    max-width: 70%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.message.user {
    align-self: flex-end;
    background-color: #005A9C;
    color: #FFFFFF;
    border-bottom-right-radius: 5px;
}

.message.bot {
    align-self: flex-start;
    background-color: #3A3A3A;
    color: #FFFFFF;
    border-bottom-left-radius: 5px;
}

.message.user::after,
.message.bot::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 20px;
}

.message.user::after {
    right: -10px;
    border-left: 10px solid #005A9C;
    border-bottom-left-radius: 16px 14px;
}

.message.bot::after {
    left: -10px;
    border-right: 10px solid #3A3A3A;
    border-bottom-right-radius: 16px 14px;
}

.chatbot-input-wrapper {
    padding: 10px;
    background-color: #1E1E1E;
    position: relative;
}

#chatbot-input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #3A3A3A;
    color: #FFFFFF;
    font-size: 14px;
}

#chatbot-input::placeholder {
    color: #999999;
}

#chatbot-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

#typing-indicator {
    position: absolute;
    bottom: 100%;
    left: 10px;
    background-color: #3A3A3A;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 0.9em;
    color: #FFFFFF;
    margin-bottom: 10px;
    border-bottom-left-radius: 5px;
}

#typing-indicator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 10px;
    height: 20px;
    border-right: 10px solid #3A3A3A;
    border-bottom-right-radius: 16px 14px;
}

.typing-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
}

.typing-dots span {
    height: 6px;
    width: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    opacity: 0.4;
    animation: typing-dot 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-dot {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Scroll Arrow */
.scroll-arrow {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 100;
}

.scroll-arrow svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

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

/* Resume Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: transparent;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    height: 90%;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    right: 10px;
    top: -10px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

.resume-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    border: 4px solid var(--primary-color);
    padding: 10px;
    animation: pulse-border 2s infinite;
}

#resume-image {
    width: calc(100% - 20px);
    height: auto;
    display: block;
    max-height: calc(100% - 20px);
    object-fit: contain;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0); }
}

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

    .hero-text, .education-text, .experience-text {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .hero-image, .university-logo, .company-logo {
        margin: 15px auto;
    }

    .hero-image {
        width: 220px;
        height: 220px;
    }

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

    .about-details {
        grid-template-columns: 1fr;
    }

    .university-logo, .company-logo {
        position: static;
    }

    #chatbot {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 10px 10px 0 0;
    }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0097a7;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background: linear-gradient(45deg, var(--primary-color), var(--bg-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Notes Container */
.notes-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.zoom-controls {
    margin-bottom: 10px;
}

.zoom-controls button {
    padding: 5px 10px;
    margin-right: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.notes-svg-container {
    width: 100%;
    height: 80vh;
    border: 1px solid var(--primary-color);
    overflow: hidden;
}

.notes-svg {
    width: 100%;
    height: 100%;
}

.flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-left: 5px;
}

.underlined-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.underlined-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%; /* Extends beyond the text */
    height: 2px;
    background-color: #007bff; /* Blue color, adjust as needed */
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 250px;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        margin-left: 60px;
    }

    .hero-btn {
        width: auto;
    }
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 1;
}

.hero-btn:hover::before {
    width: 100%;
}

.hero-btn span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.hero-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    margin-right: 10px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.hero-btn:hover span {
    color: var(--bg-color);
}

.hero-btn:hover svg {
    fill: var(--bg-color);
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
        margin-left: 60px;
    }
}


#neuralNetwork {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/*Blogs*/
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-post {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-header {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 40px;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5em;
    margin: 0;
    line-height: 1.2;
}

.blog-header h2 {
    font-size: 1.5em;
    margin: 10px 0 0;
    font-weight: 300;
}

.blog-date {
    font-style: italic;
    margin-top: 20px;
}

.blog-header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-content {
    padding: 40px;
}

.lead {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-color-secondary);
    margin-bottom: 30px;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .blog-header {
        padding: 30px 20px;
    }

    .blog-header h1 {
        font-size: 2em;
    }

    .blog-header h2 {
        font-size: 1.2em;
    }

    .blog-content {
        padding: 30px 20px;
    }
}

.two-column {
    display: flex;
    gap: 30px;
}

.two-column > div {
    flex: 1;
}

.blog-inline-image {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
}

.side-image {
    width: 100%;
    height: auto;
    border-radius: 8px;

}

.info-box {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

blockquote {
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
    }
}

.skill-chart {
    width: 100%;
    max-width: 600px;
    margin: 2em auto;
    background-color: #000000;
    padding: 20px;
    border-radius: 10px;
}

.full-width-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.svg-container {
    width: 100%;
    margin: 20px 0;
}

.svg-container svg {
    width: 100%;
    height: auto;
    max-height: 300px;
}

.svg-text {
    fill: var(--text-color);
}

.svg-arrow {
    stroke: var(--text-color);
    fill: var(--text-color);
}

.input-arrow, .input-arrow-head,
.output-arrow, .output-arrow-head,
.feedback-loop, .feedback-arrow {
    opacity: 0;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.input-arrow, .input-arrow-head {
    animation-name: fade-left;
}

.output-arrow, .output-arrow-head {
    animation-name: fade-right;
}

.feedback-loop {
    animation-name: fade-orange;
    stroke: #f39c12;
    fill: none;
    stroke-width: 2;
}

.feedback-arrow {
    animation-name: fade-orange;
    fill: #f39c12;
}

.rotate-45-tip {
    transform-origin: 130px 60px;
    transform: rotate(45deg);
}

.output-arrow-head.rotate-45-tip {
    transform-origin: 300px 25px;
}

@keyframes fade-left {
    0%, 33.33%, 100% { opacity: 0; }
    5%, 28.33% { opacity: 1; }
}

@keyframes fade-right {
    33.33%, 66.67%, 100% { opacity: 0; }
    38.33%, 61.67% { opacity: 1; }
}

@keyframes fade-orange {
    0%, 66.67%, 100% { opacity: 0; }
    71.67%, 95% { opacity: 1; }
}

.snowflake-section {
    margin: 40px 0;
}

.snowflake-content {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.snowflake-image {
    flex: 0 0 auto;
    width: 25%;
    max-width: 200px;
    position: relative;
}

.snowflake-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.snowflake-text {
    flex: 1;
}

@media (max-width: 768px) {
    .snowflake-content {
        flex-direction: column;
    }

    .snowflake-image {
        width: 50%;
        max-width: none;
        aspect-ratio: 9 / 16;
        margin-bottom: 20px;
    }

    .snowflake-photo {
        position: static;
        height: auto;
    }
}