:root {
    --primary-color: #FFD54F;
    --primary-dark: #FFC107;
    --secondary-color: #FFF9C4; 
    --accent-color: #FFAB91; 
    --text-color: #5D4037; 
    --bg-color: #FEFBEA; 
    --white: #FFFFFF;
    --font-main: 'Quicksand', sans-serif;
    --font-jp: 'M PLUS Rounded 1c', sans-serif;
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(93, 64, 55, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

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

h1, h2, h3 {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 { 
    font-size: 3rem; 
}

h2 { 
    font-size: 2.5rem; 
}

h3 { 
    font-size: 1.5rem; 
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 6px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 10px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 213, 79, 0.6);
}

.btn-small {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-small:hover {
    background-color: var(--primary-color);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.nav-links a {
    font-weight: 700;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hero {
    padding-top: 120px;
    padding-bottom: 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4rem;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.badge {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--secondary-color);
    z-index: -1;
    border-radius: 5px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #795548;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    top: -20px;
    right: -20px;
    opacity: 0.3;
    animation: blob-bounce 8s infinite ease-in-out;
}

@keyframes blob-bounce {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0); }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: translate(10px, -10px); }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: translate(-10px, 10px); }
}

.wave-bottom svg {
    display: block;
}

.about {
    background-color: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background-color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
}

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

.project-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-img {
    height: 200px;
    width: 100%;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.contact {
    background-color: var(--white);
    padding-top: 0;
}

.wave-top svg {
    display: block;
    transform: rotate(180deg);
}

.contact-container {
    max-width: 600px;
}

.contact-form {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-image {
        margin-bottom: 2rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .blob {
        width: 300px;
        height: 300px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
}