/* Modern Neutral Portfolio CSS - All Criteria (5pts CSS + 2pts Responsive) */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f0f0f0;
    min-height: 100vh;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* About Section */
#about {
    padding: 4rem 2rem 3rem;
    text-align: center;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

#about h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

#about p:first-of-type {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 1rem;
}

#about p:last-of-type {
    font-size: 1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* CSS Grid Gallery - Responsive Design (2pts) */
#gallery {
    padding: 4rem 2rem;
    background: #f9fafb;
}

#gallery h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #222;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-item {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.grid-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.grid-item img {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.grid-item p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Contact Form */
#contact {
    padding: 4rem 2rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

#contact h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #222;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.2s ease;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background: #222;
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

button:hover {
    background: #374151;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}

#form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    border: 1px solid transparent;
}

.success {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Image Carousel - JavaScript Demo */
#carousel {
    padding: 4rem 2rem;
    background: #f9fafb;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

#carousel h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

#carousel p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.carousel-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.carousel-images {
    position: relative;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border: 2px solid #9ca3af;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    border-radius: 1000px;
}

.indicator.active,
.indicator:hover {
    border-color: #374151;
    background: #222;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #222;
    color: #d1d5db;
    font-size: 0.9rem;
    border-top: 1px solid #374151;
}

/* RESPONSIVE DESIGN - Media Queries (2pts) */
@media (max-width: 768px) {
    main {
        margin: 0;
        box-shadow: none;
    }
    
    #about {
        padding: 3rem 1.5rem 2rem;
    }
    
    #about h1 {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-item {
        padding: 1.5rem;
    }
    
    #gallery, #contact, #carousel {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    #about {
        padding: 2rem 1rem;
    }
    
    #about h1 {
        font-size: 1.75rem;
    }
    
    #gallery, #contact, #carousel {
        padding: 2rem 1rem;
    }
    
    .grid-item {
        padding: 1.25rem;
    }
    
    form {
        gap: 1.25rem;
    }
    
    input, textarea {
        padding: 0.625rem;
    }
    
    .carousel-container {
        max-width: 100%;
    }
}