:root {
    --primary-color: #FFB6C1;
    --primary-dark: #FF99A8;
    --text-color: #333;
    --background-color: #fff;
    --section-bg: #f9f9f9;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 182, 193, 0.1) 45%,
        rgba(255, 182, 193, 0.1) 55%,
        transparent 55%
    );
    animation: abstractArt 15s linear infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        transparent 45%,
        rgba(255, 182, 193, 0.1) 45%,
        rgba(255, 182, 193, 0.1) 55%,
        transparent 55%
    );
    animation: abstractArt 12s linear infinite;
    z-index: 0;
}

@keyframes abstractArt {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid var(--primary-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.dad-joke {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dad-joke p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

.dad-joke i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-dark);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background-color: var(--section-bg);
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
}

.secondary-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Experience Section */
.timeline {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.duration {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-item ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.skill-category {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    text-align: center;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    margin-bottom: 2rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin: 0.5rem;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--primary-dark);
}

/* Pac-Man Game */
.pacman-game {
    margin: 2rem auto;
    text-align: center;
}

.pacman-board {
    width: 300px;
    height: 100px;
    background-color: var(--section-bg);
    border-radius: 10px;
    position: relative;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.pacman {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 20px;
    top: 35px;
    transition: left 0.2s linear, top 0.2s linear;
}

.pacman-top, .pacman-bottom {
    width: 100%;
    height: 50%;
    background-color: #FFD700;
    position: absolute;
    border-radius: 15px 15px 0 0;
    transform-origin: bottom;
    animation: chomp 0.3s infinite;
}

.pacman-bottom {
    bottom: 0;
    border-radius: 0 0 15px 15px;
    transform-origin: top;
    animation: chomp-bottom 0.3s infinite;
}

@keyframes chomp {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-45deg); }
    100% { transform: rotate(0deg); }
}

@keyframes chomp-bottom {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
    100% { transform: rotate(0deg); }
}

.ghost {
    width: 25px;
    height: 25px;
    background-color: #FF0000;
    border-radius: 12.5px 12.5px 0 0;
    position: absolute;
    right: 20px;
    top: 37.5px;
    animation: float 2s infinite;
}

.ghost::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #FF0000;
    border-radius: 0 0 2.5px 2.5px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #FFD700;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 46px;
}

.game-instruction {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--section-bg);
    padding: 2rem 0;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        text-align: center;
    }

    .secondary-image {
        max-width: 300px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .section {
        padding: 3rem 0;
    }
}
