:root {
    --primary-color: #B026FF;
    --secondary-color: #008080;
    --panel-bg: rgba(20, 12, 25, 0.95);
    --text-color: #E0E0E0;
    --neon-glow: 0 0 10px rgba(176, 38, 255, 0.3);
    --teal-glow: 0 0 10px rgba(0, 128, 128, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, 
        #1a1320,  /* Slightly darker purple */
        #140f1a,  /* Even darker purple */
        #0a0a0a   /* Almost black */
    );
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

section {
    min-height: auto;
    padding: 80px 40px 40px 240px;
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    margin-bottom: 0;
}

body::before {
    content: '';
    position: fixed;
    left: 200px;
    top: 0;
    width: calc(100% - 200px);
    height: 100vh;
    background: var(--panel-bg);
    z-index: -1;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
    border-left: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

section::before {
    display: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    color: var(--bg-color);
    background-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.2);
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.05);
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

textarea {
    min-height: 150px;
}

nav {
    position: fixed;
    z-index: 1000;
    background: linear-gradient(
        180deg,
        rgba(26, 19, 32, 0.95),
        rgba(20, 15, 26, 0.98)
    );
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(176, 38, 255, 0.1);
}

nav ul {
    background: transparent;
    list-style: none;
    width: 100%;
    padding: 0;
    margin-top: 160px;
}

nav ul li {
    background: transparent;
    margin: 15px 0;
    padding: 5px 15px;
    width: 100%;
    position: relative;
}

nav ul li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 4px 0;
}

nav ul li a i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    transition: all 0.3s ease;
}

nav ul li a::before {
    display: none;
}

nav ul li a.active {
    color: var(--primary-color);
    background: rgba(176, 38, 255, 0.1);
    border: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.2),
        inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}

nav ul li a:hover {
    color: #fff;
    background: linear-gradient(
        90deg,
        rgba(176, 38, 255, 0.1),
        rgba(176, 38, 255, 0.05)
    );
    transform: translateX(5px);
    box-shadow: 
        0 0 20px rgba(176, 38, 255, 0.1),
        inset 0 0 20px rgba(176, 38, 255, 0.05);
}

nav ul li a:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

nav ul li a {
    transition: all 0.3s ease;
}

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
}

#hero h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#hero h2 {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

#hero p {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.timeline {
    padding: 20px 0;
    max-width: 900px;
}

.experience-item {
    background: linear-gradient(145deg, 
        rgba(31, 22, 41, 0.3),  /* Matching the body gradient */
        rgba(23, 19, 32, 0.2)   /* Slightly lighter */
    );
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 204, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    will-change: transform;
}

.experience-item:hover {
    background: linear-gradient(145deg, 
        rgba(31, 22, 41, 0.5),
        rgba(23, 19, 32, 0.4)
    );
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    border-color: rgba(255, 0, 204, 0.3);
    transform: translateY(-8px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.experience-item:hover .experience-details {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}

.company-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(1) grayscale(0%);
}

.company-logo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.company-details {
    display: flex;
    flex-direction: column;
}

.experience-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.role-title {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.sub-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.experience-year {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.experience-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.responsibilities {
    list-style: none;
}

.responsibilities li {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.responsibilities li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

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

#experience h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

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

/* Responsive improvements */
@media (max-width: 768px) {
    nav {
        position: fixed;
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 60px;
        padding: 0;
        flex-direction: row;
        justify-content: center;
        background: rgba(26, 19, 32, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(176, 38, 255, 0.2);
        z-index: 1000;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        margin: 0;
        padding: 0 10px;
        width: 100%;
        height: 100%;
    }

    nav ul li {
        margin: 0;
        padding: 0;
        height: 100%;
    }

    nav ul li a {
        padding: 0 15px;
        height: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }

    /* Hide text labels on mobile, show only icons */
    nav ul li a span {
        display: none;
    }

    nav ul li a i {
        margin: 0;
        width: 24px;
        height: 24px;
    }

    /* Hide the nav logo and title on mobile */
    .nav-logo, .nav-title {
        display: none;
    }

    /* Hide submenu on mobile */
    .submenu {
        display: none;
    }

    /* Adjust section padding for mobile */
    section {
        padding: 60px 20px 80px 20px;
        margin: 0;
    }

    /* Remove the body::before background adjustment */
    body::before {
        left: 0;
        width: 100%;
    }

    /* Adjust services layout for mobile */
    .services-container {
        flex-direction: column;
    }

    .services-preview {
        display: none; /* Hide the preview image on mobile */
    }

    .services-list {
        width: 100%;
    }

    /* Adjust portfolio items for mobile */
    .portfolio-item {
        min-height: 300px;
    }

    .portfolio-image {
        padding: 10px;
    }

    /* Adjust experience items for mobile */
    .experience-item {
        padding: 15px;
    }

    .company-info {
        flex-direction: column;
        gap: 10px;
    }

    .experience-year {
        font-size: 0.9rem;
    }

    /* Adjust pricing section for mobile */
    .pricing-container {
        padding: 10px;
    }

    .price-item {
        padding: 15px;
    }

    /* Adjust contact form for mobile */
    #contactForm {
        padding: 20px;
    }

    /* Adjust media viewer controls for mobile */
    .viewer-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-button {
        width: 40px;
        height: 60px;
    }

    .close-viewer {
        top: 10px;
        right: 10px;
    }

    /* Fix hero section spacing on mobile */
    #hero {
        padding-top: 60px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

    /* Adjust CTA buttons for mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Adjust links container for mobile */
    .links-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Fix image viewer for mobile */
    .media-viewer-content {
        width: 100%;
        height: 100%;
    }

    .zoom-level, .image-counter {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}

/* Add smooth scrolling offset for mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }

    /* Ensure content doesn't get hidden behind bottom nav */
    body {
        padding-bottom: 60px;
    }
}

/* Fix portfolio grid on mobile */
@media (max-width: 768px) {
    .portfolio-grid {
        padding: 10px;
    }

    .portfolio-category {
        margin-bottom: 20px;
    }

    .portfolio-category h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

.company-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.submenu {
    position: absolute;
    left: 180px;
    top: -10px;
    background: var(--panel-bg);
    padding: 15px;
    border-radius: 12px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 204, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

nav ul li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    margin: 12px 0;
}

.submenu a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 8px 15px;
    display: block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.submenu a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Add these styles for the portfolio section */
.portfolio-category {
    padding-top: 40px;
    margin-bottom: 40px;
}

.portfolio-category:first-child {
    padding-top: 0;
}

.portfolio-category h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(26, 19, 32, 0.3);
    border: 1px solid rgba(176, 38, 255, 0.1);
    border-radius: 15px;
}

.portfolio-item {
    width: 100%;
    max-width: 700px; /* Adjust based on your needs */
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 19, 32, 0.5);
    border: 1px solid rgba(176, 38, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.portfolio-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

/* Add hover effects */
.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(176, 38, 255, 0.2),
        inset 0 0 30px rgba(176, 38, 255, 0.15);
    border-color: rgba(176, 38, 255, 0.4);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Remove all hover effects and overlays */
.portfolio-item:hover {
    transform: none;
    box-shadow: none;
}

.portfolio-item:hover .portfolio-image {
    transform: none;
}

/* Remove overlay styles */
.portfolio-overlay {
    display: none;
}

/* Remove any backdrop filters */
.portfolio-grid,
.portfolio-item {
    backdrop-filter: none;
}

/* Debug outline to see container boundaries */
.portfolio-item {
    box-shadow: inset 0 0 0 1px rgba(176, 38, 255, 0.3);
}

/* Add responsive fixes for the submenu on mobile */
@media (max-width: 768px) {
    .submenu {
        left: 50%;
        bottom: 100%;
        top: auto;
        transform: translateX(-50%);
        margin-bottom: 10px;
    }

    nav ul li:hover .submenu {
        transform: translateX(-50%);
    }
}

/* Add these styles for the updated about section */
.collaborations {
    margin: 2rem 0;
}

.collaborations h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.collab-list {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.social-links {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .collab-list {
        font-size: 0.9rem;
    }
    
    #hero p {
        font-size: 0.95rem;
    }
}

/* Add these styles for the Other Links section */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.link-card {
    background: linear-gradient(145deg, 
        rgba(31, 22, 41, 0.3),  /* Matching the body gradient */
        rgba(23, 19, 32, 0.2)   /* Slightly lighter */
    );
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(255, 0, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.link-card:hover {
    background: linear-gradient(145deg, 
        rgba(31, 22, 41, 0.5),
        rgba(23, 19, 32, 0.4)
    );
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.link-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.link-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Remove the submenu from Experience section */
nav ul li:nth-child(3) .submenu {
    display: none;
}

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

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation for experience items */
.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }
/* ... and so on */

/* Update any remaining magenta colors to cyan */
.link-card h3,
.experience-title,
.collaborations h3,
.portfolio-category h3 {
    color: var(--primary-color);
}

/* Add subtle gradient to background */
body {
    background: linear-gradient(135deg, 
        #1a1320,
        #140f1a,
        #0a0a0a
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    body::before {
        width: 90%;
        min-width: 320px;
    }

    nav {
        left: 20px;
    }
}

@media (max-width: 768px) {
    body::before {
        width: 100%;
        border-radius: 0;
    }

    section {
        padding: 60px 20px 100px 20px;
    }

    nav {
        position: fixed;
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
        padding: 15px 0;
        flex-direction: row;
        border-radius: 20px 20px 0 0;
    }
}

/* Enhanced background with subtle pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(26, 19, 32, 0.95), rgba(20, 15, 26, 0.95)),
        repeating-linear-gradient(
            45deg,
            rgba(176, 38, 255, 0.05) 0px,
            rgba(176, 38, 255, 0.05) 1px,
            transparent 1px,
            transparent 10px
        );
    z-index: -2;
    pointer-events: none;
}

/* Enhanced button styling */
.btn {
    background: linear-gradient(
        45deg,
        rgba(176, 38, 255, 0.1),
        rgba(0, 128, 128, 0.1)
    );
    border: 1px solid var(--primary-color);
    box-shadow: var(--neon-glow);
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: var(--primary-color);
    box-shadow: 
        0 0 20px rgba(176, 38, 255, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Enhanced card styling */
.experience-item {
    background: linear-gradient(
        135deg,
        rgba(26, 19, 32, 0.8),
        rgba(20, 15, 26, 0.9)
    );
    border: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(176, 38, 255, 0.05);
    backdrop-filter: blur(10px);
}

.experience-item:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(176, 38, 255, 0.1),
        0 0 15px rgba(176, 38, 255, 0.2);
    transform: translateY(-5px) scale(1.01);
}

/* Enhanced navigation styling */
nav {
    background: linear-gradient(
        90deg,
        rgba(20, 12, 25, 0.98),
        rgba(26, 19, 32, 0.95)
    );
    border-right: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

nav ul li a {
    position: relative;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::before,
nav ul li a.active::before {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    background: transparent;
}

/* Enhanced submenu styling */
.submenu {
    background: linear-gradient(
        135deg,
        rgba(26, 19, 32, 0.95),
        rgba(20, 15, 26, 0.98)
    );
    border: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(176, 38, 255, 0.1);
}

.submenu a:hover {
    background: linear-gradient(
        45deg,
        rgba(176, 38, 255, 0.1),
        rgba(0, 128, 128, 0.1)
    );
    box-shadow: inset 0 0 10px rgba(176, 38, 255, 0.1);
}

/* Enhanced section headings */
h1, h2, h3 {
    position: relative;
    display: inline-block;
}

h1::after,
h2::after,
h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

h1:hover::after,
h2:hover::after,
h3:hover::after {
    transform: scaleX(1);
}

/* Enhanced form inputs */
input, textarea {
    background: rgba(26, 19, 32, 0.6);
    border: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(176, 38, 255, 0.2);
}

/* Add smooth parallax effect */
.portfolio-category {
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.portfolio-category:hover {
    transform: translateZ(50px);
}

/* Enhanced animations */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add subtle hover transitions */
.experience-item,
.link-card,
.btn,
nav ul li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Contact Section Styling */
#contact {
    position: relative;
}

#contact h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info {
    background: linear-gradient(
        135deg,
        rgba(26, 19, 32, 0.8),
        rgba(20, 15, 26, 0.9)
    );
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-info p {
    margin: 15px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.email-info:hover,
.discord-info:hover {
    color: var(--primary-color);
}

.email-info:hover .contact-icon,
.discord-info:hover .contact-icon {
    transform: scale(1.1);
}

.contact-info p span {
    transition: all 0.3s ease;
}

.contact-info p:hover span {
    color: var(--primary-color);
}

/* Form styling */
#contactForm {
    background: linear-gradient(
        135deg,
        rgba(26, 19, 32, 0.8),
        rgba(20, 15, 26, 0.9)
    );
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(176, 38, 255, 0.05);
    backdrop-filter: blur(10px);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(26, 19, 32, 0.6);
    border: 2px solid rgba(176, 38, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 15px rgba(176, 38, 255, 0.2),
        inset 0 0 10px rgba(176, 38, 255, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
    transform: translateX(-10px);
}

/* Submit button styling */
#contactForm .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

#contactForm .btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 20px rgba(176, 38, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Loading state */
#contactForm .btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(26, 19, 32, 0.95),
        rgba(20, 15, 26, 0.98)
    );
    border: 1px solid rgba(176, 38, 255, 0.3);
    color: var(--text-color);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(176, 38, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: rgba(0, 255, 128, 0.3);
}

.notification.error {
    border-color: rgba(255, 0, 0, 0.3);
}

/* Form animations */
@keyframes inputFocus {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.form-group input:focus,
.form-group textarea:focus {
    background: linear-gradient(
        90deg,
        rgba(26, 19, 32, 0.6),
        rgba(20, 15, 26, 0.6)
    );
    background-size: 200% 100%;
    animation: inputFocus 2s ease infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contactForm {
        padding: 20px;
    }

    .notification {
        bottom: 70px; /* Account for mobile nav */
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

/* Update the link icon styles */
.link-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.link-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    filter: brightness(1) grayscale(0%); /* Reset to original colors */
}

.link-card:hover .link-icon {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 8px var(--primary-color));
}

.link-card:hover h3 {
    color: var(--primary-color);
}

/* Remove individual icon filters */
.link-card:hover .link-icon[alt="Discord"],
.link-card:hover .link-icon[alt="MCModels"],
.link-card:hover .link-icon[alt="Sketchfab"],
.link-card:hover .link-icon[alt="Twitter"] {
    filter: brightness(1.2) drop-shadow(0 0 8px var(--primary-color));
}

.experience-item:hover .company-logo {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.experience-item:hover .company-logo img {
    opacity: 0.9;
}

/* Update company logo styling */
.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(1) grayscale(0%);
}

/* Apply the same hover effect as Other Links */
.experience-item:hover .company-logo img {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 8px var(--primary-color));
}

/* Remove the border since we want to focus on the glow effect */
.company-logo {
    border: none;
}

.experience-item:hover .company-logo {
    transform: none;
    border: none;
    box-shadow: none;
}

/* Update nav logo styles */
.nav-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 19, 32, 0.8);
    border: 1px solid rgba(176, 38, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    transform-origin: center;
    transition: all 0.3s ease;
}

/* Create a separate element for the text */
.nav-title {
    position: absolute;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    color: #B026FF;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
    white-space: nowrap;
}

/* Hover effects */
.nav-logo:hover {
    transform: translate(-50%, -5px);
}

.nav-logo:hover img {
    transform: scale(1.2);
    filter: brightness(1.2) drop-shadow(0 0 8px var(--primary-color));
}

.nav-logo:hover + .nav-title {
    color: #c359ff;
    text-shadow: 0 0 15px rgba(176, 38, 255, 0.5);
}

/* Add footer styles */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Base animation states */
.animate-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: 
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--stagger-delay, 0s);
}

/* Enhanced menu interactions */
nav ul li a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
}

nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease, top 0.3s ease;
}

nav ul li a.active::before {
    height: 100%;
    top: 0;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    background: transparent;
}

/* Stagger animations for grouped elements */
.experience-item,
.portfolio-grid > * {
    opacity: 0;
    transform: translateY(20px);
}

.experience-item.animate-in,
.portfolio-grid > *.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects for menu items */
nav ul li {
    position: relative;
    overflow: hidden;
}

nav ul li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

nav ul li:hover::after {
    transform: translateX(100%);
}

/* Submenu animations */
.submenu {
    transform: translateX(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li:hover .submenu {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    nav ul li a::before {
        width: 100%;
        height: 2px;
        bottom: 0;
        top: auto;
    }

    nav ul li a:hover {
        transform: translateY(-2px);
    }
}

/* Particle.js container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

/* Ensure the particles container is behind other content but visible */
body::before {
    z-index: -2;
}

/* Progress indicator */
.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

nav ul li a.active .progress-bar {
    transform: scaleY(1);
}

/* Badge styles */
.badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Tooltip styles */
.tippy-box {
    background-color: rgba(26, 19, 32, 0.95);
    border: 1px solid rgba(176, 38, 255, 0.2);
    backdrop-filter: blur(10px);
}

.tippy-arrow {
    color: rgba(26, 19, 32, 0.95);
}

/* Background grain texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

#hero h1, #hero h2, #hero p {
    visibility: hidden;
}

#hero h2, #hero p {
    opacity: 0;
    visibility: hidden;
}

#hero h1 {
    visibility: hidden;
}

/* Make sure collaborations are visible by default */
.collaborations h3, .collab-list {
    visibility: visible;
    opacity: 1;
}

/* Portfolio Grid Styles */
.portfolio-grid {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(176, 38, 255, 0.1);
    padding: 20px;
    background: rgba(26, 19, 32, 0.3);
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(26, 19, 32, 0.5);
    border: 1px solid rgba(176, 38, 255, 0.2);
    transition: all 0.3s ease;
    min-height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.portfolio-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    padding: 20px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(176, 38, 255, 0.15);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-info {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-info h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
}

/* Hover Effects */
.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(176, 38, 255, 0.2),
        inset 0 0 30px rgba(176, 38, 255, 0.15);
    border-color: rgba(176, 38, 255, 0.4);
    background: rgba(26, 19, 32, 0.7);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Media Viewer Styles */
.media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-viewer.active {
    display: flex;
    opacity: 1;
}

.media-viewer-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-viewer-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.viewer-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    z-index: 1001;
}

.viewer-button {
    background: rgba(176, 38, 255, 0.3);
    border: 1px solid rgba(176, 38, 255, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewer-button:hover {
    background: rgba(176, 38, 255, 0.5);
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-viewer:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.zoom-level {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Add these styles for the portfolio image and hover effects */
.portfolio-category {
    position: relative;
    cursor: pointer;
}

.portfolio-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.portfolio-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(176, 38, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-overlay span {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-image-container:hover .image-overlay {
    opacity: 1;
}

.portfolio-image-container:hover .image-overlay span {
    transform: translateY(0);
}

.portfolio-image-container:hover .portfolio-image {
    transform: scale(1.05);
}

/* Media Viewer Styles */
.media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-viewer.active {
    display: flex;
    opacity: 1;
}

.media-viewer-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-viewer-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.viewer-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    z-index: 1001;
}

.viewer-button {
    background: rgba(176, 38, 255, 0.3);
    border: 1px solid rgba(176, 38, 255, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewer-button:hover {
    background: rgba(176, 38, 255, 0.5);
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-viewer:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.zoom-level {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Add these styles for the navigation buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(176, 38, 255, 0.3);
    border: 1px solid rgba(176, 38, 255, 0.5);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 8px;
}

.nav-button:hover {
    background: rgba(176, 38, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
    left: 20px;
}

.nav-button.next {
    right: 20px;
}

/* Add slide animation for images */
.media-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: all 0.3s ease;
}

.slide-left {
    animation: slideLeft 0.3s ease;
}

.slide-right {
    animation: slideRight 0.3s ease;
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add styles for the image counter */
.image-counter {
    position: absolute;
    top: 20px;
    right: 80px; /* Position it to the left of the close button */
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1001;
}

/* Add these styles for the Services section */
#services {
    position: relative;
    overflow: hidden;
}

.services-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.services-container h2 {
    margin-bottom: 1rem;
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: -1rem;
    width: 600px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(0);
}

.services-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: -1.5rem;
    max-width: 600px;
}

.service-item {
    background: linear-gradient(
        145deg,
        rgba(31, 22, 41, 0.3),
        rgba(23, 19, 32, 0.2)
    );
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(176, 38, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInService 0.5s ease forwards;
    min-height: 60px;
}

.service-item i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-item h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-grow: 1;
}

.service-hover {
    position: absolute;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-hover p {
    margin: 10px 0 0 44px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.service-item:hover {
    background: linear-gradient(
        145deg,
        rgba(31, 22, 41, 0.5),
        rgba(23, 19, 32, 0.4)
    );
    transform: translateX(0) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(176, 38, 255, 0.2);
}

.service-item:hover i {
    transform: scale(1.2);
}

/* Adjust the preview image container */
.services-preview {
    position: sticky;
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    margin-top: 8rem;
    margin-left: 4rem;
    width: 55%;
    height: 100%;
}

.services-preview img {
    max-width: 180%;
    height: auto;
    animation: floating 3s ease-in-out infinite;
    margin-left: 10%;
    margin-top: 30%;
    transform: scale(1.5);
}

@keyframes floating {
    0%, 100% {
        transform: scale(1.5) translateY(0);
    }
    50% {
        transform: scale(1.5) translateY(-20px);
    }
}

/* Update responsive styles */
@media (max-width: 968px) {
    .services-preview {
        margin-top: 2rem;
        margin-left: 0;
    }
    
    .services-preview img {
        max-width: 100%;
        margin-left: 0;
        margin-top: 0;
        transform: scale(1);
    }
}

/* Pricing Section Styles */
#pricing {
    position: relative;
    padding-bottom: 60px;
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.pricing-category {
    background: linear-gradient(
        145deg,
        rgba(31, 22, 41, 0.3),
        rgba(23, 19, 32, 0.2)
    );
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(176, 38, 255, 0.2);
    transition: all 0.3s ease;
}

.pricing-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.pricing-category h3 i {
    width: 24px;
    height: 24px;
}

.price-item {
    background: rgba(26, 19, 32, 0.4);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.price-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.label {
    font-size: 1.1rem;
    color: var(--text-color);
}

.unit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.price-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* FAQ Styles */
.pricing-faq {
    background: linear-gradient(
        145deg,
        rgba(31, 22, 41, 0.3),
        rgba(23, 19, 32, 0.2)
    );
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(176, 38, 255, 0.2);
}

.faq-list {
    list-style: none;
    padding: 0;
}

.faq-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(26, 19, 32, 0.4);
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.faq-item i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.faq-item span {
    color: rgba(255, 255, 255, 0.8);
}

/* Hover Effects */
.price-item:hover, .faq-item:hover {
    transform: translateX(10px);
    background: rgba(26, 19, 32, 0.6);
    box-shadow: 0 5px 15px rgba(176, 38, 255, 0.1);
}

.pricing-cta {
    text-align: center;
    margin-top: 40px;
}

.pricing-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-container {
        padding: 10px;
    }

    .price {
        font-size: 1.8rem;
    }

    .label {
        font-size: 1rem;
    }
}

/* Mobile and tablet styles */
@media (max-width: 1024px) {
    nav {
        left: -80%; /* Start off-screen */
        top: 0;
        width: 80%; /* Take up 80% of screen width */
        height: 100vh;
        transition: left 0.3s ease;
        padding: 20px 0;
        overflow-y: auto;
    }

    nav.open {
        left: 0;
    }

    /* Hide logo and title on mobile */
    .nav-logo, .nav-title {
        display: none;
    }

    /* Adjust nav items for mobile */
    nav ul {
        margin-top: 20px;
        padding: 0;
    }

    nav ul li {
        margin: 5px 0;
        padding: 0;
    }

    nav ul li a {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }

    nav ul li a i {
        width: 16px;
        height: 16px;
    }

    /* Show toggle button */
    .nav-toggle {
        display: flex;
        position: fixed;
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        background: rgba(26, 19, 32, 0.9);
        border: 1px solid rgba(176, 38, 255, 0.2);
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        color: var(--primary-color);
    }

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

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

    /* Adjust submenu for mobile */
    .submenu {
        position: static;
        background: rgba(26, 19, 32, 0.5);
        padding: 5px 0;
        margin: 5px 20px;
        border-radius: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 1px solid rgba(176, 38, 255, 0.1);
    }

    .submenu li {
        margin: 0;
    }

    .submenu a {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Adjust main content padding */
    section {
        padding-left: 20px !important;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    nav {
        left: 0;
        top: 0;
        height: 100vh;
        width: 200px;
        padding: 40px 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Hide mobile-specific elements */
    .nav-toggle, .nav-overlay {
        display: none;
    }

    /* Show logo and title */
    .nav-logo, .nav-title {
        display: block;
    }

    /* Desktop submenu */
    .submenu {
        position: absolute;
        left: 180px;
        background: var(--panel-bg);
        padding: 15px;
        border-radius: 12px;
        min-width: 160px;
    }
}

/* Mobile and tablet styles */
@media (max-width: 428px) { /* iPhone Pro Max and similar */
    nav {
        left: -180px;
        width: 180px;
        padding: 0;
    }

    nav ul {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
        padding: 0;
        height: 28px; /* Reduced height */
    }

    nav ul li a {
        padding: 4px 10px;
        font-size: 0.85rem;
        gap: 6px;
        height: 28px; /* Match parent height */
        min-height: unset;
        display: flex;
        align-items: center;
        margin: 0;
        border-radius: 4px;
    }

    nav ul li a i {
        width: 12px; /* Smaller icons */
        height: 12px;
        flex-shrink: 0;
    }

    /* Remove any spacing between items */
    nav ul li + li {
        margin-top: 0;
    }

    /* Make the entire nav more compact */
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Adjust submenu to be equally compact */
    .submenu {
        margin: 0 5px;
        padding: 0;
    }

    .submenu li {
        height: 24px;
    }

    .submenu li a {
        padding: 2px 8px;
        height: 24px;
        font-size: 0.8rem;
    }

    /* Remove any default margins/padding */
    nav ul li a, nav ul li, nav ul {
        box-sizing: border-box;
    }

    /* Adjust the badge position for Portfolio */
    .badge {
        padding: 1px 4px;
        font-size: 0.6rem;
    }
}

/* Even smaller phones */
@media (max-width: 375px) {
    nav {
        left: -200px;
        width: 200px;
    }

    nav ul li a {
        padding: 6px 12px;
        height: 36px; /* Slightly smaller height */
        font-size: 0.85rem;
    }
}

/* Handle intermediate sizes (429px to 1024px) */
@media (min-width: 429px) and (max-width: 1024px) {
    nav {
        left: -180px;
        width: 180px;
        padding: 0;
    }

    nav ul {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
        padding: 0;
        height: 28px; /* Same compact height as mobile */
    }

    nav ul li a {
        padding: 4px 10px;
        font-size: 0.85rem;
        gap: 6px;
        height: 28px;
        min-height: unset;
        display: flex;
        align-items: center;
        margin: 0;
        border-radius: 4px;
    }

    nav ul li a i {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    /* Remove spacing between items */
    nav ul li + li {
        margin-top: 0;
    }

    /* Keep nav compact */
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Adjust submenu */
    .submenu {
        margin: 0 5px;
        padding: 0;
    }

    .submenu li {
        height: 24px;
    }

    .submenu li a {
        padding: 2px 8px;
        height: 24px;
        font-size: 0.8rem;
    }

    /* Ensure proper box sizing */
    nav ul li a, nav ul li, nav ul {
        box-sizing: border-box;
    }

    /* Adjust badge */
    .badge {
        padding: 1px 4px;
        font-size: 0.6rem;
    }
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(26, 19, 32, 0.9);
    border: 1px solid rgba(176, 38, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0;
}

.nav-toggle-icon {
    width: 24px;
    height: 24px;
}

.fallback-icon {
    display: none;
    font-size: 24px;
    line-height: 1;
}

/* Show fallback if Lucide icon fails to load */
.nav-toggle-icon:not(:defined) + .fallback-icon {
    display: block;
}

.nav-toggle-icon:defined + .fallback-icon {
    display: none;
}