/* Custom styles for portfolio website */

/* Base styles */
:root {
    /* Primary Colors - Light mode: Orange */
    --primary: #f97316; /* Orange for light mode */
    --primary-dark: #ea580c; /* Darker orange */
    --primary-light: #fb923c; /* Lighter orange */
    
    /* Secondary Colors - Light mode: Red-Orange */
    --secondary: #ef4444; /* Red for light mode */
    --secondary-dark: #dc2626; /* Darker red */
    --secondary-light: #f87171; /* Lighter red */
    
    /* Grays */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Backgrounds */
    --bg-light: #ffffff;
    --bg-dark: #0f0a1e; /* Deep purple-blue background instead of pure black */
    --bg-card-light: #ffffff;
    --bg-card-dark: #1e1433; /* Slightly lighter purple-blue for cards */
    
    /* Text Colors */
    --text-light: #212529;
    --text-dark: #f8f9fa;
    --text-muted-light: #6c757d;
    --text-muted-dark: #9ca3af;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--primary-light));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Dark mode color overrides */
.dark {
    --primary: #4f46e5; /* Indigo for dark mode */
    --primary-dark: #3730a3; /* Darker indigo */
    --primary-light: #6366f1; /* Lighter indigo */
    
    --secondary: #8b5cf6; /* Purple for dark mode */
    --secondary-dark: #7c3aed; /* Darker purple */
    --secondary-light: #a78bfa; /* Lighter purple */
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #f97316, #ef4444); /* Orange to red gradient for light mode */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 700;
    filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.3));
}

.dark .gradient-text {
    background: linear-gradient(45deg, #4f46e5, #8b5cf6); /* Indigo to purple gradient for dark mode */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.dark .gradient-text {
    background: linear-gradient(135deg, #6d28d9, #c026d3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Transitions for theme switching */
body, a, button {
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* Navigation link styles */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navigation Toggle Button */
.nav-toggle {
    position: relative;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 60;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Full-screen Navigation Popup */
.nav-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    z-index: 100 !important;
}

.dark .nav-popup {
    background-color: #0f0a1e; /* Deep purple-blue background instead of pure black */
}

.nav-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-popup-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
    transition: transform 0.3s ease;
}

.dark .nav-popup-close {
    color: #f8f9fa;
}

/* Social Links */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: #fff;
}

.dark .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-light);
}

.dark .social-link:hover {
    background-color: var(--secondary);
    color: #fff;
}

.nav-popup-close:hover {
    transform: rotate(90deg);
}

.nav-popup-content {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.nav-popup-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 2rem 0;
}

.nav-popup-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    line-height: 1.2;
}

.dark .nav-popup-link {
    color: #f8f9fa;
}

.nav-popup-link:hover {
    color: var(--primary); /* Orange in light mode */
}

.dark .nav-popup-link:hover {
    color: var(--secondary); /* Purple in dark mode */
}

.nav-popup-footer {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    font-size: 0.875rem;
    color: #6B7280;
}

.dark .nav-popup-footer {
    color: #9CA3AF;
}

@media (max-width: 768px) {
    .nav-popup-link {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .nav-popup-link {
        font-size: 2.5rem;
    }
    
    .nav-popup-close {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* Magnetic effect for buttons and links */
.magnetic {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

/* Project card styles */
.project-card {
    background-color: var(--bg-card-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark .project-card {
    background-color: #1a1a1a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.project-card .content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.dark .project-card h3 {
    color: var(--text-dark);
}

.project-card p {
    margin-bottom: 1rem;
    color: var(--text-muted-light);
    flex: 1;
}

.dark .project-card p {
    color: var(--text-muted-dark);
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-card .tag {
    background-color: var(--gray-200);
    color: var(--text-muted-light);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.dark .project-card .tag {
    background-color: #2a2a2a;
    color: var(--text-muted-dark);
}

.project-card .links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-card .link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.dark .project-card .link {
    color: var(--secondary);
}

.project-card .link:hover {
    color: var(--secondary-dark);
}

.dark .project-card .link:hover {
    color: var(--secondary-dark);
}

/* Category filter buttons */
.category-button {
    background-color: transparent;
    border: 1px solid var(--gray-200);
    color: var(--text-muted-light);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dark .category-button {
    border-color: #2a2a2a;
    color: var(--text-muted-dark);
}

.category-button.active {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.category-button:hover:not(.active) {
    border-color: var(--secondary);
    color: var(--secondary);
}

.dark .category-button:hover:not(.active) {
    border-color: var(--secondary);
    color: var(--secondary);
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Project grid layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--secondary);
    z-index: 1000;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .nav-popup-link {
        font-size: 2rem;
    }
    
    .nav-popup-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* Split text animation */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.split-text.revealed .char {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax background */
.parallax-bg {
    will-change: transform;
}

/* Tilt effect */
.tilt {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-inner {
    transform: translateZ(20px);
}

/* Project carousel */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.dark .carousel-control {
    background-color: rgba(31, 41, 55, 0.8);
    color: white;
}

/* About section styles */
#about {
    position: relative;
    overflow: hidden;
}

#about .container {
    position: relative;
    z-index: 10;
}

#about h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

#about h2 span {
    font-weight: 400;
}

.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 0.5fr 1.5fr;
    }
}

.profile-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-card-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    margin: 0 auto;
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.dark .profile-card {
    background-color: #1e1433;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.dark .profile-card:hover {
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.4);
}

.profile-image-container {
    position: relative;
    aspect-ratio: 4/5;
    background-color: var(--gray-200);
    overflow: hidden;
    max-height: 400px;
}

.dark .profile-image-container {
    background-color: #2a2a2a;
}

.available-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    z-index: 20;
    border: 1px solid rgba(249, 115, 22, 0.5);
}

.dark .available-badge {
    border: 1px solid rgba(147, 51, 234, 0.5);
    background-color: rgba(30, 20, 51, 0.8);
}

.available-badge span {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.dark .available-badge span {
    background-color: #9333ea;
}

.profile-info {
    padding: 1.5rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-muted-light);
    margin-bottom: 1.5rem;
}

.dark .profile-info p {
    color: var(--text-muted-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-200);
    color: var(--gray-700);
    transition: all 0.2s ease;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.dark .social-link {
    background-color: #1e1433;
    color: #d1d5db;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

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

.dark .social-link:hover {
    background-color: #9333ea;
    color: white;
}

.connect-button {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    text-align: center;
    background-color: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.dark .connect-button {
    background-color: #9333ea;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.connect-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.dark .connect-button:hover {
    background-color: #7e22ce;
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.info-card {
    background-color: var(--bg-card-light);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(249, 115, 22, 0.1);
    transition: all 0.3s ease;
}

.dark .info-card {
    background-color: #1e1433;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
}

.dark .info-card:hover {
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
}

.info-card p {
    line-height: 1.8;
    color: var(--text-muted-light);
}

.dark .info-card p {
    color: #a5b4fc;
}

.info-card h3 {
    background: linear-gradient(90deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 100%;
    overflow: visible;
    word-break: keep-all;
    white-space: nowrap;
}

.biography-title {
    font-size: 3.5rem !important;
    letter-spacing: -0.02em;
}

.biography-text {
    line-height: 1.8;
}

.keyword {
    color: #f97316;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.dark .keyword {
    color: #a855f7;
    font-weight: 600;
}

.keyword:hover {
    color: #ea580c;
    transform: translateY(-1px);
}

.dark .keyword:hover {
    color: #8b5cf6;
}

.dark .info-card h3 {
    background: linear-gradient(90deg, #9333ea, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--primary-dark);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
    transition: all 0.2s ease;
}

.dark .skill-tag {
    background-color: rgba(147, 51, 234, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.skill-tag:hover {
    background-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.dark .skill-tag:hover {
    background-color: rgba(147, 51, 234, 0.2);
}

.experience-grid {
    display: grid;
    gap: 1.5rem;
}

.experience-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.experience-role {
    font-weight: 500;
}

.experience-company {
    color: var(--text-muted-light);
}

.dark .experience-company {
    color: var(--text-muted-dark);
}

.experience-year {
    text-align: right;
    color: var(--text-muted-light);
}

.dark .experience-year {
    color: var(--text-muted-dark);
}

/* Large section headings */
.section-heading {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(249, 115, 22, 0.08); /* Orange color with low opacity for light mode */
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 2;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
    overflow: hidden;
}

.dark .section-heading {
    color: rgba(139, 92, 246, 0.08); /* Purple color with low opacity */
}

.section-heading-container {
    position: relative;
    margin-bottom: 3rem;
}

.section-heading-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.dark .section-title {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--primary-light);
    max-width: 600px;
    margin: 0 auto;
}

.dark .section-subtitle {
    color: var(--secondary-light);
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Skills Marquee Styles */
.skills-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
    padding: 1.5rem 0;
    background: transparent;
}

.dark .skills-marquee-container {
    background: transparent;
}

.skills-marquee {
    display: flex;
    position: relative;
    width: max-content;
    padding: 1rem 0;
}

.skills-marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    padding-right: 4rem;
}

.skills-marquee-1 .skills-marquee-content {
    animation-duration: 35s;
}

.skills-marquee-2 .skills-marquee-content {
    animation-duration: 40s;
    animation-direction: reverse;
}

.skill-item {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin: 0 1rem;
    background-color: white;
    color: var(--primary-dark);
    border-radius: 9999px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.1);
}

.dark .skill-item {
    background-color: #1e1433;
    color: #a5b4fc;
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 2px 10px rgba(147, 51, 234, 0.1);
    border-color: #2a2a2a;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .skills-marquee-1 .skills-marquee-content {
        animation-duration: 20s;
    }
    
    .skills-marquee-2 .skills-marquee-content {
        animation-duration: 15s;
    }
}

/* Digital Holographic Skull Styles */
.skull-container {
    filter: drop-shadow(0 0 15px rgba(230, 57, 70, 0.3));
    transform-origin: center;
    animation: skull-float 6s ease-in-out infinite;
    position: relative;
}

@keyframes skull-float {
    0%, 100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-55%) translateX(-5px) rotate(-2deg);
    }
    75% {
        transform: translateY(-45%) translateX(5px) rotate(2deg);
    }
}

.skull-base {
    filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.5));
}

.eye-socket {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

.eye-glow {
    filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.8));
    animation: eye-pulse 3s ease-in-out infinite alternate;
}

@keyframes eye-pulse {
    0% {
        opacity: 0.7;
        filter: drop-shadow(0 0 5px rgba(230, 57, 70, 0.5));
    }
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(230, 57, 70, 0.9));
    }
}

.digital-grid {
    animation: grid-flicker 4s linear infinite;
}

@keyframes grid-flicker {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
    75% { opacity: 0.1; }
}

.glitch-line {
    animation: glitch-line-move 3s ease-in-out infinite;
    stroke-dasharray: 5;
    stroke-dashoffset: 0;
}

@keyframes glitch-line-move {
    0% { stroke-dashoffset: 0; opacity: 0.3; }
    50% { stroke-dashoffset: 10; opacity: 0.8; }
    100% { stroke-dashoffset: 0; opacity: 0.3; }
}

.digital-detail {
    filter: drop-shadow(0 0 3px rgba(230, 57, 70, 0.6));
    animation: digital-detail-pulse 4s ease-in-out infinite alternate;
    stroke-dasharray: 10;
    stroke-dashoffset: 0;
}

@keyframes digital-detail-pulse {
    0% {
        opacity: 0.6;
        stroke-width: 0.5;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: 1;
        stroke-width: 1;
        stroke-dashoffset: 10;
    }
}

.jaw, .teeth {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.digital-particles {
    pointer-events: none;
    overflow: hidden;
}

/* Fix for horizontal scrolling */
body, html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Project card hover effects */
.group.aspect-square, .group.aspect-\[4\/5\] {
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.dark .group.aspect-square, .dark .group.aspect-\[4\/5\] {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.group.aspect-square:hover, .group.aspect-\[4\/5\]:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.dark .group.aspect-square:hover, .dark .group.aspect-\[4\/5\]:hover {
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.4);
}

section {
    overflow: hidden;
}

/* Hero section with digital skull background */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Pure black background overlay for hero section */
section.min-h-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Update gradient text for better visibility on dark background */
.gradient-text {
    background: linear-gradient(45deg, #e63946, #ff914d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 700;
    filter: drop-shadow(0 2px 4px rgba(230, 57, 70, 0.3));
}

/* Fluid Animation container */
#fluid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through */
    overflow: hidden;
    contain: layout size;
    mix-blend-mode: screen; /* Better blending with background */
}

#fluid-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure hero content is above the 3D skull */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Background for hero section */
section.min-h-screen {
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Creates a new stacking context */
}

/* Dark mode background */
.dark section.min-h-screen {
    background-color: #000000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1));
}

/* Light mode background */
html:not(.dark) section.min-h-screen {
    background-color: #ffffff;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
}

/* Hero fluid container specific styling */
.hero-fluid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    contain: layout size paint; /* Improve performance and containment */
}

/* Ensure navigation is completely separate from hero section */
nav.fixed, 
.nav-popup {
    isolation: isolate; /* Creates a separate stacking context */
}

/* Ensure navigation toggle is clickable */
.nav-toggle {
    position: relative;
    z-index: 55;
}

/* Hero Section Styles */
.min-h-screen {
    min-height: 100vh;
}

.hero-fluid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1 !important; /* Force visibility */
    display: block !important; /* Ensure it's displayed */
}

/* Make the fluid container interactive */
#fluid-container {
    pointer-events: auto;
    cursor: pointer;
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Dark mode specific hero styles */
.dark .min-h-screen {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    background-color: #000000;
}

/* Light mode specific hero styles */
html:not(.dark) .min-h-screen {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
    background-color: #000000;
}

html:not(.dark) .hero-content h1,
html:not(.dark) .hero-content p {
    color: #333;
}

html:not(.dark) .btn-secondary {
    border-color: #333;
    color: #333;
}

html:not(.dark) .btn-secondary:hover {
    background-color: #333;
    color: white;
}

.hero-fluid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Make the fluid container interactive */
#fluid-container {
    pointer-events: auto;
    cursor: pointer;
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Ensure the fluid container doesn't affect navigation */
.hero-fluid-container {
    pointer-events: none;
}

#fluid-container {
    pointer-events: auto;
}

/* Tech badge styles */
.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.tech-badge .tech-icon {
    width: 1rem;
    height: 1rem;
}

.tech-badge.react {
    background-color: #61dafb;
    color: #282c34;
}

.tech-badge.node {
    background-color: #68a063;
    color: white;
}

.tech-badge.mongo {
    background-color: #4DB33D;
    color: white;
}

.tech-badge.typescript {
    background-color: #3178c6;
    color: white;
}

.tech-badge.tailwind {
    background-color: #06b6d4;
    color: white;
}

.dark .tech-badge.react {
    background-color: #61dafb;
    color: #282c34;
}

.dark .tech-badge.node {
    background-color: #68a063;
    color: white;
}

.dark .tech-badge.mongo {
    background-color: #4DB33D;
    color: white;
}

.dark .tech-badge.typescript {
    background-color: #3178c6;
    color: white;
}

.dark .tech-badge.tailwind {
    background-color: #06b6d4;
    color: white;
}

/* Chatbot styles */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.dark .typing-dots span {
    background-color: #9ca3af;
}

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

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

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

/* Notification styles */
.notification {
    transition: opacity 0.3s ease;
}

.notification.opacity-0 {
    opacity: 0;
}

/* Chat container styles */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}

.dark #chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(75, 85, 99, 0.5);
}

/* Biography section styles */
.biography-content {
    transition: all 0.5s ease;
    overflow: hidden;
    max-height: none; /* No height restriction on all screens by default */
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .biography-content {
        max-height: 2000px; /* Large enough for expanded state */
    }
    
    .biography-collapsed {
        max-height: 100px !important; /* Smaller height on mobile when collapsed */
        position: relative;
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    }
    
    /* Make the button visible ONLY on mobile */
    .read-more-btn {
        display: inline-block;
    }
}

/* Desktop-specific styles */
@media (min-width: 768px) {
    .biography-collapsed {
        /* No collapse effect on desktop */
        max-height: none !important;
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    /* Hide the button on desktop */
    .read-more-btn {
        display: none !important;
    }
}

/* Button styling (only applies when button is visible) */
.read-more-btn {
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.dark .read-more-btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark .read-more-btn:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}
/* Keyframe animations */
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, 25px) rotate(-3deg); }
  66% { transform: translate(20px, -20px) rotate(3deg); }
}

@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-down {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    transform: translateY(16px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-particle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

/* Animation classes */
.animate-float {
  animation: float 20s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 25s ease-in-out infinite;
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 8s ease infinite;
}

.animate-fade-in-down {
  animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
  opacity: 0;
}

.animate-scroll-down {
  animation: scroll-down 2s ease-in-out infinite;
}

.animate-draw-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 2s ease-out 0.5s forwards;
}

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

.particle:nth-child(2) {
  animation-delay: 0.5s;
}

.particle:nth-child(3) {
  animation-delay: 1s;
}

.particle:nth-child(4) {
  animation-delay: 1.5s;
}

.particle:nth-child(5) {
  animation-delay: 2s;
}

/* Animation delays */
.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}