/* Body Styling */
body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    background-attachment: fixed;
    color: #f1f1f1;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Navigation Styling */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 238, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.3s ease;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav .logo:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

nav .logo i {
    margin-right: 0.5rem;
    color: #00eeff;
    text-shadow: 0 0 10px #00eeff, 0 0 20px #00eeff, 0 0 30px #00eeff;
    transition: all 0.3s ease;
}

nav .logo:hover i {
    transform: rotate(10deg);
}

nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-right: 1.5rem;
    position: relative;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #00eeff;
    box-shadow: 0 0 10px #00eeff, 0 0 20px #00eeff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

nav ul li a:hover {
    color: #00eeff; /* Neon blue hover color */
    background-color: rgba(0, 238, 255, 0.05);
    transform: translateY(-2px);
    text-shadow: 0 0 5px #00eeff, 0 0 10px #00eeff;
}

nav ul li a:hover:before {
    width: 80%;
    opacity: 1;
}

nav ul li a.active {
    color: #00eeff;
    background-color: rgba(0, 238, 255, 0.1);
    text-shadow: 0 0 5px #00eeff, 0 0 10px #00eeff;
}

nav ul li a.active:before {
    width: 80%;
    opacity: 1;
}

/* Mobile menu toggle */
#menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#menu-toggle:hover i {
    color: #00eeff;
    text-shadow: 0 0 5px #00eeff, 0 0 10px #00eeff;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        z-index: 20;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none; /* Hidden by default on mobile */
    }

    nav ul.menu-active {
        display: flex; /* Shown when active */
    }

    #menu-toggle {
        display: block; /* Show toggle button on mobile */
    }
}

@media (min-width: 768px) {
    #menu-toggle {
        display: none; /* Hide toggle button on desktop */
    }

    nav ul {
        display: flex !important; /* Always show menu on desktop */
    }
}
    
    nav ul li {
        margin: 0.75rem 0;
        text-align: center;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem;
    }
}

/* Header Styling */
header {
    text-align: center;
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(0, 238, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 238, 255, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 5px #00eeff, 0 0 10px #00eeff, 0 0 15px #00eeff;
}

header p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

header .wave {
    display: inline-block;
    animation: wave 1s infinite;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-20deg); }
    100% { transform: rotate(0deg); }
}

/* Content Styling */
.content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section {
    margin-bottom: 3rem;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 238, 255, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.section h2 {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.5), 0 0 10px rgba(0, 238, 255, 0.3);
}

.section h2 i {
    margin-left: 0.5rem;
    color: #00eeff;
    text-shadow: 0 0 5px #00eeff, 0 0 10px #00eeff;
}

/* Technologies Icons Styling */
.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.tech-icons i {
    font-size: 2.5rem;
    margin: 0.5rem;
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.tech-icons i:hover {
    transform: scale(1.2);
    color: #00eeff;
    text-shadow: 0 0 10px #00eeff, 0 0 20px #00eeff;
}

/* Preloader styles */
#preloader {
    background-color: #1a1c2c;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid #00eeff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Projects Section Styling */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 238, 255, 0.3);
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.project h3 {
    margin-top: 0;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.3);
}

.project p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.project-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.project-icons i {
    color: #00eeff;
    margin-right: 0.3rem;
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.5);
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #b0b0b0;
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 238, 255, 0.1);
    box-shadow: 0 -5px 10px rgba(0, 238, 255, 0.05);
}

/* Adobe Alternatives Page Styling */
.alternatives {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.alternative {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 238, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 238, 255, 0.1);
}

.alternative:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 238, 255, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.alternative h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.5);
}

.alternative p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.alternative p strong {
    color: #00eeff;
    text-shadow: 0 0 3px rgba(0, 238, 255, 0.5);
}

.alternative img.product-image {
    max-width: 100px;
    margin-bottom: 1rem;
}

.alternative a.alternative-link {
    display: inline-block;
    margin-top: 1rem;
    background-color: rgba(0, 238, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 238, 255, 0.3);
    transition: all 0.3s ease;
}

.alternative a.alternative-link:hover {
    background-color: rgba(0, 238, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.5);
    color: #ffffff;
}

/* Card Styling */
.card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 238, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 238, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 238, 255, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.3);
}

/* Add a custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 238, 255, 0.2);
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 238, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 238, 255, 0.3);
    box-shadow: inset 0 0 8px rgba(0, 238, 255, 0.2);
}

/* Add selection styling */
::selection {
    background-color: rgba(0, 238, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.5);
}

/* Mobile menu styles */
.mobile-menu-open #menu {
    display: flex !important;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: row; /* Keep as row for logo and toggle button */
        padding: 1rem;
        justify-content: space-between;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 238, 255, 0.1);
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        z-index: 20;
        border-top: 1px solid rgba(0, 238, 255, 0.2);
    }
    
    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tech-icons i {
        font-size: 2rem;
    }
    
    /* Ensure menu is hidden on mobile by default */
    #menu {
        display: none;
    }
    
    /* Show menu when active */
    #menu.menu-active {
        display: flex;
    }
}
