/* Custom Styles */
body {
    font-family: 'Lexend', sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

.cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid #667eea;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor.clicked {
    transform: translate(-50%, -50%) scale(1.8);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cursor-follower.clicked {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    position: relative;
    display: inline-block;
    font-family: monospace;
}

.logo-char {
    display: inline-block;
    transition: all 0.2s ease-out;
    min-width: 0.6em;
}

.logo-char.morphing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-char.final {
    color: #1f2937;
}

.dark .animated-logo {
    color: #f1f5f9;
}

.dark .logo-char.final {
    color: #f1f5f9;
}

/* Expandable Mini Box Styles */
.mini-box {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background-color: transparent;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: auto;
}

.mini-box::before {
    content: attr(data-label) ' ';
    font-weight: 600;
    opacity: 0;
    width: 0;
    display: none;
}

.mini-box:hover {
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    border-color: #3b82f6;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.mini-box:hover::before {
    display: inline;
    opacity: 1;
    width: auto;
    margin-right: 0.3rem;
}

.dark .mini-box {
    border-color: #475569;
    color: #94a3b8;
}

.dark .mini-box:hover {
    background-color: #334155;
    border-color: #60a5fa;
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50vh;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

/* Toggle Button - Hidden by default, shown when scrolled */
.social-toggle-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    cursor: pointer;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
}

.social-toggle-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.social-toggle-btn:hover {
    background: transparent;
    color: #764ba2;
    transform: translateY(-50%) translateX(5px) scale(1.1);
    border: none;
}

/* Scrolled State - Show toggle button, hide icons */
.social-sidebar.scrolled .social-toggle-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* Social Icons Container */
.social-icons-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.social-icons-container a {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icons-container a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    border-color: transparent;
}

/* Scrolled State - Show toggle button, hide icons */
.social-sidebar.scrolled .social-toggle-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.social-sidebar.scrolled .social-icons-container {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

/* Expanded State - Show both toggle and icons when clicked while scrolled */
.social-sidebar.scrolled.expanded .social-icons-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* Hide toggle button when expanded */
.social-sidebar.scrolled.expanded .social-toggle-btn {
    opacity: 0;
    pointer-events: none;
}

.social-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
    margin-top: 16px;
}

.gmail-sidebar {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.gmail-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0.7;
    text-decoration: none;
}

.gmail-text:hover {
    opacity: 1;
    color: #667eea;
}

.gmail-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .social-sidebar {
        display: none;
    }

    .gmail-sidebar {
        display: none;
    }
}

/* Dark mode styles */
.dark {
    background-color: #0f172a;
    color: #f1f5f9;
}

.dark .bg-white {
    background-color: #1e293b;
}

.dark .bg-gray-50 {
    background-color: #0f172a;
}

.dark .bg-gray-100 {
    background-color: #334155;
}

.dark .text-gray-900 {
    color: #f1f5f9;
}

.dark .text-gray-600 {
    color: #94a3b8;
}

.dark .text-gray-700 {
    color: #cbd5e1;
}

.dark .border-gray-100 {
    border-color: #334155;
}

.dark .border-gray-200 {
    border-color: #475569;
}

.dark .border-gray-800 {
    border-color: #475569;
}

.dark .hero-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.dark .nav-blur {
    background-color: rgba(15, 23, 42, 0.8);
}

.dark .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.dark .bg-blue-100 {
    background-color: #1e40af !important;
}

.dark .text-blue-800 {
    color: #dbeafe !important;
}

.dark .bg-green-100 {
    background-color: #16a34a !important;
}

.dark .text-green-800 {
    color: #dcfce7 !important;
}

.dark .bg-orange-100 {
    background-color: #ea580c !important;
}

.dark .text-orange-800 {
    color: #fed7aa !important;
}

.dark .bg-purple-100 {
    background-color: #7c3aed !important;
}

.dark .text-purple-800 {
    color: #e9d5ff !important;
}

.dark .bg-gray-900 {
    background-color: #475569 !important;
}

.dark .hover\:text-gray-700:hover {
    color: #e2e8f0 !important;
}

.dark .hover\:text-gray-900:hover {
    color: #f1f5f9 !important;
}

.dark .focus\:ring-gray-900:focus {
    --tw-ring-color: #64748b !important;
}

.dark .text-gray-400 {
    color: #94a3b8 !important;
}

.dark .placeholder\:text-gray-500::placeholder {
    color: #64748b !important;
}

.dark .social-sidebar a {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.dark .social-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: #a78bfa !important;
    box-shadow: none !important;
}

.dark .social-toggle-btn:hover {
    color: #c4b5fd !important;
}

.dark .social-icons-container a {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* About section card fixes for dark mode */
.dark .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #334155, #475569) !important;
}

/* Trait badges dark mode fixes */
.dark .bg-gray-100 {
    background-color: #475569 !important;
}

.dark .text-gray-800 {
    color: #e2e8f0 !important;
}

.dark input,
.dark textarea {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #9ca3af !important;
}

.dark input:focus,
.dark textarea:focus {
    --tw-ring-color: #6b7280 !important;
}

/* Theme Switch Styles */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    /* further reduced */
}

.theme-switch-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    /* White background for light mode */
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for white bg */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch-label:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.theme-switch-inner {
    position: relative;
    width: 18px;
    height: 18px;
    background: transparent;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch-inner::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('../assets/Dark_Light/sun.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.theme-switch-checkbox:checked+.theme-switch-label {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.theme-switch-checkbox:checked+.theme-switch-label:hover {
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.4);
}

.theme-switch-checkbox:checked+.theme-switch-label .theme-switch-inner {
    transform: rotate(360deg);
}

.theme-switch-checkbox:checked+.theme-switch-label .theme-switch-inner::before {
    content: '';
    background-image: url('../assets/Dark_Light/night.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.typing-animation {
    border-right: 2px solid #667eea;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        border-color: transparent;
    }

    51%,
    100% {
        border-color: #667eea;
    }
}

.profile-glow {
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #667eea, #764ba2) border-box;
}

.profile-glow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 30px rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pop-in {
    opacity: 0;
    transform: scale(0.5);
}

.pop-in.visible {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}



.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.section-padding {
    padding: 120px 0;
}

.hero-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dark .hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}



/* Space-themed Skills Section Styles */


/* Animated stars for space theme */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: twinkle 3s ease-in-out infinite;
}



/* Card glow effects */
.group:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}







/* Project Card Animations */
.project-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.floating-emoji {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    top: 40%;
    left: 20%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-10px) rotate(3deg);
        opacity: 0.5;
    }
}

.project-card:hover .floating-emoji {
    animation-duration: 3s;
    opacity: 0.6;
}


/* Full-Width Skill Marquee Header */
.skills-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.marquee-container {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 2rem;
    position: relative;
    padding: 60px 0; /* Increased space for large neon box shadows and hover transforms */
    margin: -60px 0; /* Offset padding to maintain vertical layout balance */
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 2rem;
    min-width: 100%;
}

/* Animations */
.scroll-left {
    animation: scroll-left 40s linear infinite;
}

.scroll-right {
    animation: scroll-right 40s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Consolidating Skill Box Styling */


.skill-box {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    box-shadow: none; /* Removed default shadows to solve spread issue */
}

.skill-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: none;
}

.skill-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

/* Fix for PowerPoint logo visual weight */
.powerpoint-logo {
    transform: scale(1.2);
}

.skill-box:hover .powerpoint-logo {
    transform: scale(1.3);
}

.skill-box:hover .skill-logo {
    transform: scale(1.1);
}

.skill-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    letter-spacing: 0.5px;
}

.dark .skill-box, 
:root:not(.dark) .skill-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .skill-box:hover,
:root:not(.dark) .skill-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Skill Theme Customizations (Higher Specificity) */
/* Prefixing with .skill-box and using !important to ensure brand colors override general box-shadows */

.skill-box.skill-git {
    border-color: rgba(248, 113, 113, 0.6) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-git:hover {
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.6) !important;
}

.skill-box.skill-github {
    border-color: rgba(148, 163, 184, 0.7) !important;
    box-shadow: 0 0 6px rgba(148, 163, 184, 0.4) !important;
}
.skill-box.skill-github:hover {
    box-shadow: 0 0 10px rgba(191, 219, 254, 0.6) !important;
}

.skill-box.skill-pandas {
    border-color: rgba(94, 92, 255, 0.6) !important;
    box-shadow: 0 0 6px rgba(94, 92, 255, 0.4) !important;
}
.skill-box.skill-pandas:hover {
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.6) !important;
}

.skill-box.skill-python {
    border-color: rgba(252, 211, 77, 0.7) !important;
    box-shadow: 0 0 6px rgba(252, 211, 77, 0.4) !important;
}
.skill-box.skill-python:hover {
    box-shadow: 0 0 10px rgba(252, 211, 77, 0.6) !important;
}

.skill-box.skill-c {
    border-color: rgba(59, 130, 246, 0.7) !important;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4) !important;
}
.skill-box.skill-c:hover {
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6) !important;
}

.skill-box.skill-cpp {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4) !important;
}
.skill-box.skill-cpp:hover {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
}

.skill-box.skill-html {
    border-color: rgba(248, 113, 113, 0.7) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-html:hover {
    box-shadow: 0 0 10px rgba(252, 165, 165, 0.6) !important;
}

.skill-box.skill-css {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.4) !important;
}
.skill-box.skill-css:hover {
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.6) !important;
}

.skill-box.skill-js {
    border-color: rgba(250, 204, 21, 0.7) !important;
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.4) !important;
}
.skill-box.skill-js:hover {
    box-shadow: 0 0 10px rgba(250, 250, 170, 0.6) !important;
}

.skill-box.skill-mongodb {
    border-color: rgba(74, 222, 128, 0.7) !important;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4) !important;
}
.skill-box.skill-mongodb:hover {
    box-shadow: 0 0 10px rgba(187, 247, 208, 0.6) !important;
}

.skill-box.skill-nodejs {
    border-color: rgba(74, 222, 128, 0.7) !important;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4) !important;
}
.skill-box.skill-nodejs:hover {
    box-shadow: 0 0 10px rgba(187, 247, 208, 0.6) !important;
}

.skill-box.skill-docker {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4) !important;
}
.skill-box.skill-docker:hover {
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.6) !important;
}

.skill-box.skill-aws {
    border-color: rgba(251, 191, 36, 0.7) !important;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.4) !important;
}
.skill-box.skill-aws:hover {
    box-shadow: 0 0 10px rgba(254, 240, 138, 0.6) !important;
}

.skill-box.skill-kotlin {
    border-color: rgba(168, 85, 247, 0.7) !important;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.4) !important;
}
.skill-box.skill-kotlin:hover {
    box-shadow: 0 0 10px rgba(221, 214, 254, 0.6) !important;
}

.skill-box.skill-pytorch {
    border-color: rgba(248, 113, 113, 0.7) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-pytorch:hover {
    box-shadow: 0 0 10px rgba(254, 202, 202, 0.6) !important;
}

.skill-box.skill-figma {
    border-color: rgba(52, 211, 153, 0.7) !important;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.4) !important;
}
.skill-box.skill-figma:hover {
    box-shadow: 0 0 10px rgba(167, 243, 208, 0.6) !important;
}

.skill-box.skill-arduino {
    border-color: rgba(45, 212, 191, 0.7) !important;
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.4) !important;
}
.skill-box.skill-arduino:hover {
    box-shadow: 0 0 10px rgba(153, 246, 228, 0.6) !important;
}

.skill-box.skill-mysql {
    border-color: rgba(59, 130, 246, 0.7) !important;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4) !important;
}
.skill-box.skill-mysql:hover {
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.6) !important;
}

.skill-box.skill-powerpoint {
    border-color: rgba(248, 113, 113, 0.7) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-powerpoint:hover {
    box-shadow: 0 0 10px rgba(253, 164, 175, 0.6) !important;
}

.skill-box.skill-tensorflow {
    border-color: rgba(251, 146, 60, 0.7) !important;
    box-shadow: 0 0 6px rgba(251, 146, 60, 0.4) !important;
}
.skill-box.skill-tensorflow:hover {
    box-shadow: 0 0 10px rgba(254, 215, 170, 0.6) !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-gradient {
        padding-top: 100px;
    }

    .text-5xl {
        font-size: 2.5rem;
    }


    .text-6xl {
        font-size: 3rem;
    }

    .floating-emoji {
        display: none;
    }

    /* Skills Section Mobile Adjustments */
    .skill-box {
        width: 110px;
        height: 110px;
        padding: 1rem;
        gap: 0.5rem;
        border-radius: 16px;
    }

    .skill-logo {
        width: 36px;
        height: 36px;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .marquee-container {
        padding: 40px 0;
        margin: -40px 0;
        gap: 1.5rem;
    }

    .marquee-track {
        gap: 1.5rem;
    }

    /* Hide tech elements completely on mobile to prevent overlap */
    .tech-element {
        display: none !important;
    }

    .hero-tech-elements {
        display: none !important;
    }

    /* Add proper spacing for hero text on mobile */
    .hero-gradient .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Ensure proper line height and spacing */
    .hero-gradient p {
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    /* Ensure buttons and interactive elements have higher z-index on mobile */
    button,
    .btn,
    a[href],
    input,
    textarea {
        position: relative;
        z-index: 100;
    }

    /* Ensure navigation has highest z-index */
    nav {
        z-index: 1000 !important;
    }

    /* Mobile menu should be above everything */
    #mobile-menu {
        z-index: 1001 !important;
    }

}

/* Background Animation Classes */
.animate-float {
    animation: backgroundFloat 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: backgroundFloat 10s ease-in-out infinite 2s;
}

.animate-float-slow {
    animation: backgroundFloat 12s ease-in-out infinite 1s;
}


/* Floating Navigation Styles */
.floating-nav-container {
    position: fixed;
    top: 20px;
    z-index: 1000;
    pointer-events: none;
    /* transition properties for smooth animation */
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    /* Default Desktop State (Right aligned) */
    right: 30px;
    left: auto;
    transform: translateX(0);
}

.floating-nav-container.scrolled-center {
    /* Centered State */
    right: 50%;
    transform: translateX(50%);
}

.floating-nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    /* increased size as requested */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dark .floating-nav {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.nav-link-pill {
    padding: 6px 16px;
    /* standard comfortable size */
    border-radius: 9999px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: normal;
    display: flex;
    align-items: center;
}



.nav-link-pill:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.dark .nav-link-pill {
    color: #94a3b8;
}

.dark .nav-link-pill:hover {
    background-color: #334155;
    color: #f1f5f9;
}

.nav-link-active {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

.dark .nav-link-active {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.nav-link-outline {
    background-color: transparent !important;
    color: #1f2937 !important;
    border: 1px solid #1f2937;
}

.dark .nav-link-outline {
    color: #f1f5f9 !important;
    border: 1px solid #f1f5f9;
}

.nav-cta-button {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    line-height: normal;
    display: flex;
    align-items: center;
}



.nav-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .nav-cta-button {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #0f172a;
}

.nav-divider {
    height: 24px;
    width: 1px;
    background-color: #e5e7eb;
    margin: 0 8px;
}

.dark .nav-divider {
    background-color: #334155;
}

/* Dropdown Bridge - Applied to parent to persist hover across gap */
.dropdown-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    /* Cover the gap and a bit of the menu */
    background: transparent;
    z-index: 10;
}

/* Dropdown Styling & Animation */
.nav-dropdown-menu {
    z-index: 20;
    background-color: transparent !important;
    /* Transparent container */
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Space between separate boxes */
    padding-top: 10px;

    /* Base State (Closed) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;

    /* Smooth Bouncy Transition */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top right;
}

.dark .nav-dropdown-menu {
    background-color: transparent !important;
}

/* Active State (Open via JS or Hover) */
.nav-dropdown-menu.active,
.group:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown-menu {
    /* Removed absolute width reliance on utility classes */
    width: 150px !important;
    /* Force smaller width */
}

.nav-dropdown-menu a {
    color: #4b5563 !important;
    background-color: #ffffff;
    border-radius: 9999px;
    /* Pill shape for items */
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-align: center;
    padding: 6px 10px !important;
    /* Force smaller padding */
    font-size: 0.95rem;
}

.nav-dropdown-menu a:hover {
    background-color: #1f2937 !important;
    /* light black/dark gray */
    color: #ffffff !important;
    /* white text */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.dark .nav-dropdown-menu a {
    color: #e2e8f0 !important;
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .nav-dropdown-menu a:hover {
    background-color: #ffffff !important;
    /* White background on hover in dark mode */
    color: #000000 !important;
    /* Black text on hover in dark mode */
}

/* Force specific text colors for active dropdown items to match main nav style */
.nav-dropdown-menu a.nav-link-active {
    color: #ffffff !important;
}

.dark .nav-dropdown-menu a.nav-link-active {
    color: #0f172a !important;
}

/* Floating Logo */
.floating-logo {
    position: fixed;
    top: 24px;
    left: 30px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth fade and move */
}

.floating-logo.scrolled-out {
    opacity: 0;
    transform: translateX(-60px);
    /* Move left and vanish */
    pointer-events: none;
}

/* Hide original logo in nav */
.hidden-logo {
    display: none;
}

@media (max-width: 768px) {
    .floating-nav-container {
        top: 16px;
        padding: 0 16px;
        /* Reset positioning for mobile */
        left: 0;
        right: 0;
        transform: none;
        /* Disable center animation on mobile default state */
        display: flex;
        justify-content: center;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .floating-nav-container.scrolled-center {
        transform: translateX(-120%);
        opacity: 0;
        pointer-events: none;
    }

    .floating-nav {
        width: 100%;
        justify-content: space-between;
        padding: 8px 16px;
    }

    .floating-logo {
        display: none;
        /* Hide separate logo on mobile as it's likely covered or we want it in the bar */
    }

    .mobile-logo {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
    }

    .mobile-logo.scrolled-out {
        opacity: 0;
        transform: translateX(-20px);
        pointer-events: none;
    }
}

@keyframes backgroundFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-15px);
    }

    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes backgroundFloatReverse {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(15px) translateX(-10px);
    }

    50% {
        transform: translateY(25px) translateX(20px);
    }

    75% {
        transform: translateY(10px) translateX(-5px);
    }
}

/* Hero Section Background */
#home {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.dark #home {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.tech-element {
    position: absolute;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: rgba(59, 130, 246, 0.3);
    animation: modernFloat 8s ease-in-out infinite;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tech-element:nth-child(1) {
    top: 15%;
    left: 8%;
    color: rgba(59, 130, 246, 0.6);
    animation-delay: 0s;
}

.tech-element:nth-child(2) {
    top: 20%;
    right: 15%;
    color: rgba(16, 185, 129, 0.6);
    animation-delay: 2s;
}

.tech-element:nth-child(3) {
    top: 45%;
    left: 12%;
    color: rgba(245, 158, 11, 0.6);
    animation-delay: 4s;
}

.tech-element:nth-child(4) {
    bottom: 30%;
    right: 10%;
    color: rgba(139, 92, 246, 0.6);
    animation-delay: 6s;
}

.tech-element:nth-child(5) {
    bottom: 20%;
    left: 15%;
    color: rgba(236, 72, 153, 0.6);
    animation-delay: 3s;
}

.tech-element:nth-child(6) {
    top: 70%;
    right: 18%;
    color: rgba(6, 182, 212, 0.6);
    animation-delay: 5s;
}

.tech-element:nth-child(7) {
    top: 35%;
    right: 25%;
    color: rgba(168, 85, 247, 0.6);
    animation-delay: 1s;
}

.tech-element:nth-child(8) {
    top: 75%;
    left: 10%;
    color: rgba(34, 197, 94, 0.6);
    animation-delay: 7s;
}

.tech-element:nth-child(9) {
    top: 30%;
    left: 18%;
    color: rgba(249, 115, 22, 0.6);
    animation-delay: 4.5s;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

@keyframes modernFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-15px) translateX(8px) rotate(2deg);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-25px) translateX(-5px) rotate(-1deg);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-10px) translateX(12px) rotate(1deg);
        opacity: 0.85;
    }

}

/* Academic Presentation Specific Styles */
.bg-grid {
    background-size: 20px 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass-panel {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Hero Section Full Viewport Height */
main>section:first-of-type {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
}

/* Ensure sections container is positioned below viewport */
main>.space-y-32 {
    margin-top: 0;
    padding-top: 4rem;
}

/* Mobile adjustments for full viewport hero */
@media (max-width: 768px) {
    main>section:first-of-type {
        min-height: 100vh;
        height: auto;
        padding-top: 0;
    }
}

/* Sticky Project Transitions */
#project-details-container {
    position: relative;
    min-height: 400px; /* Ensure enough height for details */
    height: 100%;
    display: flex;
    align-items: center;
}

#project-details-container .project-card-container {
    padding-bottom: 5rem; /* Shift content upwards */
}

#project-visuals-container {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.project-card-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex; /* Ensure content is properly aligned */
    flex-direction: column;
    justify-content: center;
}

.project-card-container.project-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 10;
}

.project-card-container.project-hidden-up {
    opacity: 0;
    transform: translateY(-50px) scale(1.05); /* Slight scale up and move up */
    pointer-events: none;
    z-index: 5;
}

.project-card-container.project-hidden-down {
    opacity: 0;
    transform: translateY(100px) scale(0.9); /* Scale down and move down */
    pointer-events: none;
    z-index: 5;
}

/* Perspective for 3D card effect */
.perspective-1000 {
    perspective: 1000px;
}

/* Mobile Projects Section */
@media (max-width: 1024px) {
    .projects-scroll-wrapper {
        height: auto !important;
    }

    .projects-sticky-view {
        position: static !important;
        height: auto !important;
        padding: 3rem 0 !important;
        display: block !important;
    }

    .projects-sticky-view > div {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .projects-sticky-view > div > div:nth-child(2) {
        display: none !important;
    }

    .projects-sticky-view > div > div:nth-child(3) {
        grid-column: auto !important;
    }

    #project-details-container {
        min-height: auto;
        padding-bottom: 2rem;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto !important;
    }

    #project-details-container .project-card-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        display: block !important;
        padding: 1.5rem !important;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .dark #project-details-container .project-card-container {
        background: #1f2937;
        border: 1px solid #374151;
    }

    #project-details-container .project-card-container:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .dark #project-details-container .project-card-container:hover {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    }

    #project-visuals-container {
        min-height: auto;
        width: 100%;
        aspect-ratio: 16/9;
        display: none !important;
    }

    #project-details-container h3 {
        font-size: 1.5rem !important;
    }

    #project-details-container h2 {
        font-size: 2.25rem;
    }

    /* Collapse Logic */
    #project-details-container.collapsed .project-card-container:nth-child(n+4) {
        display: none !important;
    }

    /* Hide button when not collapsed */
    #project-details-container:not(.collapsed) + div #show-more-projects-btn {
        display: none !important;
    }

    /* Remove unintended box/glow from the expansion button */
    #show-more-projects-btn {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    #show-more-projects-btn:hover {
        box-shadow: none !important;
    }

    /* Description Truncation */
    .line-clamp-3-mobile {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more-btn {
        transition: all 0.2s ease;
    }

    /* Smaller Tags */
    .tech-tag {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .tech-tag img, .tech-tag span {
        width: 0.875rem !important;
        height: 0.875rem !important;
        margin-right: 0.4rem !important;
        font-size: 0.875rem !important;
    }
}

/* Certifications Carousel Styles */
.certifications-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.certifications-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
}

.certifications-title {
    text-align: center;
    margin-bottom: 4rem;
}

.certifications-carousel {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    animation: scroll-left 60s linear infinite;
    width: fit-content;
}

.certifications-carousel:hover {
    animation-play-state: paused;
}

.certifications-carousel-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.cert-card {
    flex-shrink: 0;
    width: 440px;
    height: 330px;
    border-radius: 0.125rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: white;
    border: 2px solid #d1d5db;
    text-decoration: none;
    display: block;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.cert-card:hover img {
    transform: scale(1.05);
}

.cert-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.cert-card:hover .cert-card-overlay {
    opacity: 1;
}

.cert-card-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

/* Dark Mode Styles */
.dark .cert-card {
    background: #1f2937;
    border: 2px solid #4b5563;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark .cert-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Animation for the carousel */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate carousel items for seamless loop */
.certifications-carousel {
    width: 200%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-carousel {
        gap: 1.5rem;
        animation: scroll-left 20s linear infinite;
    }

    .cert-card {
        width: 400px;
        height: 280px;
    }

    .certifications-section {
        padding: 3rem 0;
    }

    .certifications-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .certifications-title {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .certifications-carousel {
        gap: 1rem;
        animation: scroll-left 12s linear infinite;
    }

    .cert-card {
        width: 310px;
        height: 220px;
    }

    .certifications-section {
        padding: 2rem 0;
    }
}
