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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe5f0 100%);
    color: #333;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(255, 105, 180, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav .logo {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc371 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b9d;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc371 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 15px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.1em !important;
    opacity: 0.9 !important;
    margin-bottom: 30px !important;
}

.hero-btn {
    background: white;
    color: #ff6b9d;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #ff6b9d;
}

/* Category Tabs */
.portfolio-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 25px;
    background: #ffd8e3;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #ffb6c1;
    color: #fff;
}

.category-btn.active {
    background: #ff6f91;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 111, 145, 0.4);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Image Slider for multiple images */
.image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 5px;
}

.image-slider img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    scroll-snap-align: start;
    cursor: grab;
    flex-shrink: 0;
}

.image-slider::-webkit-scrollbar {
    height: 6px;
}

.image-slider::-webkit-scrollbar-thumb {
    background: #ff6b9d;
    border-radius: 10px;
}

.portfolio-info {
    padding: 20px;
    text-align: left;
}

.portfolio-info h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ff6b9d;
}

.portfolio-info p {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Description Thai/English */
.desc-th {
    font-size: 1em;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.desc-en {
    font-size: 0.9em;
    color: #777;
    font-style: italic;
    margin-top: 2px;
}

.price {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffc371;
    margin-bottom: 15px;
}

.detail-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc371 100%);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.detail-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* About Section */
.about-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.15);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    color: #ff6b9d;
    margin-bottom: 20px;
    font-size: 2em;
}

.about-text p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.profile-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.2);
    object-fit: cover;
}

/* Skills Section */
#skills {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px 30px;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#skills h2 {
    font-size: 1.8rem;
    color: #333;
    border-bottom: 2px solid #007acc;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.skill-group h3 {
    color: #007acc;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.skill-group ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0 0 20px 0;
}

.skill-group li {
    background: #ffffff;
    border-left: 4px solid #007acc;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.skill-group li:hover {
    background: #f0f8ff;
    transform: translateX(4px);
}

.skill-group strong {
    color: #222;
}

/* Contact Section */
#contact {
    padding: 80px 20px;
    background: linear-gradient(180deg, #fff6f7 0%, #fffbea 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before, #contact::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: contactFloat 8s ease-in-out infinite alternate;
}

#contact::before {
    width: 180px;
    height: 180px;
    background: #ffd8e3;
    top: -40px;
    left: 10%;
}

#contact::after {
    width: 220px;
    height: 220px;
    background: #fff1b5;
    bottom: -60px;
    right: 8%;
    animation-delay: 2s;
}

@keyframes contactFloat {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(20px) scale(1.05); }
}

.contact-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    letter-spacing: 1px;
    position: relative;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #ffffffb3;
    border-radius: 20px;
    padding: 30px 15px;
    box-shadow: 0 8px 18px rgba(255, 182, 193, 0.15);
    transition: all 0.35s ease;
    border: 1px solid rgba(255, 182, 193, 0.3);
    backdrop-filter: blur(6px);
    position: relative;
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(255, 180, 100, 0.25);
    background: linear-gradient(135deg, #ffeef6 0%, #fff9e3 100%);
}

.contact-item .icon {
    font-size: 2.3em;
    margin-bottom: 10px;
}

.contact-item .icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.contact-item:hover .icon img {
    transform: scale(1.1) rotate(-3deg);
}

.contact-item h3 {
    font-size: 1.1rem;
    color: #ff84a3;
    margin: 5px 0;
}

.contact-item p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
    word-break: break-word;
}

.contact-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    transition: 0.6s;
    opacity: 0;
}

.contact-item:hover::after {
    transform: translateX(100%);
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-slider img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    scroll-snap-align: start;
    cursor: grab;
    flex-shrink: 0;
}

.modal-slider::-webkit-scrollbar {
    height: 8px;
}

.modal-slider::-webkit-scrollbar-thumb {
    background: #ff6b9d;
    border-radius: 10px;
}

.modal-content h2 {
    color: #ff6b9d;
    margin-bottom: 15px;
}

.modal-content .price {
    font-size: 1.8em;
    margin: 20px 0;
}

.order-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc371 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.3s;
}

.order-btn:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    position: relative;
    text-align: center;
    padding: 35px 15px;
    background: radial-gradient(circle at top, #fafafa 0%, #f3f7ff 100%);
    border-top: 2px dashed rgba(0, 0, 0, 0.08);
    font-family: "Inter", "Poppins", sans-serif;
    font-size: 0.95rem;
    color: #555;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 160%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00b7ff, #ff9ff3, transparent);
    animation: glowLine 6s linear infinite;
    opacity: 0.4;
}

@keyframes glowLine {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(10%); }
}

footer p {
    margin: 0;
    letter-spacing: 0.5px;
    z-index: 2;
    position: relative;
}

footer strong {
    background: linear-gradient(90deg, #007acc, #ff6ec4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

footer:hover {
    background: radial-gradient(circle at bottom, #f7faff 0%, #eef3ff 100%);
    transition: background 0.4s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item img,
    .image-slider img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    nav ul {
        gap: 15px;
        font-size: 0.9em;
    }

    .contact-methods {
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .portfolio-item img,
    .image-slider img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .contact-section h2 {
        font-size: 1.6rem;
    }

    .contact-item {
        padding: 25px 10px;
    }

    #skills {
        padding: 15px 20px;
    }

    #skills h2 {
        font-size: 1.5rem;
    }

    .skill-group h3 {
        font-size: 1.1rem;
    }
    
    footer {
        font-size: 0.85rem;
        padding: 25px 10px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 8px;
    }

    .portfolio-item img,
    .image-slider img {
        height: 160px;
    }

    .portfolio-info h3 {
        font-size: 1.1rem;
    }

    .portfolio-info p,
    .portfolio-info .price,
    .detail-btn {
        font-size: 0.85rem;
    }
}