/* Portfolio Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Hey Comic';
    src: url('Assets/Hey Comic.woff2') format('woff2'),
         url('Assets/Hey Comic.otf') format('opentype'),
         url('Assets/Hey Comic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* General Link Styling */
.main-content a:not(.btn):not(.nav-link):not(.dropdown-content a) {
    color: #a5b4fc !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.main-content a:not(.btn):not(.nav-link):not(.dropdown-content a):hover {
    color: #c7d2fe !important;
    text-decoration: underline !important;
}

.main-content a:not(.btn):not(.nav-link):not(.dropdown-content a):focus {
    outline: none !important;
    color: #c7d2fe !important;
    text-decoration: underline !important;
    background: rgba(165, 180, 252, 0.1) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 0 2px rgba(165, 180, 252, 0.3) !important;
}

.main-content a:not(.btn):not(.nav-link):not(.dropdown-content a):focus-visible {
    outline: 2px solid #a5b4fc !important;
    outline-offset: 2px !important;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 25%, #2d1b69 50%, #1a1a3a 75%, #0f0f23 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, #ffffff 0.5px, transparent 0.5px),
        radial-gradient(circle at 50% 10%, #ffffff 0.8px, transparent 0.8px),
        radial-gradient(circle at 10% 90%, #ffffff 0.6px, transparent 0.6px),
        radial-gradient(circle at 90% 30%, #ffffff 0.4px, transparent 0.4px);
    background-size: 150px 150px, 200px 200px, 300px 300px, 250px 250px, 180px 180px;
    background-position: 0 0, 50px 50px, 100px 100px, 150px 150px, 75px 75px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    padding: 1rem 3rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #e2e8f0;
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(120, 119, 198, 0.4));
    margin-right: 0.35rem;
}

.logo-fallback {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 0.35rem;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.4);
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar .nav-link {
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar .nav-link:hover {
    background: rgba(120, 119, 198, 0.15);
    color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 119, 198, 0.2);
}

.navbar .nav-link:focus {
    outline: none;
    background: rgba(120, 119, 198, 0.2);
    color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(120, 119, 198, 0.5), 0 4px 12px rgba(120, 119, 198, 0.3);
}

.navbar .nav-link:focus-visible {
    outline: 2px solid #7877c6;
    outline-offset: 2px;
}

.navbar .nav-link.active {
    background: rgba(120, 119, 198, 0.2);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(120, 119, 198, 0.3);
}

.navbar .nav-link.active:hover {
    background: rgba(120, 119, 198, 0.3);
}

/* Language Selector */
.language-selector-wrapper {
    position: relative;
    display: inline-block;
}

.language-selector {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.language-selector:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.language-selector:focus {
    outline: none;
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.language-selector option {
    background: rgba(15, 15, 35, 0.95);
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
    padding: 0.8rem 1.2rem;
    border: none;
    font-weight: 500;
}

.language-selector option:hover,
.language-selector option:checked {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
}

.language-selector-arrow {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #ffffff;
    font-size: 0.7rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(120, 119, 198, 0.2);
    z-index: 1000;
    margin-top: 0.2rem; /* Reduced gap from 0.5rem to 0.2rem */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Language selector dropdown - narrower */
.language-dropdown .dropdown-content {
    min-width: 60px !important;
    width: 60px !important;
    max-width: 60px !important;
    text-align: center;
}

.language-dropdown .dropdown-content a {
    padding: 0.6rem 0.8rem;
    text-align: center;
}

/* Desktop language dropdown toggle styling */
.language-dropdown .dropdown-toggle {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    min-width: 50px;
    text-align: center;
}

.language-dropdown .dropdown-toggle:focus {
    outline: none;
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4), 0 4px 15px rgba(79, 70, 229, 0.3);
}

.language-dropdown .dropdown-toggle:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Improved hover behavior with better timing */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Add a small invisible bridge between toggle and dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.2rem;
    z-index: 999;
}

.dropdown-content a {
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
}

.dropdown-content a:focus {
    outline: none;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5);
}

.dropdown-content a:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    color: #ffffff;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 4rem 0;
    color: #e2e8f0;
}

.hero h1 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(120, 119, 198, 0.6), 0 0 60px rgba(120, 119, 198, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 1; /* Removed opacity reduction for better contrast */
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Glass Container Base */
.glass-container {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    color: #e2e8f0;
    position: relative;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

.glass-container h2 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.4);
    text-align: center;
    letter-spacing: -0.01em;
}

.glass-container h3 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.glass-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
}

.glass-container ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.glass-container li {
    margin-bottom: 0.5rem;
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
}

/* Projects Specific Styles */
.projects {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

.projects h2 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.4);
    letter-spacing: -0.01em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 2rem;
    color: #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.3), transparent);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(120, 119, 198, 0.15);
    border-color: rgba(120, 119, 198, 0.4);
}

.project-card:nth-child(2) {
    background: rgba(30, 30, 60, 0.4);
}

.project-card:nth-child(3) {
    background: rgba(30, 30, 60, 0.4);
}

.project-card h3 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.project-card p {
    opacity: 1; /* Removed opacity reduction for better contrast */
    margin-bottom: 1.5rem;
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
    line-height: 1.6;
}

.project-status {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(124, 58, 237, 0.3));
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    display: inline-block;
    color: #ffffff;
    border: 1px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    font-weight: 500;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    margin-right: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    letter-spacing: 0.3px;
}

.btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.3);
}

.btn:focus {
    outline: none;
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4), 0 6px 25px rgba(79, 70, 229, 0.3);
}

.btn:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.btn2 {
    background: rgba(165, 180, 252, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 12px;
}

.btn2:hover {
    background: rgba(165, 180, 252, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 12px;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.3);
}

.btn2:focus {
    outline: none;
    background: rgba(165, 180, 252, 0.2);
    border: 1px solid rgba(165, 180, 252, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3), 0 6px 25px rgba(79, 70, 229, 0.3);
}

.btn2:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* About Page Specific */
.about-content {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    color: #e2e8f0;
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

.about-content h2 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.4);
    letter-spacing: -0.01em;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: center;
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
}

/* Project Page Specific */
.project-content {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    color: #e2e8f0;
    position: relative;
}

.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

.project-content h2 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.4);
    letter-spacing: -0.01em;
}

.project-content h3 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.project-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
}

.project-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.project-content li {
    margin-bottom: 0.5rem;
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
}

/* Coming Soon Badge */
.coming-soon {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(124, 58, 237, 0.5));
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.coming-soon h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger:focus {
    outline: none;
    background: rgba(120, 119, 198, 0.15);
    box-shadow: 0 0 0 2px rgba(120, 119, 198, 0.5);
}

.hamburger:focus-visible {
    outline: 2px solid #7877c6;
    outline-offset: 2px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e2e8f0;
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(120, 119, 198, 0.3);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: #ffffff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: #ffffff;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(120, 119, 198, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

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

.mobile-nav-content {
    padding: 10rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mobile-nav .nav-link {
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(120, 119, 198, 0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background: rgba(120, 119, 198, 0.2);
    color: #ffffff;
    border-left: 4px solid #7c3aed;
}

.mobile-nav .nav-link:focus {
    outline: none;
    background: rgba(120, 119, 198, 0.25);
    color: #ffffff;
    border-left: 4px solid #7c3aed;
    box-shadow: inset 0 0 0 2px rgba(120, 119, 198, 0.5);
}

.mobile-nav .nav-link:focus-visible {
    outline: 2px solid #7877c6;
    outline-offset: -2px;
}

.mobile-nav .dropdown {
    position: relative;
}

.mobile-nav .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-nav .dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.mobile-nav .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-nav .dropdown-content {
    display: none;
    position: static;
    background: rgba(120, 119, 198, 0.1);
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-width: auto;
    width: 100%;
}

.mobile-nav .dropdown.active .dropdown-content {
    display: block;
}

.mobile-nav .dropdown-content a {
    padding: 0.8rem 3rem;
    border-bottom: 1px solid rgba(120, 119, 198, 0.05);
    margin: 0;
    border-radius: 0;
    font-size: 0.9rem;
}

.mobile-nav .language-dropdown {
    position: static;
    margin: 0;
    width: 100%;
    min-width: auto;
    order: 999;
}

.mobile-nav .language-dropdown .dropdown-content {
    background: rgba(120, 119, 198, 0.1) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
    position: static !important;
    border: none !important;
}

.mobile-nav .language-dropdown .dropdown-toggle {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(124, 58, 237, 0.7));
    border: none;
    border-radius: 0;
    padding: 1rem 2rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
    margin: 0;
    border-bottom: 1px solid rgba(120, 119, 198, 0.1);
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav .language-dropdown .dropdown-toggle::after {
    margin-left: 0.3rem;
    font-size: 0.6rem;
}

.mobile-nav .language-dropdown.active .dropdown-toggle {
    border-radius: 0;
    border-bottom: 1px solid rgba(120, 119, 198, 0.3);
}

.mobile-nav .language-dropdown .dropdown-content a {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.6), rgba(109, 40, 217, 0.6)) !important;
    color: #ffffff !important;
    text-align: left !important;
    padding: 0.8rem 3rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(120, 119, 198, 0.2) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
}

.mobile-nav .language-dropdown .dropdown-content a:last-child {
    border-bottom: 1px solid rgba(120, 119, 198, 0.1) !important;
    border-radius: 0 !important;
}

.mobile-nav .language-dropdown .dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(55, 48, 163, 0.8), rgba(88, 28, 135, 0.8)) !important;
    color: #ffffff !important;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-top: 50px; /* Increased from 80px for more space between nav and page title */
    }

    .hero {
        padding: 7rem 0 4rem 0; /* Increased top padding from 6rem to 7rem */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .projects,
    .about-content,
    .project-content {
        padding: 2rem;
    }

    .navbar {
        padding: 1rem 2rem;
    }

    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
    .main-content {
        padding-top: 90px; /* Slightly less than 768px breakpoint but still more than default */
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero {
        padding: 5rem 0 3rem 0; /* Increased from 4rem to 5rem for better spacing */
    }
    
    .container {
        padding: 0.75rem;
    }
    
    .projects,
    .about-content,
    .project-content {
        padding: 1.5rem;
    }
}

/* About Me Page Specific Styles */
.about-sections-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info, .education, .languages {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    margin: 0;
    position: relative;
}

.contact-info::before, .education::before, .languages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

.skills {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    margin-top: 2rem;
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

.languages {
    margin-top: 2rem; /* Add spacing between technical skills and languages */
}

.contact-info h2, .education h2, .skills h2, .languages h2, .employer-testimonials h2 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.4);
    letter-spacing: -0.01em;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(120, 119, 198, 0.15);
    background: rgba(30, 30, 60, 0.6);
    border-color: rgba(120, 119, 198, 0.4);
}

.contact-item h3 {
    font-family: 'Hey Comic', 'Comic Sans MS', cursive, 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
    letter-spacing: -0.01em;
}

.contact-item p {
    font-size: 1rem;
    opacity: 1; /* Removed opacity reduction for better contrast */
    font-weight: 500;
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
}

/* Education */
.education-item {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(120, 119, 198, 0.15);
    border-color: rgba(120, 119, 198, 0.4);
}

.education-item h3 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.3);
    letter-spacing: -0.01em;
}

.education-item .degree {
    font-size: 1.2rem;
    color: #a5b4fc;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-item .year {
    font-size: 1rem;
    color: #b1b5c3; /* Improved contrast */
    margin-bottom: 1rem;
    font-style: italic;
}

.education-item .description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 1; /* Removed opacity reduction for better contrast */
    color: #d1d5db; /* Improved contrast from #cbd5e1 */
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.skill-category {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(120, 119, 198, 0.15);
    border-color: rgba(120, 119, 198, 0.4);
}

.skill-category h3 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
    letter-spacing: -0.01em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8), rgba(124, 58, 237, 0.6));
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.9), rgba(109, 40, 217, 0.7));
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.language-item {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.language-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(120, 119, 198, 0.15);
    border-color: rgba(120, 119, 198, 0.4);
}

.language-item h3 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
    letter-spacing: -0.01em;
}

.proficiency {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.level {
    font-size: 0.9rem;
    color: #a5b4fc;
    font-weight: 600;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(130, 130, 160, 0.6);
    border-radius: 10px;
    margin-left: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

/* Experience */
.experience-item {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(120, 119, 198, 0.15);
    border-color: rgba(120, 119, 198, 0.4);
}

.experience-item h3 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.3);
    letter-spacing: -0.01em;
    font-weight: 600;
}

.experience-item .period {
    font-size: 1rem;
    color: #a5b4fc;
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-item .description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #d1d5db; /* Improved contrast */
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.interest-item {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.interest-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(120, 119, 198, 0.15);
    background: rgba(30, 30, 60, 0.6);
    border-color: rgba(120, 119, 198, 0.4);
}

.interest-item h3 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
    letter-spacing: -0.01em;
    font-weight: 600;
}

.interest-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    color: #d1d5db; /* Improved contrast */
}

/* Employer Testimonials */
.employer-testimonials {
    margin: 2rem 0 2rem 0;
    padding: 3rem 2rem;
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.employer-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

.testimonial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsive adjustments for About Me */
@media (max-width: 768px) {
    .about-sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid, .language-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info, .education, .skills, .languages {
        padding: 1.5rem;
    }
    
    .contact-info h2, .education h2, .skills h2, .languages h2, .employer-testimonials h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-tags {
        gap: 0.6rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .employer-testimonials {
        margin: 2rem 0 1rem 0;
        padding: 2rem 1rem;
    }
    
    .testimonial-tags {
        gap: 0.6rem;
    }
}

/* Disclaimer Box Styles */
.disclaimer-box {
    background: rgba(165, 180, 252, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(165, 180, 252, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.disclaimer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.5), transparent);
}

.disclaimer-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(165, 180, 252, 0.15);
    border-color: rgba(165, 180, 252, 0.4);
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #a5b4fc;
    margin-top: 0.2rem;
}

.disclaimer-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.3));
}

.disclaimer-content {
    flex: 1;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
}

.disclaimer-content strong {
    color: #a5b4fc;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

/* Responsive adjustments for disclaimer */
@media (max-width: 768px) {
    .disclaimer-box {
        padding: 1.2rem;
        margin: 1.5rem 0;
        gap: 0.8rem;
    }
    
    .disclaimer-icon {
        width: 18px;
        height: 18px;
    }
    
    .disclaimer-content {
        font-size: 0.95rem;
    }
}

/* Upload Zone Styles */
.upload-zone {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(120, 119, 198, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.4), transparent);
}

.upload-zone:hover {
    border-color: rgba(165, 180, 252, 0.5);
    background: rgba(30, 30, 60, 0.8);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(120, 119, 198, 0.1);
}

.upload-zone.drag-over {
    border-color: rgba(165, 180, 252, 0.7);
    background: rgba(165, 180, 252, 0.1);
    transform: scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(165, 180, 252, 0.2);
}

.upload-icon {
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.upload-icon svg {
    filter: drop-shadow(0 0 15px rgba(165, 180, 252, 0.3));
    transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 20px rgba(165, 180, 252, 0.4));
}

.upload-content h4 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.3);
}

.upload-content p {
    font-size: 1rem;
    color: #d1d5db; /* Improved contrast */
    margin-bottom: 1rem;
    opacity: 0.9;
}



/* File Status Styles */
.file-status {
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.file-status.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.file-status.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Responsive adjustments for upload zone */
@media (max-width: 768px) {
    .upload-zone {
        padding: 2rem 1.5rem;
        min-height: 160px;
        gap: 0.8rem;
    }
    
    .upload-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .upload-content h4 {
        font-size: 1.3rem;
    }
    
    .upload-content p {
        font-size: 0.9rem;
    }
    
    .file-status {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Video Container Styles */
.video-container {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(120, 119, 198, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.4), transparent);
}

.video-container video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.video-note {
    margin-top: 1rem;
    color: #d1d5db; /* Improved contrast */
    font-size: 0.95rem;
    opacity: 0.9;
}

.video-note a {
    color: #a5b4fc !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.video-note a:hover {
    color: #c7d2fe !important;
    text-decoration: underline !important;
}

/* Responsive adjustments for video container */
@media (max-width: 768px) {
    .video-container {
        padding: 1.5rem;
    }
    
    .video-note {
        font-size: 0.9rem;
    }
}

/* Processing Section Styles */
.processing-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.processing-section h3 {
    color: #e2e8f0;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.processing-section p {
    color: #d1d5db; /* Improved contrast */
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.distributor-selection {
    margin-bottom: 2rem;
}

.distributor-selection label {
    display: block;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.distributor-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.distributor-dropdown:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.distributor-dropdown option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem;
}

.processing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.process-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.process-btn:disabled {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.5);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 1);
    transform: translateY(-1px);
}

/* Responsive adjustments for processing section */
@media (max-width: 768px) {
    .processing-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .processing-section h3 {
        font-size: 1.2rem;
    }
    
    .distributor-dropdown {
        max-width: 100%;
    }
    
    .processing-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .process-btn,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

/* Search and Data Controls Styles */
.sorting-controls {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
}

.search-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: start;
    justify-content: space-between;
}

.sorting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.sorting-group label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
}

.search-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-category-label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.search-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db; /* Improved contrast */
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #e2e8f0;
}

.search-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.search-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: end;
    margin-left: auto;
}

.search-input {
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.search-input::placeholder {
    color: #9ca3af; /* Improved contrast from #64748b */
    font-style: italic;
}

.search-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    height: fit-content;
}

.search-status {
    color: #a5b4fc;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 6px;
    text-align: center;
}

.sort-dropdown {
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.sort-dropdown option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem;
}

.sort-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    height: fit-content;
}

.sort-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.sort-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: none;
}

.btn.sort-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn.btn-secondary.sort-btn {
    background: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.btn.btn-secondary.sort-btn:hover {
    background: rgba(71, 85, 105, 1);
    transform: translateY(-1px);
}

.btn.btn-warning.sort-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.btn.btn-warning.sort-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Button styles for search actions */
.btn.btn-secondary.search-btn {
    background: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.btn.btn-secondary.search-btn:hover {
    background: rgba(71, 85, 105, 1);
    transform: translateY(-1px);
}

.btn.btn-warning.search-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn.btn-warning.search-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Responsive adjustments for search controls */
@media (max-width: 768px) {
    .sorting-controls {
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .sorting-group {
        min-width: auto;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .search-checkboxes {
        gap: 0.75rem;
    }
    
    .search-actions {
        align-items: stretch;
        margin-left: 0;
    }
    
    .search-btn {
        width: 100%;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sorting-controls {
        padding: 0.75rem;
    }
    
    .sorting-group label,
    .search-category-label {
        font-size: 0.85rem;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
    
    .search-checkboxes {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-status {
        font-size: 0.8rem;
        margin-top: 0.25rem;
        padding: 0.4rem;
    }
}

/* CSV Table Styles */
.csv-table-container {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.csv-table-container h3 {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.csv-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.csv-table th,
.csv-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    color: #e2e8f0;
}

.csv-table th {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.csv-table tbody tr {
    transition: background-color 0.2s ease;
}

.csv-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.1);
}

.csv-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.3);
}

.csv-table tbody tr:nth-child(even):hover {
    background: rgba(79, 70, 229, 0.15);
}

.csv-table td {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Empty cell styling */
.csv-table td:empty::after {
    content: '—';
    color: #64748b;
    font-style: italic;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .csv-table-container {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .csv-table-container h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .csv-table th,
    .csv-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .csv-table th {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .csv-table th,
    .csv-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Image Carousel Styles */
.image-carousel-container {
    position: relative;
    border-radius: 12px;
    border: 2px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    max-width: 600px;
    margin: 30px auto;
}

.image-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image img {
    width: auto;
    height: 100%;
    max-width: 500px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 15, 35, 0.95)); /* Increased opacity for better contrast */
    color: #ffffff; /* Pure white for maximum contrast */
    padding: 20px 20px 15px 20px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.9; /* Always visible with high opacity instead of hidden */
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* Added text shadow for better readability */
}

.image-carousel-container:hover .carousel-image.active .carousel-caption {
    opacity: 1; /* Full opacity on hover */
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 12px;
    padding: 0.6rem;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 45px;
    height: 45px;
}

.carousel-arrow:hover {
    background: rgba(30, 41, 59, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(165, 180, 252, 0.5);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 41, 59, 0.5);
}

.carousel-arrow:focus {
    outline: none;
    background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(165, 180, 252, 0.7);
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.3), 0 6px 25px rgba(30, 41, 59, 0.5);
}

.carousel-arrow:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 3px;
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

@media (max-width: 768px) {
    .image-carousel {
        height: 200px;
    }
    
    .carousel-arrow {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
}

/* Project Overview Layout with Supervisor Contact */
.project-overview-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.overview-content {
    flex: 2;
}

.supervisor-contact-box {
    flex: 1;
    min-width: 280px;
    background: rgba(165, 180, 252, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 12px;
    margin-top: 25px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(165, 180, 252, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.supervisor-contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.5), transparent);
}

.supervisor-contact-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(165, 180, 252, 0.15);
    border-color: rgba(165, 180, 252, 0.4);
}

.contact-details h3 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.contact-info-item {
    margin-bottom: 1rem;
    text-align: center;
}

.contact-info-item h3 {
    font-family: 'Hey Comic', 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #a5b4fc;
    letter-spacing: -0.01em;
}

.contact-info-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    margin: 0;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(165, 180, 252, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
}

.contact-item-icon svg {
    filter: drop-shadow(0 0 4px rgba(165, 180, 252, 0.3));
}

.contact-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #b1b5c3; /* Improved contrast from #94a3b8 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    word-break: break-all;
}

/* Responsive adjustments for project overview */
@media (max-width: 768px) {
    .project-overview-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .supervisor-contact-box {
        min-width: auto;
        padding: 1.2rem 0.8rem;
        margin: 25px auto 0 auto; /* Center the contact box horizontally */
        max-width: 350px; /* Limit width for better mobile display */
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
    }
    
    .contact-info-item h3 {
        font-size: 1rem;
    }
    
    .contact-info-item p {
        font-size: 0.9rem;
    }
}

/* Project Detail Images */
.detail-images-container {
    display: flex;
    gap: 60px;
    margin: 20px auto;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 1000px;
}

.detail-image-wrapper {
    position: relative;
    width: 34%;
    max-width: 340px;
}

.detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(79, 70, 229, 0.25);
}

.detail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 15, 35, 0.9));
    color: white;
    padding: 20px 20px 15px 20px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0 0 10px 10px;
}

.detail-image-wrapper:hover .detail-caption {
    opacity: 1;
}

@media (max-width: 768px) {
    .detail-images-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .detail-image-wrapper {
        width: 90%;
        max-width: 400px;
    }
}

/* Classes for inline styles moved from HTML */

/* Text center utility */
.text-center {
    text-align: center;
}

/* Progress bar fill widths */
.progress-fill-100 {
    width: 100%;
}

.progress-fill-55 {
    width: 55%;
}

/* Video styling */
.video-styled {
    max-width: 800px;
    height: auto;
    border-radius: 8px;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Project 3 specific layout */
.project3-layout {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 20px auto;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 1000px;
}

.project3-gif {
    flex: 0 0 auto;
    width: 60%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project3-gif:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(79, 70, 229, 0.25);
}

.project3-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    width: 40%;
    min-width: 250px;
}

.project3-description {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.project3-btn {
    margin-right: 0;
}

.project3-disclaimer {
    font-size: 0.8em;
    color: #888;
    margin: 10px 0 0 0;
    line-height: 1.3;
}

/* Responsive adjustments for project 3 layout */
@media (max-width: 768px) {
    .project3-layout {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .project3-gif {
        width: 90%;
        max-width: 400px;
    }
    
    .project3-content {
        width: 100%;
        min-width: auto;
    }
    
    .project3-description {
        font-size: 0.9rem;
    }
    
    .project3-disclaimer {
        font-size: 0.75em;
    }
}

/* Error handling styles */
.image-error, .video-error, .carousel-error, .detail-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #f87171;
    font-weight: 500;
    font-size: 1rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.image-error {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.video-error {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.carousel-error {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
}

.detail-error {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.image-error a, .video-error a {
    color: #fecaca;
    text-decoration: underline;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.image-error a:hover, .video-error a:hover {
    color: #ffffff;
}

/* Responsive adjustments for error elements */
@media (max-width: 768px) {
    .image-error, .video-error, .carousel-error, .detail-error {
        padding: 1.5rem;
        font-size: 0.9rem;
        min-height: 150px;
    }
    
    .video-error {
        min-height: 200px;
    }
}

/* Back to Projects Button */
.back-button-container {
    text-align: right;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

/* Universal Focus Styles for Accessibility */
/* Fallback focus styles for any focusable elements without specific focus styles */
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus,
[role="button"]:focus,
[role="link"]:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Enhanced focus styles for better visibility on dark backgrounds */
*:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}
