* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #f0f0f0;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Section padding */
section {
    padding: 80px 7%;
}

/* Pastel neon colors */
:root {
    --pastel-pink: #ffb7d5;
    --pastel-purple: #c5b3ff;
    --pastel-blue: #9cd6ff;
    --neon-gradient: linear-gradient(135deg, #ffb7d5, #c5b3ff, #9cd6ff);
    --dark-bg: #0a0a0a;
    --card-bg: rgba(20, 20, 30, 0.7);
}

/* NAVBAR */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 7%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo spin animation */
@keyframes logo-3d-rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: logo-3d-rotate 1.5s ease forwards;
}

.logo:hover {
    animation: logo-3d-rotate 1.5s ease forwards;
}

/* hamburger styling */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    transition: 0.4s ease;
    border-radius: 5px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #ddd;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    background: var(--neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: translateY(-2px);
}

.nav-links a:focus {
    background: var(--neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 183, 213, 0.1) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Profile Image */
.hero .image {
    width: 330px;
    height: 330px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 2;
    position: relative;
    transition: transform 0.5s ease;
}

.hero .image:hover img {
    transform: scale(1.05);
}

.hero .image::before,
.hero .image::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background-image: conic-gradient(#ff7ce0 25%, #9cd6ff 50%, #c5b3ff);
    z-index: -1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero .image::after {
    filter: blur(2rem);
    opacity: 0.7;
}

/* Hero Intro Text */
.intro {
    max-width: 550px;
    text-align: left;
}

.intro h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Neon typing effect */
.typing {
    font-weight: 700;
    color: #fff;
    border-right: 3px solid #ff7ce0;
    animation: blinkCursor 0.7s infinite;
    text-shadow: 0 0 8px #ff7ce0;
    padding-right: 5px;
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* Subtitle effect */
.subtitle-type {
    font-size: 1.5rem;
    margin-bottom: 25px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Button */
.btn-link {
    display: inline-block;
    padding: 14px 30px;
    margin-top: 20px;
    background: linear-gradient(45deg, #ff7ce0, #8ab4ff);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 140, 230, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8ab4ff, #ff7ce0);
    transition: 0.5s;
    z-index: -1;
}

.btn-link:hover::before {
    left: 0;
}

.btn-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 140, 230, 0.7);
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT ME */
.about-me h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    background: var(--neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.resume-container {
    text-align: center;
    margin-top: 30px;
}

/* RESUME BUTTON */
.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: transparent;
    color: #8ab4ff;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(45deg, #ff7ce0, #8ab4ff) border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff7ce0, #8ab4ff);
    transition: 0.5s;
    z-index: -1;
}

.resume-btn:hover::before {
    left: 0;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(138, 180, 255, 0.5);
    color: #ffffff;
}

/* SKILLS */
.skills {
    background: #111;
    border-radius: 20px;
    margin: 40px 7%;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: var(--neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.skill p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: var(--neon-gradient);
    border-radius: 10px;
    transition: width 1.2s ease-in-out;
    position: relative;
}

.progress-bar span::after {
    content: attr(data-width);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 11px;
    font-weight: 600;
}

/* PROJECTS */
.project-sections {
    padding: 80px 7%;
    text-align: center;
}

.project-sections h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: var(--neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-container {
    width: 100%;
    margin-top: 30px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.slide {
    min-width: 100%;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: none;
}

.slide.active {
    display: block;
}

.slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 124, 224, 0.2);
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.slide h2 {
    font-size: 1.8rem;
    margin: 15px 0;
    color: var(--pastel-purple);
}

.slide p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-stack span {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.project-buttons .btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #ff7ce0, #8ab4ff);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 140, 230, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8ab4ff, #ff7ce0);
    transition: 0.5s;
    z-index: -1;
}

.project-buttons .btn:hover::before {
    left: 0;
}

.project-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(255, 140, 230, 0.7);
}

.btn-secondary {
    padding: 12px 25px;
    background: transparent;
    color: #8ab4ff;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(45deg, #ff7ce0, #8ab4ff) border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff7ce0, #8ab4ff);
    transition: 0.5s;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(138, 180, 255, 0.4);
    color: #ffffff;
}

/* Carousel Navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 15px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: -60px;
}

.right-arrow {
    right: -60px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--pastel-pink);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--pastel-purple);
    transform: scale(1.2);
}

/* CONTACT */
.contact-section {
    padding: 80px 7%;
    text-align: center;
    background: #111;
    border-radius: 20px;
    margin: 40px 7%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section h2 {
    color: var(--pastel-purple);
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--neon-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.contact-item h3 {
    color: var(--pastel-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-item a {
    color: #8ab4ff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff7ce0;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(30, 30, 40, 0.7);
    margin-top: 60px;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 1rem;
    opacity: 0.8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .intro h1 {
        font-size: 2.8rem;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
        padding: 12px;
        font-size: 20px;
    }

    .left-arrow {
        left: -50px;
    }

    .right-arrow {
        right: -50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        height: 100vh;
        width: 65%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .intro {
        max-width: 100%;
    }

    .intro h1 {
        font-size: 2.5rem;
    }

    .btn-link {
        padding: 12px 25px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .carousel-arrow {
        position: static;
        transform: none;
        margin: 0 10px;
        display: inline-flex;
    }

    .left-arrow,
    .right-arrow {
        position: static;
        margin: 20px 10px;
    }

    .carousel-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero .image {
        width: 280px;
        height: 280px;
    }

    .intro h1 {
        font-size: 2.2rem;
    }

    .subtitle-type {
        font-size: 1.3rem;
    }

    .btn-link {
        padding: 10px 20px;
    }

    .skills {
        padding: 40px 20px;
        margin: 20px;
    }

    .project-sections {
        padding: 40px 20px;
    }

    .slide {
        padding: 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 5%;
    }
}