:root {
    --primary: #F9A8D4;
    --primary-dark: #f472b6;
    --primary-light: #fbcfe8;
    --secondary: #93C5FD;
    --secondary-light: #bfdbfe;
    --accent: #FFE476;
    --accent-dark: #facc15;
    --bg: #FFF1F2;
    --bg-card: #ffffff;
    --text: #3B0764;
    --text-light: #6b21a8;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(59, 7, 100, 0.05);
    --shadow: 0 4px 6px -1px rgba(59, 7, 100, 0.1), 0 2px 4px -2px rgba(59, 7, 100, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(59, 7, 100, 0.1), 0 4px 6px -4px rgba(59, 7, 100, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 241, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(249, 168, 212, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    background: rgba(255, 241, 242, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-gif {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-light);
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--text);
}

.nav-cta {
    background: var(--primary);
    color: var(--text) !important;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--primary-light);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-location {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 168, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    max-width: 420px;
}

.code-window {
    background: var(--text);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(249, 168, 212, 0.2);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.filename {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.code-body {
    padding: 24px 20px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-prop { color: #e06c75; }
.code-string { color: #98c379; }
.code-bool { color: #d19a66; }

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-cards {
    display: grid;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.info-card:hover {
   /* transform: translateY(-4px);*/
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.info-icon {
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.skills {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(147, 197, 253, 0.1) 50%, var(--bg) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-icon-svg {
    color: var(--primary-dark);
    flex-shrink: 0;
}

.skill-header h3 {
    font-size: 1.2rem;
    color: var(--text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--primary-light);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
  /*  transform: translateY(-6px);*/
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.lab-system {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.pharmacy-system {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.project-card:hover .project-placeholder {
     /*transform: scale(1.05);*/
}

.placeholder-icon-svg {
    color: var(--text);
    opacity: 0.7;
}

.placeholder-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.project-content {
    padding: 28px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tag {
    background: var(--secondary-light);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}

.project-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-features {
    margin-bottom: 20px;
}

.project-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
}

.project-link svg {
    transition: var(--transition);
}

.project-link:hover svg {
    transform: translateX(2px);
}

.design {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 228, 118, 0.1) 50%, var(--bg) 100%);
}

.design-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1rem;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.design-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.design-card:hover {
   /* transform: translateY(-6px); */
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.design-preview {
    height: 200px;
    overflow: hidden;
}

.design-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.frankenstein-thumb {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ateez-thumb {
    background: linear-gradient(180deg, #1F3D50 57%, #214069 93%);
}

.design-card:hover .design-thumb {
    /*transform: scale(1.05); */
}

.design-thumb-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.design-info {
    padding: 24px;
}

.design-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text);
}

.design-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.design-cta {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.design-card:hover .design-cta {
  /*  transform: translateX(4px); */
}

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

.resume-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.resume-section {
    margin-bottom: 40px;
}

.resume-section:last-child {
    margin-bottom: 0;
}

.resume-section h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-section h3 svg {
    color: var(--primary-dark);
    flex-shrink: 0;
}

.resume-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.resume-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text);
}

.resume-place {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.resume-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 4px 0;
}

.resume-detail {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 4px;
}

.resume-download {
    text-align: center;
    padding: 40px;
}

.resume-download p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.tag {
    background: var(--primary-light);
    color: var(--text);
    padding: 6px 14px 6px 8px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag-icon-wrap {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tag-icon-wrap img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}



.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    
}

.contact {
    margin-bottom: 60px;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    max-width: 280px;
    width: 100%;
    justify-content: center;
}

.social-link:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(4px);
}

.social-link svg {
    color: var(--primary-dark);
    flex-shrink: 0;
}

.footer {
    background: var(--text);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.9;
}

.footer-text a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.footer-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-gif {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 7, 100, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    z-index: 1;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: var(--primary-light);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
}

.modal-preview {
    background: var(--bg);
    border-radius: var(--radius);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    margin-bottom: 20px;
}

.modal-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .hero-card {
        max-width: 350px;
    }

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

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

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

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

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

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

    .resume-card {
        padding: 24px;
    }

    .section {
        padding: 60px 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header,
.about-grid,
.skills-grid,
.projects-grid,
.design-grid,
.resume-card,
.contact-grid {
    animation: fadeInUp 0.6s ease-out forwards;
}



#stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.star {
  position: fixed;
  pointer-events: none;
  font-size: 20px;
  animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.5);
  }
}