/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a2e;
    color: #eaeaea;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.nav-link {
    color: #eaeaea;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #64ffda;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #64ffda;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.1rem;
    color: #a0a0b0;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.scroll-down {
    display: inline-block;
    animation: bounce 2s infinite;
    color: #64ffda;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #64ffda;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    color: #64ffda;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-description {
    color: #a0a0b0;
    margin-bottom: 1rem;
    font-style: italic;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #eaeaea;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #64ffda;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-text p {
    margin-bottom: 1rem;
    color: #eaeaea;
}

.about-text h3 {
    color: #64ffda;
    margin: 1.5rem 0 0.5rem;
}

/* Projects Section */
.project-subsection {
    margin-bottom: 6rem;
    min-height: 500px;
}

.subsection-title {
    font-size: 1.8rem;
    color: #64ffda;
    margin-bottom: 2rem;
    text-align: center;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    overflow: visible;
}

.carousel-btn {
    background: none;
    border: 2px solid #64ffda;
    color: #64ffda;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #64ffda;
    color: #1a1a2e;
}

.carousel-track-wrapper {
    overflow: visible; /* Allow side cards to be visible */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 1.5rem;
    align-items: center;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    width: 220px;
    opacity: 0.4;
    transform: scale(0.85);
}

.project-card.active {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
    border: 2px solid #64ffda;
    z-index: 5;
}

.project-card.adjacent {
    opacity: 0.7;
    transform: scale(0.95);
}

.project-card:hover:not(.active) {
    opacity: 0.8;
    transform: scale(0.9);
}

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

.project-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.project-card p {
    padding: 0 1.5rem 1rem;
    color: #b0b0b0;
    font-size: 0.85rem;
}

.project-links {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #64ffda;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #4dd9b8;
}

.btn-secondary {
    background-color: transparent;
    color: #64ffda;
    border: 1px solid #64ffda;
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content > p {
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #eaeaea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #64ffda;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: #808080;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #1a1a2e;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #eaeaea;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #64ffda;
}

.modal-media {
    width: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.modal-media img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.modal-info-bar {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #a0a0b0;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    display: block;
    font-size: 1rem;
    color: #64ffda;
    font-weight: 500;
}

.info-value a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #fff;
    text-decoration: underline;
}

.modal-description {
    padding: 2rem;
}

.modal-description h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-description p {
    color: #eaeaea;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-media img {
        height: 250px;
    }

    .modal-info-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-container {
        padding: 0 40px;
    }

    .project-card {
        width: 180px;
    }
}