:root {
    --bg-color: #12121a;
    --shape1-color: #ff3366;
    --shape2-color: #8c1eff;
    --shape3-color: #00d2ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* Background & Gooey Effect */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    filter: url(#goo);
    transform: translateZ(0); /* Hardware acceleration */
    will-change: filter;
}

.morph-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    will-change: transform, border-radius; /* Hardware acceleration */
}

.shape1 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: var(--shape1-color);
    top: -10%;
    left: -10%;
    animation: rotate1 20s infinite linear;
}

.shape2 {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: var(--shape2-color);
    top: 20%;
    right: -10%;
    animation: rotate2 25s infinite linear;
}

.shape3 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--shape3-color);
    top: 50%;
    left: 30%;
    animation: rotate3 18s infinite linear;
}

@keyframes rotate1 {
    0% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
}

@keyframes rotate2 {
    0% { border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; }
    50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; }
}

@keyframes rotate3 {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 50% 50% / 50% 70% 30% 50%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Scroll Wrapper Layout */
.scroll-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

/* Glass Panels */
.glass-card, .glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.glass-card {
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.glass-panel {
    padding: 60px 50px;
    width: 100%;
    max-width: 900px;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(90deg, var(--shape1-color), var(--shape3-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-down-btn {
    display: inline-block;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-down-btn:hover { color: var(--text-primary); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-image-wrapper {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 0 1px var(--glass-border);
    border-radius: 20px;
    pointer-events: none;
}

.about-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 4/5;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-featured-img {
    transform: scale(1.05);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-text p { margin-bottom: 15px; }
.about-text p:last-child { margin-bottom: 0; }

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--shape2-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-panel {
    max-width: 1000px;
}

.gallery-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

/* Morphing container gets the pixel-morph SVG filter dynamically */
.morphing-container {
    /* filter is applied via JS during transition */
    transform: translateZ(0); /* force hardware acceleration */
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    /* Beautiful Dissolve Morph Effect */
    filter: blur(15px) contrast(1.2);
    transform: scale(1.05);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.gallery-img.active {
    opacity: 1;
    visibility: visible;
    filter: blur(0px) contrast(1);
    transform: scale(1);
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--shape1-color);
    transform: scale(1.3);
}

/* Contact Section & Form */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-container { flex: 1.2; }
.form-group { margin-bottom: 20px; }

.form-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--shape3-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--shape1-color), var(--shape2-color));
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
}

/* Footer */
.footer {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 100%;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Profile Image */
.profile-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--shape1-color), var(--shape3-color));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--bg-color);
}

.name {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--shape1-color), var(--shape3-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.social-link i {
    margin-right: 12px;
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link.whatsapp:hover { border-color: #25D366; color: #25D366; }
.social-link.instagram:hover { border-color: #E1306C; color: #E1306C; }

@media (min-width: 992px) {
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    .about-image-wrapper {
        flex: 1;
        max-width: 45%;
    }
    .about-text {
        flex: 1;
        text-align: left;
    }
    .contact-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .glass-card, .glass-panel { padding: 30px 20px; }
    .section-title { font-size: 2rem; }
    .name { font-size: 1.8rem; }
    .gallery-slider-container {
        flex-direction: column;
    }
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
    }
    .slider-btn:hover { background: rgba(0,0,0,0.8); transform: translateY(-50%) scale(1.1); }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}
