/* --- Global Styles --- */
:root {
    --primary-pink: #e91e63;
    --primary-green: #4caf50;
    --accent-pink: #f8bbd9;
    --accent-green: #a5d6a7;
    --dark-grey: #212529;
    --light-grey: #f8f9fa;
    --text-color: #343a40;
    --background-color: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- Header & Navigation --- */
header {
    padding: 1rem 5%;
    border-bottom: 1px solid #eee;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.logo-img:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(233, 30, 99, 0.3));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-green));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-pink);
    transform: translateY(-2px);
}

nav a.active {
    color: var(--primary-pink);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 5%;
    background-color: var(--light-grey);
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    animation: fadeInUp 1.4s ease-out;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-green));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* --- Services Section --- */
.services-section {
    padding: 4rem 5%;
    background-color: var(--light-grey);
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
    border: 2px solid var(--accent-pink);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.service-item:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 0.6s ease-in-out;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.service-item p {
    color: #666;
    line-height: 1.6;
}


/* --- Portfolio Carousel --- */
.portfolio-section {
    padding: 4rem 5%;
    text-align: center;
}

.carousel-container {
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.carousel-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    animation: fadeIn 1s ease-out;
}

.carousel-btn:hover {
    transform: scale(1.2) rotate(5deg);
    background: rgba(233, 30, 99, 0.1);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.carousel-btn img {
    width: 40px;
    height: 40px;
}

.carousel-slide {
    position: relative;
    width: 600px;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 1.2s ease-out;
}

.dot:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 2px 8px rgba(233, 30, 99, 0.4));
}

.dot img {
    width: 20px;
    height: 20px;
}

/* --- Contact Page --- */
.contact-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.contact-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-green));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        padding: 0 2%;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .carousel-slide {
        width: 90vw;
        max-width: 400px;
        height: 300px;
    }
    
    .carousel-wrapper {
        gap: 1rem;
    }
    
    .carousel-btn img {
        width: 30px;
        height: 30px;
    }
}

/* --- Loading Animation --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 2s forwards;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- Enhanced Form Interactions --- */
.form-group input, 
.form-group textarea, 
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 2rem;
    background-color: var(--dark-grey);
    color: white;
    animation: fadeInUp 1s ease-out;
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}