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

:root {
    --primary-color: #ec4899;
    --secondary-color: #f472b6;
    --accent-color: #fda4af;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #fdf2f8;
    --border-color: #fce7f3;
    --shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(236, 72, 153, 0.15);
    --shadow-pink: 0 10px 40px -10px rgba(236, 72, 153, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* background: rgba(255, 255, 255, 0.95); */
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 50%, #fce7f3 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease;
    overflow: hidden;
}

/* Navbar Sparkles */
.navbar-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.navbar-sparkles .sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6), rgba(244, 114, 182, 0.4));
    border-radius: 50%;
    box-shadow:
        0 0 3px rgba(236, 72, 153, 0.4),
        0 0 6px rgba(236, 72, 153, 0.3),
        0 0 9px rgba(244, 114, 182, 0.2);
    opacity: 0;
    animation: navbarSparkle 4s ease-in-out infinite;
}

.navbar-sparkles .sparkle::before {
    width: 6px;
    height: 1px;
}

.navbar-sparkles .sparkle::after {
    width: 6px;
    height: 1px;
}

@keyframes navbarSparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    20% {
        opacity: 0.6;
        transform: scale(1) rotate(45deg);
    }

    40% {
        opacity: 0.7;
        transform: scale(1.1) rotate(90deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1) rotate(135deg);
    }

    60% {
        opacity: 0.7;
        transform: scale(1.05) rotate(180deg);
    }

    80% {
        opacity: 0.5;
        transform: scale(0.9) rotate(225deg);
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(270deg);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.6s ease;
}

.logo:hover {
    transform: scale(1.1);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a {
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    width: 200px;
    height: 200px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 50%, #fce7f3 100%);
    position: relative;
    overflow: visible;
}

/* Hero Sparkles */
.hero-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-sparkles .sparkle {
    position: absolute;
}

/* Allow pointer events on sparkle containers for hover */
.sparkles-container,
.hero-sparkles,
.navbar-sparkles {
    pointer-events: auto;
}

.sparkles-container .sparkle,
.hero-sparkles .sparkle,
.navbar-sparkles .sparkle {
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0;
    padding: 0 2rem;
    padding-left: 15%;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 3;
    flex: 1;
    max-width: 500px;
    margin-top: -5rem;
}

/* Fixed Hero Image on the Right */
.hero-image {
    position: fixed !important;
    right: 20%;
    top: 40%;
    transform: translateY(-50%) !important;
    z-index: 100;
    animation: fadeInRight 0.8s ease;
    transition: opacity 0.4s ease;
    opacity: 0.6;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: inline-block;
    overflow: hidden;
}

.title-line .char {
    display: inline-block;
    animation: slideUpFadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.highlight .zeina-char {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.highlight::after {
    content: 'Zeina';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    filter: blur(8px);
    animation: zeinaGlow 2s ease-in-out 2s infinite;
    z-index: -1;
    pointer-events: none;
}

.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    filter: blur(10px);
    animation: zeinaGlow 2s ease-in-out 1.5s infinite;
    z-index: -1;
}

@keyframes zeinaAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px) rotateX(90deg);
    }

    50% {
        transform: scale(1.1) translateY(-5px) rotateX(0deg);
    }

    70% {
        transform: scale(0.95) translateY(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

@keyframes zeinaGlow {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subtitle-word {
    display: inline-block;
    opacity: 0;
    animation: fadeInScale 0.5s ease forwards;
}

.subtitle-word:nth-child(1) {
    animation-delay: 0.2s;
}

.subtitle-word:nth-child(2) {
    animation-delay: 0.3s;
}

.subtitle-word:nth-child(3) {
    animation-delay: 0.4s;
}

.subtitle-word:nth-child(4) {
    animation-delay: 0.5s;
}

.subtitle-word:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pink);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

/* Gradient Circle - Clean Implementation */
.gradient-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(236, 72, 153, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.8),
        0 0 0 8px rgba(236, 72, 153, 0.1);
    animation: gentlePulse 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-circle:hover {
    transform: scale(1.02);
    box-shadow:
        0 30px 60px -12px rgba(236, 72, 153, 0.35),
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 0 0 8px rgba(236, 72, 153, 0.2);
}

@keyframes gentlePulse {

    0%,
    100% {
        box-shadow:
            0 25px 50px -12px rgba(236, 72, 153, 0.25),
            0 0 0 4px rgba(255, 255, 255, 0.8),
            0 0 0 8px rgba(236, 72, 153, 0.1);
    }

    50% {
        box-shadow:
            0 25px 50px -12px rgba(236, 72, 153, 0.35),
            0 0 0 4px rgba(255, 255, 255, 0.9),
            0 0 0 12px rgba(236, 72, 153, 0.15);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: expandWidth 1s ease 0.5s backwards, glow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
    }
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.1), transparent);
    transition: left 0.5s ease;
}

.tag:hover::before {
    left: 100%;
}

.tag:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(244, 114, 182, 0.1));
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.05), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-pink);
    border-color: var(--primary-color);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(244, 114, 182, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: bounce 2s ease-in-out infinite;
}

.project-card:hover .project-icon {
    transform: scale(1.2) rotate(10deg);
    animation: none;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.contact-item:hover {
    background: rgba(236, 72, 153, 0.05);
    transform: translateX(10px);
}

.contact-icon {
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1), 0 4px 12px rgba(236, 72, 153, 0.15);
    transform: translateY(-2px) scale(1.02);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-color), #111827);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.2;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    33% {
        transform: translateY(-20px) translateX(10px);
    }

    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Floating elements animation */
.tag {
    animation: fadeInUp 0.6s ease backwards;
}

.project-card {
    animation: fadeInUp 0.6s ease backwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* 3D Flip effect on project cards */
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card h3,
.project-card p,
.project-card .project-icon,
.project-card .project-link {
    transition: transform 0.4s ease;
}

.project-card:hover h3 {
    transform: translateZ(20px);
}

.project-card:hover p {
    transform: translateZ(10px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-image {
        position: fixed !important;
        right: 3%;
        top: 50%;
        transform: translateY(-50%) !important;
    }

    .gradient-circle {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
        animation: slideInFromLeft 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    @keyframes slideInFromLeft {
        from {
            left: -100%;
            opacity: 0;
        }

        to {
            left: 0;
            opacity: 1;
        }
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
        padding-bottom: 2rem;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* On mobile - show image in normal flow, not fixed */
    .hero-image {
        position: relative !important;
        right: auto;
        bottom: auto;
        top: auto;
        transform: none !important;
        z-index: 10;
        order: 2;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .gradient-circle {
        width: 220px;
        height: 220px;
        box-shadow:
            0 15px 35px -8px rgba(236, 72, 153, 0.3),
            0 0 0 4px rgba(255, 255, 255, 0.9),
            0 0 0 8px rgba(236, 72, 153, 0.15);
    }

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

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

    .footer .container {
        flex-direction: column;
    }
}

/* Pink Sparkles Background */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7), rgba(244, 114, 182, 0.5));
    border-radius: 50%;
    box-shadow:
        0 0 4px rgba(236, 72, 153, 0.4),
        0 0 8px rgba(236, 72, 153, 0.3),
        0 0 12px rgba(244, 114, 182, 0.2),
        0 0 16px rgba(253, 164, 175, 0.1);
    opacity: 0;
    animation: sparkle 5s ease-in-out infinite;
    transform-origin: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform;
}

.sparkle.small {
    width: 2.5px;
    height: 2.5px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5), rgba(244, 114, 182, 0.3));
}

.sparkle.large {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6), rgba(244, 114, 182, 0.4));
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.5), rgba(244, 114, 182, 0.5), transparent);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow:
        0.5px 0 0 rgba(244, 114, 182, 0.4),
        -0.5px 0 0 rgba(244, 114, 182, 0.4);
}

.sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.5), rgba(244, 114, 182, 0.5), transparent);
    transform: translate(-50%, -50%) rotate(-45deg);
    box-shadow:
        0.5px 0 0 rgba(244, 114, 182, 0.4),
        -0.5px 0 0 rgba(244, 114, 182, 0.4);
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    15% {
        opacity: 0.5;
        transform: scale(0.8) rotate(45deg);
    }

    25% {
        opacity: 0.7;
        transform: scale(1) rotate(90deg);
    }

    35% {
        opacity: 0.8;
        transform: scale(1.1) rotate(135deg);
    }

    45% {
        opacity: 0.7;
        transform: scale(1) rotate(180deg);
    }

    55% {
        opacity: 0.8;
        transform: scale(1.05) rotate(225deg);
    }

    65% {
        opacity: 0.7;
        transform: scale(1) rotate(270deg);
    }

    75% {
        opacity: 0.6;
        transform: scale(0.95) rotate(315deg);
    }

    85% {
        opacity: 0.4;
        transform: scale(0.85) rotate(360deg);
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(405deg);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6), rgba(244, 114, 182, 0.3));
    border-radius: 50%;
    animation: floatParticle 15s infinite ease-in-out;
    opacity: 0;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 21s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 23s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 4.5s;
    animation-duration: 20s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Ensure content is above particles and sparkles */
section {
    position: relative;
    z-index: 2;
}

.navbar {
    position: relative;
    z-index: 1000;
}

body {
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .particles {
        display: none;
    }
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #4b5563;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: #4b5563;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(75, 85, 99, 0.1);
    border-color: #6b7280;
}

@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdf2f8, #ffffff);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(236, 72, 153, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-inner::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 4px solid rgba(244, 114, 182, 0.1);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

.loader-text {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.skill-tag {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.skill-tag.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.skill-tag:nth-child(1) {
    transition-delay: 0.1s;
}

.skill-tag:nth-child(2) {
    transition-delay: 0.2s;
}

.skill-tag:nth-child(3) {
    transition-delay: 0.3s;
}

.skill-tag:nth-child(4) {
    transition-delay: 0.4s;
}

/* Enhanced Button Hover Effects */
.btn-primary,
.btn-secondary {
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 400px;
    height: 400px;
}

/* Magnetic Effect for Buttons */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glitch Effect on Hover */
.nav-menu a:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

/* Project Link Animation */
.project-link {
    position: relative;
    display: inline-block;
}

.project-link::after {
    content: '→';
    position: absolute;
    right: -20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-link:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

.project-card:hover .project-link {
    padding-right: 25px;
}



/* Hero Photo - Clean Styling */
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease;
    /* Rotate the image to correct orientation */
    transform: rotate(-90deg);
}

.gradient-circle:hover .hero-photo {
    transform: rotate(-90deg) scale(1.05);
}

/* Scroll Indicator for better UX */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s ease-in-out infinite;
}

@keyframes scrollMouse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth page transitions */
.page-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active nav link styling */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}