* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    overflow-x: hidden;
    color: white;
    line-height: 1.6;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease-out;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none; 
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 40px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: #aaa;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 30px;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #aaa;
}

.mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero {
    padding: 100px 0 120px;
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 1300px;
    margin: 0 auto;
    justify-content: flex-start;
}

.profile-pic-container {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 6px solid white;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.5);
    transition: all 0.8s ease;
    opacity: 0;
    transform: translateX(-50px);
    flex-shrink: 0;
    background: #222;
}

.profile-pic-container.scrolled {
    opacity: 1;
    transform: translateX(0);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-pic-container:hover .profile-pic {
    transform: scale(1.05);
}

.profile-pic-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-pic-container:hover::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

.hero-content {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease 0.2s;
}

.hero-content.scrolled {
    opacity: 1;
    transform: translateX(0);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.hero-content .title {
    font-size: 2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
    line-height: 1.3;
}

.hero-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid white;
    cursor: pointer;
    font-size: 1.05rem;
}

.btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.skill {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-size: 1.05rem;
}

.skill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.skill.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.skill:nth-child(1) { transition-delay: 0.4s; }
.skill:nth-child(2) { transition-delay: 0.5s; }
.skill:nth-child(3) { transition-delay: 0.6s; }
.skill:nth-child(4) { transition-delay: 0.7s; }
.skill:nth-child(5) { transition-delay: 0.8s; }
.skill:nth-child(6) { transition-delay: 0.9s; }
.skill:nth-child(7) { transition-delay: 1.0s; }
.skill:nth-child(8) { transition-delay: 1.1s; }
.skill:nth-child(9) { transition-delay: 1.2s; }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    font-size: 3rem;
    position: relative;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    font-weight: 700;
}

.section-title.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: white;
    border-radius: 3px;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-content.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.about-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.7);
}

.about-card i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
}

.showcase-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-right: 90px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.showcase-carousel.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.showcase-stack {
    position: relative;
    min-height: 430px;
}

.showcase-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.83);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
}

.showcase-card.is-active {
    position: relative;
    z-index: 3;
    opacity: 1;
    transform: translate(0, 0) scale(1);
    pointer-events: auto;
}

.showcase-card.is-back {
    z-index: 2;
    opacity: 0.55;
    transform: translate(330px, 0) scale(0.94);
    pointer-events: none;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.04);
}

.showcase-card.is-hidden {
    z-index: 1;
    opacity: 0;
    transform: translate(200px, 0) scale(0.9);
    pointer-events: none;
}

.showcase-img {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.showcase-card.is-active:hover .showcase-image {
    transform: scale(1.05);
}

.showcase-content {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
}

.showcase-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.showcase-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.showcase-content .project-tags {
    margin-bottom: 30px;
}

.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.showcase-prev {
    left: -22px;
}

.showcase-next {
    right: -22px;
}

.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.showcase-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.showcase-dot.active {
    background: white;
    width: 22px;
    border-radius: 5px;
}

@media (max-width: 900px) {
    .showcase-stack {
        min-height: 560px;
    }

    .showcase-card {
        grid-template-columns: 1fr;
    }

    .showcase-img {
        min-height: 200px;
    }

    .showcase-content {
        padding: 30px;
    }

    .showcase-nav {
        width: 40px;
        height: 40px;
    }

    .showcase-prev {
        left: 6px;
    }

    .showcase-next {
        right: 6px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
}

.project-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
}

.project-card.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.project-img {
    height: 220px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Project image styling */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-img::before {
    opacity: 1;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

.project-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.project-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.project-links .btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.contact-form.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.form-group.scrolled {
    opacity: 1;
    transform: translateX(0);
}

.form-group:nth-child(1) { transition-delay: 0.2s; }
.form-group:nth-child(2) { transition-delay: 0.4s; }
.form-group:nth-child(3) { transition-delay: 0.6s; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: white;
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.05rem;
}

.form-control:focus {
    outline: none;
    border-color: white;
    background: rgba(40, 40, 40, 0.7);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-size: 1.05rem;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #F44336;
}

footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

footer p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding: 70px 0 90px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .title {
        font-size: 1.4rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    .profile-pic-container {
        width: 300px;
        height: 300px;
    }
    
    .hero-content {
        transform: translateY(30px);
    }
    
    .hero-content.scrolled {
        transform: translateY(0);
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
    }

    #starfield .star {
        display: none;
    }

    #starfield .star:nth-child(5n) {
        display: block;
    }
}
