html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at 20% 10%, rgba(233, 30, 99, 0.3) 0%, transparent 15%),
                radial-gradient(circle at 80% 50%, rgba(156, 39, 176, 0.3) 0%, transparent 70%),
                radial-gradient(circle at 10% 85%, rgba(209, 16, 193, 0.3) 0%, transparent 30%),
                linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

:root{
    --button-color: linear-gradient(45deg, #e91e63, #9c27b0);
    --secondary-color: #16213e;
}


.nav-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 30px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a{
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e91e63;
}

.hero {
    padding: 20px 5% 0;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: #b39ddb;
    margin-bottom: 20px;
}

.hero-text p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-btn {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateX(-2px);
}

.hero-image {
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: auto;
    -webkit-filter: drop-shadow(24px 24px 24px rgba(156, 39, 176, 0.3));
}

.about {
    padding: 80px 5%;
    text-align: center;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 20px;
    margin: 40px auto 0;
    max-width: 650px;
}

.skill {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.skill:hover {
    background: rgba(233, 30, 99, 0.3);
}

.logo-section {
    padding: 100px 5%;
    text-align: center;
}

.logo-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 4rem;
    font-weight: bold;
    position: relative;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.work {
    padding: 80px 5%;
}

.work h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.work-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 20px;
}

.carousel {
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 1rem;
    scroll-behavior: smooth;
    anchor-name: --carousel;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
}

.carousel::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel::scroll-button(right), .carousel::scroll-button(left) {
    content: '>';
    border: none;
    background: var(--button-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Consolas;
    font-size: 3rem;
    color: white;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    padding-bottom: .1rem;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -50%;
}

.carousel::scroll-button(left) {
    content: '<';
    position-area: left center;
    translate: 50%;
}

.carousel::scroll-button(right):disabled, .carousel::scroll-button(left):disabled {
    opacity: 0.5;
    cursor: auto;
} 

.project {
    scroll-snap-align: start;
    flex: 0 0 100%;
    padding: 1rem;
    border-radius: .5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    justify-content: center;
}

.project::scroll-marker {
    content: '';
    height: 1rem;
    width: 1rem;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.project::scroll-marker:target-current {
    background: var(--button-color);
}

.project:nth-child(even) {
    direction: rtl;
}

.project:nth-child(even) > * {
    direction: ltr;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e91e63;
}

.project-info h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.project-info p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-links {
    display: flex;
    gap: 15px;
}

.logo-btn {
    display: inline-block;
    vertical-align: middle;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.logo-btn img {
    display: block;
    height: 48px;
    width: auto;
}

.logo-btn:hover {
    opacity: 0.8;
}

.logo-span {
    display: inline-block;
    vertical-align: middle;
    background: none;
    border: none;
    padding: 0;
}

.logo-span img {
    display: block;
    height: 24px;
    width: auto;
}

.project-image {
    max-height: 300px;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    justify-self: center;
}

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

.contact {
    padding: 80px 5%;
}

.contact h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 100%;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ccc;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ccc;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateX(-2px);
}

.footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.footer p {
    color: #999;
}

.footer-social {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 5%;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .carousel {
        padding: 0;
        margin: 1rem 0;
    }

    .project {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .project-image {
        max-height: 200px;
    }

    .logo-btn {
        justify-self: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-container {
        padding: 10px 20px;
    }
}