:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #e0f2fe;
    --text-secondary: #a5f3fc;
    --accent-primary: #22d3ee;
    --accent-secondary: #06b6d4;
    --border-color: #0e7490;
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
    --top-navbar-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    height: 100%;  
}

body.menu-open {
    overflow: hidden;
}

/* Top Horizontal Navigation Bar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-navbar-height);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    z-index: 150;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color var(--transition-speed) ease;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    position: relative;
}

.site-logo:hover {
    color: white;
    transform: scale(1.05);
}

.site-logo .already-here-popup {
    position: absolute;
    bottom: -35px;
    left: 80%;
    transform: translateX(-50%);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-logo:hover .already-here-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.top-navbar nav {
    display: flex;
    gap: 2rem;
}

.top-navbar nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.top-navbar nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease-out;
}

.top-navbar nav a:hover::after,
.top-navbar nav a.active::after {
    transform: scaleX(1);
}

.top-navbar nav a.active {
    color: var(--accent-primary);
}

/* Layout Container */
.layout-container {
    display: flex;
    flex-direction: row;
    min-height: 100%;
    padding-top: var(--top-navbar-height);
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition-speed) ease;
    padding-top: var(--top-navbar-height);
}

.sidebar-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 2rem;
    will-change: transform;
}

.profile-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    transition: transform var(--transition-speed) ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: #10b981;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
    min-height: 1.5rem;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
}

.profile-title {
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.profile-location {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    margin: 2rem 0;
    will-change: transform;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease, 
                transform var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    height: 40px;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: var(--accent-primary);
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bg-tertiary);
    color: white;
}

.nav-link.active::before,
.nav-link:hover::before {
    transform: translateX(0);
}

.nav-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2);
}

.nav-text {
    font-size: 0.875rem;
}

/* Sub-navigation menu for internal page sections */
.sub-nav-menu {
    margin-left: 1rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-color);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.sub-nav-menu .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    height: 32px;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease;
}

.sub-nav-menu .nav-link::before {
    width: 2px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--accent-primary);
    transform: translateY(-3px);
}

.social-link img {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.main-content .section {
    max-width: 1100px; /* Example: Adjust this value as needed */
    margin-left: auto;
    margin-right: auto;
}

/* Section Styles */
.section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    scroll-margin-top: calc(var(--top-navbar-height) + 20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#contact-section .section-header {
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 2rem;
    color: white;
    position: relative;
}

/* Terminal Dots */
.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot.red { background-color: #ef4444; animation-delay: 0s; }
.dot.yellow { background-color: #eab308; animation-delay: 0.2s; }
.dot.green { background-color: #22c55e; animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Content Card */
.content-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
    }
}

.content-card-contact {
    padding: 1.5rem;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .content-card-contact {
        padding: 1.5rem;
    }
}

.intro-text {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.terminal-command {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg-tertiary);
  color: #00ffd1;
  padding: 0.3em 0.6em;
  border-radius: 6px;
  display: inline-block;
  font-size: 1.1em;
}

.blinking-cursor {
  color: #00ffd1;
  animation: blink 1s step-start infinite;
}

strong {
  color: var(--accent-secondary);
  font-weight: 600;
  letter-spacing: 0.3px;
}

em {
  color: var(--accent-primary);
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}

@keyframes blink {
  50% { opacity: 0; }
}

.inline-link {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color var(--transition-speed) ease;
}

.inline-link:hover {
    color: white;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-text h3 {
    color: white;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, max-content));
    gap: 0.4rem;
    justify-content: start;
}

.tech-grid-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary) var(--bg-primary);
}

.tech-grid-scroll::-webkit-scrollbar {
    height: 6px;
}

.tech-grid-scroll::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.tech-grid-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 3px;
}

.tech-grid-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.tech-grid-scroll .tech-item {
    flex: 0 0 auto;
    min-width: 80px;
}

.tech-icon-text {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 100%;
}

.tech-item .tech-icon-text {
    filter: drop-shadow(0 0.001px 10px rgba(255, 255, 255, 0.417));
}

.tech-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 48px;
    height: 60px;
    padding: 0.35rem;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    z-index: 0;
    animation: float 3s ease-in-out infinite;
}

.tech-item:nth-child(2n) {
    animation-delay: 0.5s;
}

.tech-item:nth-child(3n) {
    animation-delay: 1s;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.3);
    background-color: rgba(34, 211, 238, 0.1);
}

.tech-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 0.001px 10px rgba(255, 255, 255, 0.417));
}

.tech-item span {
    font-size: 0.55rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

.tech-hover-detail {
    position: absolute;
    top: -1.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--accent-primary);
    background-color: rgba(15, 23, 42, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.tech-item:hover .tech-hover-detail {
    opacity: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }
.timeline-item:nth-child(10) { animation-delay: 1.0s; }


@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.slide-in-left {
    transform: translateX(-30px);
}

.slide-in-right {
    transform: translateX(30px);
}

.timeline-marker {
    position: absolute;
    left: -2.3rem;
    top: 1.8rem;
    width: 12px;
    height: 12px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg-primary);
}

.timeline-content {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically in the center */
    margin-bottom: 0.5rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 0.5rem; /* Space between elements in the header */
}

.company-name {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-right: 0.25rem;
    white-space: nowrap; /* Keep company name on a single line */
    overflow: wrap; /* Hide overflow text */
}

.timeline-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex; /* Use flex for company name and job title */
    align-items: baseline;
    gap: 0.25rem;
    flex-grow: 1; /* Allow h3 to take available space */
}

/* New styles for timeline meta (location and duration) */
.timeline-meta {
    display: flex;
    flex-direction: column; /* Stack location and duration vertically */
    align-items: flex-end; /* Align to the right on desktop */
    gap: 0.2rem; /* Small gap between location and duration */
    flex-shrink: 0; /* Prevent shrinking */
}

.timeline-location,
.timeline-duration {
    font-size: 0.875rem;
    color: var(--text-secondary); /* A subtle color for location/date */
    padding: 0.3rem 0.7rem;
    white-space: nowrap; /* Prevent wrapping inside the pill */
    display: inline-flex; /* Use inline-flex for proper padding and alignment */
    align-items: center;
    justify-content: center;
    min-width: 80px; /* Ensure a minimum width for the pill */
}

.timeline-duration {
    color: var(--accent-primary); /* Highlight duration */
    font-weight: 500;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.75rem;
}

.tag {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-size: 0.4rem;
    line-height: 1.3;
}

/* Timeline content links - improved visibility */
.timeline-content a:not(.timeline-link) {
    color: #67e8f9; /* Brighter cyan for better contrast */
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.timeline-content a:not(.timeline-link):hover {
    color: #ffffff; /* White on hover for maximum visibility */
    text-decoration: underline;
}

.timeline-link {
    display: inline-block !important;
    color: #67e8f9 !important; /* Brighter cyan for better contrast */
    text-decoration: underline !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    transition: color var(--transition-speed) ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
    line-height: 1.5 !important;
}

.timeline-link:hover {
    color: #ffffff !important; /* White on hover for maximum visibility */
    text-decoration: underline !important;
}

.footer-background {
    background-color: var(--bg-primary);
    width: 100%;
    padding-bottom: 1rem;
    box-sizing: border-box;
    z-index: 0;
    position: bottom fixed;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.contact-footer {
    text-align: center;
    padding-left: 16rem;
    padding-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Blog grid - same as projects grid */
.blogs-page .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.3);
    border-color: var(--accent-primary);
}

.project-card .project-company {
    font-size: 0.8em;
    color: var(--text-secondary);
    font-weight: normal;
    margin-left: 0rem;
}

.project-icon .project-logo-icon {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0.001px 10px rgba(255, 255, 255, 0.417));
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.project-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-primary);
    font-size: 0.875rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-pill {
    background-color: rgba(34, 211, 238, 0.2);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    background-color: var(--bg-tertiary);
    transition: transform var(--transition-speed) ease;
}

.zoom-hover:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.gallery-overlay p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.gallery-section {
    margin-bottom: 2rem;
}

/* Modal (Lightbox) Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.active {
    opacity: 1;
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

@keyframes modalZoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes modalZoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

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

.close-button:hover,
.close-button:focus {
    color: var(--accent-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ccc;
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 8px;
    max-width: 80%;
    box-sizing: border-box;
}

/* Contact Section */
.contact-content {
    padding-top: 4%;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .contact-intro {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-methods-sidebar {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-methods-sidebar h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-methods-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-note-sidebar {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
}

.contact-button:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.contact-button img {
    width: 20px;
    height: 20px;
}

@media screen and (max-width: 768px) {
    .contact-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }   
}

.contact-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left:22%;
}

@media screen and (max-width: 768px) {
    .contact-note {
        padding-left: 0;
        text-align: center;
    }
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media screen and (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Form Styles */
.contact-form-container {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form-container h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.875rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--accent-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
    background-color: var(--bg-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'JetBrains Mono', monospace;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-top: 0.5rem;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-icon {
    font-size: 1rem;
}

.contact-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2.5rem 0;
    color: var(--text-secondary);
    position: relative;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.contact-divider span {
    padding: 0 1.5rem;
    font-size: 0.85rem;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.form-message.error {
    display: block;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

/* Pulse Animation */
.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Mobile Menu Toggle Button Styles */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    background-color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center lines */
    align-items: center;
    height: 44px; 
    width: 44px; 
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease, transform 0.2s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 28px; /* Slightly wider lines */
    height: 3px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s; /* Smoother transition for all transform properties */
    margin: 3.125px 0; /* Adjusted margin for two lines to form a better cross */
}

.mobile-menu-toggle.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(3.125px) rotate(45deg); /* Adjusted transform for two lines to form a cross */
    background-color: var(--bg-primary);
}

.mobile-menu-toggle.active span:nth-child(2) {
    transform: translateY(-5.5px) rotate(-45deg); /* Adjusted transform for two lines to form a cross */
    background-color: var(--bg-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .top-navbar nav {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .sidebar .profile-section {
        display: none;
    }

    #index-page .mobile-only-profile {
        display: block;
        padding-top: 1rem;
        margin-bottom: 2rem;
    }

    .top-navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .top-navbar nav {
        position: absolute;
        top: var(--top-navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--top-navbar-height));
        background-color: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform var(--transition-speed) ease-out, opacity var(--transition-speed) ease-out, visibility var(--transition-speed) ease-out;
        z-index: 140;
        flex-direction: column;
    }

    .top-navbar.active nav {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        display: flex; /* Keep display flex for layout */
    }

    .top-navbar nav a {
        padding: 0.75rem 2rem;
        width: 100%;
        text-align: left;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    /* Ensure mobile menu toggle is visible and correctly positioned on mobile */
    .mobile-menu-toggle {
        display: flex !important; /* Override display: none for mobile */
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 9999 !important; /* Increased z-index for modals */
        
        /* Reset other properties to ensure consistency */
        margin: 0 !important;
        transform: none !important;
        bottom: auto !important;
        left: auto !important;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }

    .section:last-child {
        padding-bottom: 5vh; /* Further reduced padding for the last section on mobile */
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .tech-item {
        width: auto;
        height: 90px;
        padding: 0.5rem;
        flex-shrink: 0;
    }

    .tech-item img {
        width: 35px;
        height: 35px;
        margin-bottom: 0.2rem;
        filter: drop-shadow(0 0.001px 10px rgba(255, 255, 255, 0.417));
    }

    .tech-item span {
        font-size: 0.7rem;
    }
    .tech-hover-detail {
        font-size: 0.65rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-marker {
        left: -1.3rem;
        top: 1.5rem;
    }
    .timeline-content {
        padding: 1rem;
        box-sizing: border-box; /* Ensure padding is included in the element's total width/height */
    }

    .timeline-header {
        display: flex;
        flex-direction: column; /* Stack h3 and timeline-meta vertically */
        align-items: flex-start; /* Align content to the left */
        gap: 0.25rem; /* Space between h3 and timeline-meta */
        margin-bottom: 0.5rem;
        width: 100%; /* Ensure it takes full width */
    }

    /* The h3 element itself, containing Company Name and Job Title */
    .timeline-header h3 {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
        display: flex; /* Make h3 a flex container */
        flex-wrap: wrap; /* ALLOW company-name and job title to wrap within h3 */
        align-items: baseline; /* Align text baselines if on the same line */
        gap: 0.25rem; /* Space between Company Name and Job Title when on the same line */
        width: 100%; /* Ensure h3 takes full width to enable wrapping */
        margin-bottom: 0; /* Remove default h3 margin */
        /* REMOVE flex-direction: column here, as it conflicts with wrapping "Company Name" and Job Title on the same line */
    }

    /* The Company Name span */
    .timeline-header h3 .company-name {
        color: var(--accent-primary);
        font-weight: 600;
        margin-right: 0; /* Rely on gap from parent h3 for spacing */
        word-break: break-word; /* Forces long words to break */
        min-width: 0; /* Allows the flex item to shrink smaller than content */
        white-space: normal; /* Ensure it can wrap, overriding any nowrap */
        /* REMOVE display: inline; as it conflicts with flex-wrap on parent h3 */
    }

    /* Adjustments for timeline-meta (location and duration) */
    .timeline-meta {
        display: flex;
        flex-direction: column; /* Stack location and duration vertically */
        align-items: flex-start; /* Align to the left */
        font-size: 0.8rem;
        color: var(--text-secondary);
        gap: 0; /* No gap needed between location and duration if stacked */
        margin-top: 0.25rem; /* Small space from h3 above */
        width: 100%; /* Ensure it takes full width */
    }

    .timeline-meta .timeline-location,
    .timeline-meta .timeline-duration {
        white-space: normal; /* Ensure text can wrap */
        word-break: break-word; /* Break long words */
        /* Remove min-width and padding if they are causing overflow, or adjust them */
        min-width: auto; /* Allow to shrink */
        padding: 0; /* Remove padding if it's causing issues, or apply it differently */
    }
    
    .timeline-tags .tag {
        padding: 0.2rem 0.6rem; /* Smaller tags on mobile */
        font-size: 0.7rem;
    }

    .modal-content {
        width: 95%;
    }

    body.modal-open .mobile-menu-toggle {
        display: none !important;
    }

    .sub-nav-menu {
        display: none !important;
    }

    .contact-footer {
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-only-profile {
        display: none !important;
    }

    .top-navbar nav {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        background-color: transparent !important;
        border-top: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        height: auto !important;
        overflow-y: visible !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
    .sidebar {
        display: block !important;
    }
    .main-content {
        margin-left: var(--sidebar-width) !important;
    }
}

/* Smooth Scrolling for sections */
section {
    scroll-margin-top: calc(2rem + var(--top-navbar-height));
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Hover Effects */
a {
    transition: color var(--transition-speed) ease;
}

a:hover:not(.timeline-link):not(.publication-link) {
    color: var(--accent-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Text Selection */
::selection {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Animated Background Pattern */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Creative Section specific styles */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.creative-item {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.creative-item h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.creative-item p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.creative-item .project-tech, .creative-item .tag {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.creative-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 1rem;
}

.creative-text-excerpt {
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
}

/* Horizontal scrolling gallery for Creative page */
.horizontal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-gallery::-webkit-scrollbar {
    display: none;
}

.horizontal-gallery::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.horizontal-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 4px;
}

.horizontal-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.horizontal-gallery .gallery-item {
    flex: 0 0 280px;
    height: 220px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed) ease;
}

.horizontal-gallery .gallery-item:hover {
    transform: translateY(-5px);
}

.horizontal-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.horizontal-gallery .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    transform: translateY(0);
    opacity: 1;
    transition: background-color 0.2s ease;
    pointer-events: none; /* Allow clicks to pass through to the image */
}

.horizontal-gallery .gallery-item:hover .gallery-overlay {
    background-color: rgba(34, 211, 238, 0.2);
}

.horizontal-gallery .gallery-overlay h3 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.horizontal-gallery .gallery-overlay p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Sub-heading for creative sections */
.section-sub-heading {
    font-size: 1.5rem;
    color: white;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Horizontal Gallery Wrapper for navigation buttons */
.horizontal-gallery-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.scroll-button:hover {
    background-color: var(--accent-primary);
}

.scroll-button.left {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.scroll-button.right {
    right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Ripple effect styling */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes ripple-animation {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Project Detail Modal specific styles */
.project-modal-content {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.project-modal-content h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.project-modal-content p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
}

.project-modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-modal-image-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-modal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.project-modal-image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.25rem 0;
}

.project-modal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

.huggingface-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #FFD21E, #FF9D00);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.huggingface-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 210, 30, 0.4);
}

.project-modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
/* Profile Links Grid */
.profile-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.profile-link-box {
    background-color: var(--bg-secondary);
    padding: 1rem;
    padding-top: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.profile-link-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.3);
    border-color: var(--accent-primary);
}

.profile-link-box h3 {
    font-size: 0.95rem;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.profile-link-box p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Ripple effect styling */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7); /* White ripple with some transparency */
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none; /* Allows clicks to pass through to the underlying element */
    z-index: 10;
}

@keyframes ripple-animation {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Mobile adjustments for profile links */
@media (max-width: 768px) {
    .profile-links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .profile-link-box {
        padding: 1rem;
    }

    .profile-link-box h3 {
        font-size: 0.9rem;
    }

    .profile-link-box p {
        font-size: 0.7rem;
    }
}

.github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: #24292e;
    border: 2px solid #24292e;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    height: auto;
    transition: all var(--transition-speed) ease;
}

.github-button:hover {
    background-color: #0e1114;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.github-button img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* Publications Section */
.publication-item {
    background-color: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-primary);
}

.publication-item:last-child {
    margin-bottom: 0;
}

.publication-item h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.publication-description {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.publication-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.publication-link:hover {
    color: white;
}

.certificate-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    transition: color var(--transition-speed) ease, transform 0.2s ease;
}

.certificate-link:hover {
    color: white;
    transform: translateX(3px);
}

/* Skills Categories */
.skills-categories {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-category {
    background-color: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.skill-category strong {
    color: var(--accent-primary);
    margin-right: 0.25rem;
}

/* Note Card for Projects */
.note-card {
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    text-align: center;
}

/* Blog Section Styles */
.blog-card-style {
    cursor: default;
    min-height: 280px;
}

.blog-card-style:hover {
    cursor: default;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.3);
    border-color: var(--accent-primary);
}

.blog-card-style p:not(.blog-date) {
    color: var(--text-primary);
    font-size: 0.875rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    margin-top: 0;
    line-height: 1.2;
}

.blog-card-style .project-tech {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.blog-read-btn {
    display: inline-block;
    color: #67e8f9;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0;
    transition: color var(--transition-speed) ease;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
    line-height: 1.5;
    background: none;
    border: none;
    border-radius: 0;
}

.blog-read-btn:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* Tech Info Modal Styles */
.tech-modal-content {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    text-align: center;
}

.tech-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.tech-modal-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.tech-modal-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.tech-icon-emoji {
    font-size: 2.5rem;
}

.tech-modal-content h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    width: 100%;
}

.tech-modal-description {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: left;
}

.tech-doc-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(103, 232, 249, 0.3);
    margin-top: 0.5rem;
}

.tech-doc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 232, 249, 0.4);
}

@media (max-width: 768px) {
    .tech-modal-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .tech-modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .tech-modal-icon img {
        width: 40px;
        height: 40px;
    }
    
    .tech-icon-emoji {
        font-size: 2rem;
    }
    
    .tech-modal-content h2 {
        font-size: 1.5rem;
    }
}

