:root {
    --primary-color: #FFD700; /* Duck Yellow */
    --secondary-color: #008080; /* Teal */
    --accent-color: #FF6B6B;
    --text-color: #333;
    --bg-color: #FFFDF0;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    background: linear-gradient(135deg, #FFFDF0 50%, #E0F7FA 50%);
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-image {
    font-size: 10rem;
    animation: float 3s ease-in-out infinite;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 100%;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

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

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--white);
}

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

.contact-container .section-title {
    color: var(--white);
    margin-bottom: 10px;
}

.contact-desc {
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text-color);
    text-align: left;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

/* AI Section */
.ai-section {
    padding: 60px 0;
    background-color: #f0f4f8;
}

.ai-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.ai-card h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.ai-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

.ai-upload-col {
    flex: 1;
}

.ai-result-col {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #eee;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ai-result-col h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.drop-area {
    border: 3px dashed #ccc;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drop-area:hover, .drop-area.highlight {
    border-color: var(--secondary-color);
    background-color: #e0f2f1;
    transform: scale(1.02);
}

.image-preview {
    display: none;
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.label-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.label-box div {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.placeholder-text {
    color: #999 !important;
    background: none !important;
    box-shadow: none !important;
    justify-content: center !important;
}

/* Responsive for AI Layout */
@media (max-width: 768px) {
    .ai-layout {
        flex-direction: column;
    }
    .ai-result-col {
        width: 100%;
    }
}

/* Modal Styling */
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    font-weight: bold;
    font-size: 1.1rem;
}

.label-box div {
    background: #e0f2f1;
    padding: 8px;
    border-radius: 8px;
    color: var(--secondary-color);
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; 
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 700px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-duck-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    background-color: #333;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 40px;
    }
}
