* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(to bottom, 
        #fce7f3 0%,           /* Pink top */
        #fce7f3 25%,          /* Pink */
        #fef1f8 40%,          /* Light pink */
        #f0fdf4 60%,          /* Light green */
        #d1fae5 75%,          /* Green */
        #d1fae5 100%          /* Green bottom */
    );
    min-height: 100vh;
}

.font-display {
    font-family: 'Fredoka', sans-serif;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ec4899 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stitched-border {
    position: relative;
}

.stitched-border::before {
    
    content: '';
    position: absolute;
    border: 2px dashed #16a56c; /* Pink dash */
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px dashed #ec4899; /* Pink to match your theme */
    border-radius: 1rem;
    opacity: 0.3;
    pointer-events: none;
    z-index: 10;
}

.crosshatch-bg {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(110, 231, 183, 0.05) 10px, rgba(110, 231, 183, 0.05) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(236, 72, 153, 0.05) 10px, rgba(236, 72, 153, 0.05) 11px);
}

/* Header/Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 100;
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    cursor: pointer;
}

nav .logo:hover {
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ec4899;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .subtitle {
    display: inline-block;
    background: #fce7f3;
    color: #be185d;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #ec4899;
    color: white;
    box-shadow: 4px 0 0 rgba(236, 72, 153, 0.3), 0 4px 0 rgba(236, 72, 153, 0.3), 4px 4px 0 rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    background: #db2777;
    transform: translateY(-4px);
}

.btn-secondary {
    background: #d1fae5;
    color: #065f46;
}

.btn-secondary:hover {
    background: #a7f3d0;
    transform: translateY(-4px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.social-link:hover {
    background: #fce7f3;
    transform: translateY(-4px);
}

.hero-image {
    position: relative;
}

.image-frame {
    background: linear-gradient(to bottom right, #fce7f3, #d1fae5);
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-inner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-image.pink {
    background: linear-gradient(to bottom right, #fce7f3, #fbcfe8);
}

.project-image.sage {
    background: linear-gradient(to bottom right, #d1fae5, #a7f3d0);
}

.project-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-type.pink {
    background: #fce7f3;
    color: #be185d;
}

.project-type.sage {
    background: #d1fae5;
    color: #065f46;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.project-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    color: #374151;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: #ec4899;
}

/* Project detail modal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.project-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* This rule now forces EVERY stitched-border to be Pink and Inset */
.stitched-border::before {
    content: '';
    position: absolute;
    /* 1. Use 12px to move it INSIDE for everything */
    inset: -2px; 
    /* 2. Use the HEX code so it's ALWAYS Pink, never Gray */
    border: 2px dashed #ec4899; 
    border-radius: inherit;
    opacity: 0.4;
    pointer-events: none;
    z-index: 10;
}

/* EXCEPTIONS: We only keep the -2px look for the tiny buttons */
.carousel-container .stitched-border::before {
    inset: 1px;
}
    

/* 2. THE MODAL CONTAINER */
.project-modal-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    max-width: 640px;
    width: 95%;
    max-height: 90vh;
    padding: 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    
    /* 1. Make the outer border solid white (acts as a spacer) */
    border: 12px solid white; 
    
    /* 2. Use the outline to draw the dashes INSIDE that spacer */
    outline: 3px dashed #7cac88;
    /* This negative offset pulls the dash 12px away from the edge */
    outline-offset: -12px;
    
    scrollbar-width: none;
}

.project-modal-content::-webkit-scrollbar {
    display: none;
}

/* 3. REMOVE the old glitchy stitch from the modal */
.project-modal-content.stitched-border::before {
    display: none !important;
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f3f4f6;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s, color 0.2s;
}

.project-modal-close:hover {
    background: #fce7f3;
    color: #ec4899;
}

.project-modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    padding-right: 2.5rem;
}

.project-modal-type {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.project-modal-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.25rem;
}

.project-modal-body p {
    margin-bottom: 0.75rem;
}

.project-modal-body video {
    border: 2px dashed #ec4899; /* Matches your stitched theme */
    padding: 5px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.project-modal-gallery:empty {
    display: none;
}

.project-modal-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
}

.project-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-modal-actions .btn {
    margin: 0;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.3);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out;
    filter: blur(4px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 0.5rem 0;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-card li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: #ec4899;
    border-radius: 50%;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-content {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.about-content .highlight {
    color: #ec4899;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

/* Creative Projects Section */
.creative-projects {
    padding: 4rem 0;
}

.carousel-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 0 4rem;
}

.carousel-wrapper {
    position: relative;
    perspective: 1000px;
    height: 400px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.carousel-slide:nth-child(1) {
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
}

.carousel-slide:nth-child(2) {
    z-index: 2;
    transform: translateX(60%) scale(0.85);
    opacity: 0.6;
}

.carousel-slide:nth-child(3) {
    z-index: 1;
    transform: translateX(-60%) scale(0.85);
    opacity: 0.6;
}

.carousel-slide.center {
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
}

.carousel-slide.right {
    z-index: 2;
    transform: translateX(60%) scale(0.85);
    opacity: 0.6;
}

.carousel-slide.left {
    z-index: 1;
    transform: translateX(-60%) scale(0.85);
    opacity: 0.6;
}

.carousel-slide.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.creative-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.creative-image {
    width: 100%;
    height: 340px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fce7f3 0%, #d1fae5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.creative-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.creative-info {
    padding: 0.35rem 0.5rem 0.5rem;
    text-align: center;
    background: white;
    flex-shrink: 0;
}

.creative-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.creative-info p {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-button:hover {
    background: #fce7f3;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-button svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ec4899;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: #ec4899;
    width: 2rem;
    border-radius: 1rem;
}

.carousel-dot:hover {
    background: #f9a8d4;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 3rem;
    }

    .carousel-wrapper {
        height: 350px;
    }

    .creative-image {
        height: 300px;
    }

    .carousel-slide.right {
        transform: translateX(40%) scale(0.8);
    }

    .carousel-slide.left {
        transform: translateX(-40%) scale(0.8);
    }
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-content p {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 3rem;
}

.contact-btn {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(to right, #ec4899, #6ee7b7);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 3rem;
    text-decoration: none;
    transition: transform 0.3s;
    box-shadow: 4px 0 0 rgba(236, 72, 153, 0.3), 0 4px 0 rgba(236, 72, 153, 0.3), 4px 4px 0 rgba(236, 72, 153, 0.3);
}

.contact-btn:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: #6b7280;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Pixel Cat SVG Animation */
.pixel-cat {
    position: fixed;
    width: 64px;
    height: 64px;
    opacity: 0.2;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    z-index: 50;
}

.pixel-cat.top-right {
    top: 5rem;
    right: 2rem;
    animation-delay: 0s;
}

.pixel-cat.bottom-left {
    bottom: 4rem;
    left: 3rem;
    animation-delay: 2s;
}

.project-modal-body video, 
.project-modal-body img,
.project-modal-gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}