/* Portfolio Site CSS - Space Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0B0B2F 0%, #1A1A3A 25%, #2D1B69 50%, #1A1A3A 75%, #0B0B2F 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content-wrapper {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Name */
.animated-name {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.name-display {
    background: linear-gradient(45deg, #00D4FF, #7B68EE, #FF6B9D, #C71585);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: galaxyGlow 3s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(123, 104, 238, 0.5);
}

@keyframes galaxyGlow {
    0%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.3);
        transform: scale(1.05);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Skills Section */
.skills-section {
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    animation: slideInLeft 1s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-category {
    background: rgba(123, 104, 238, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #7B68EE;
    min-width: 280px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(123, 104, 238, 0.3);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.skill-category:nth-child(2) {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(123, 104, 238, 0.5);
    border-color: #00D4FF;
}

.skill-category h4 {
    background: linear-gradient(45deg, #00D4FF, #7B68EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 1.2rem;
}

.skill-category .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(45deg, #2D1B69, #4A148C);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #7B68EE;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: linear-gradient(45deg, #00D4FF, #7B68EE);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Projects Section */
.projects-section {
    margin: 3rem 0;
    animation: slideInRight 1s ease-out 0.6s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.projects-section h3 {
    background: linear-gradient(45deg, #00D4FF, #7B68EE, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
}

.project-card {
    background: rgba(45, 27, 105, 0.3);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #7B68EE;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(123, 104, 238, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(123, 104, 238, 0.4);
    border-color: #00D4FF;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h4 {
    background: linear-gradient(45deg, #00D4FF, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: #E0E0E0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-project {
    background: linear-gradient(45deg, #00D4FF, #7B68EE);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-project:hover::before {
    left: 100%;
}

.btn-project:hover {
    background: linear-gradient(45deg, #7B68EE, #FF6B9D);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* Contact Section */
.contact-section {
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.contact-section h2 {
    background: linear-gradient(45deg, #00D4FF, #7B68EE, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
}

.contact-form {
    background: rgba(45, 27, 105, 0.3);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #7B68EE;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(123, 104, 238, 0.3);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 12px 40px rgba(123, 104, 238, 0.5);
    border-color: #00D4FF;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #7B68EE;
    color: white;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00D4FF;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #B0B0B0;
}

.btn-send {
    background: linear-gradient(45deg, #00D4FF, #7B68EE);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-send:hover::before {
    left: 100%;
}

.btn-send:hover {
    background: linear-gradient(45deg, #7B68EE, #FF6B9D);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* Social Links */
.social-links {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #00D4FF;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(123, 104, 238, 0.1);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    color: #fff;
    background: rgba(123, 104, 238, 0.3);
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Modal Styles */
.modal-content {
    background: rgba(45, 27, 105, 0.95);
    border: 2px solid #7B68EE;
    color: white;
    backdrop-filter: blur(15px);
}

.modal-header {
    border-bottom: 1px solid #7B68EE;
}

.modal-title {
    background: linear-gradient(45deg, #00D4FF, #7B68EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
}

.btn-close-white {
    filter: invert(1);
}

.modal-body img {
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #7B68EE;
    transition: transform 0.3s ease;
}

.modal-body img:hover {
    transform: scale(1.05);
}

/* Contact and Projects Section */
.contact-projects-section {
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Contact Section Updates */
.contact-projects-section .contact-section {
    padding: 2rem;
}

.contact-projects-section .contact-section h2 {
    background: linear-gradient(45deg, #00D4FF, #7B68EE, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
}

/* Projects Section Updates */
.contact-projects-section .projects-section {
    padding: 2rem;
    position: relative;
}

.contact-projects-section .projects-section h3 {
    background: linear-gradient(45deg, #00D4FF, #7B68EE, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    text-align: center;
}

.projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #7B68EE transparent;
}

.projects-carousel::-webkit-scrollbar {
    height: 8px;
}

.projects-carousel::-webkit-scrollbar-track {
    background: rgba(123, 104, 238, 0.1);
    border-radius: 10px;
}

.projects-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00D4FF, #7B68EE);
    border-radius: 10px;
}

.projects-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7B68EE, #FF6B9D);
}

.contact-projects-section .project-card {
    background: rgba(45, 27, 105, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    border: 2px solid #7B68EE;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.contact-projects-section .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(123, 104, 238, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-projects-section .project-card:hover::before {
    opacity: 1;
}

.contact-projects-section .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(123, 104, 238, 0.4);
    border-color: #00D4FF;
}

.contact-projects-section .project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-projects-section .project-card:hover img {
    transform: scale(1.05);
}

.contact-projects-section .project-card h4 {
    background: linear-gradient(45deg, #00D4FF, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-projects-section .project-card p {
    color: #E0E0E0;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    background: linear-gradient(45deg, #00D4FF, #7B68EE);
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: linear-gradient(45deg, #7B68EE, #FF6B9D);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Project Modal Gallery Styles */
.modal-content {
    background: linear-gradient(135deg, #1A1A3A 0%, #2D1B69 50%, #1A1A3A 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding: 1.5rem;
}

.modal-title {
    color: #00D4FF;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.project-info {
    margin-bottom: 2rem;
}

.project-info .description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-info .project-date {
    color: #FF6B9D;
    font-size: 0.9rem;
}

.image-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    min-height: 300px;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.gallery-image {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-image img:hover {
    transform: scale(1.05);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.gallery-btn {
    background: linear-gradient(45deg, #4A90E2, #7B68EE);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-btn:hover {
    background: linear-gradient(45deg, #7B68EE, #FF6B9D);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.btn-close-white {
    filter: brightness(0) saturate(100%) invert(1);
}

.btn-close-white:hover {
    filter: brightness(0) saturate(100%) invert(1) drop-shadow(0 0 5px rgba(0, 212, 255, 0.8));
}

/* Gallery responsive styles */
@media (max-width: 768px) {
    .gallery-image {
        padding: 0.5rem;
    }
    
    .gallery-image img {
        max-height: 300px;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-counter {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .animated-name {
        font-size: 2.5rem;
    }
    
    .skills-section {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-category {
        min-width: 100%;
        max-width: 400px;
    }
    
    .social-links {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin: 2rem 0;
    }
    
    .contact-projects-section .row {
        flex-direction: column;
    }
    
    .contact-projects-section .contact-section, 
    .contact-projects-section .projects-section {
        padding: 1rem;
    }
    
    .contact-projects-section .project-card {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .animated-name {
        font-size: 2rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}
