/* ✅ Fixed styles.css with modal overlay and preserved background */

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

#webgl-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.content {
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 100px 20px;
}

#eva-name {
    font-size: 4em;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(45deg, #00b294, #b200b2, #00b294);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s infinite alternate;
}

#tagline {
    font-size: 1.5em;
    color: #00ffff;
    opacity: 0;
}

nav {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    text-align: center;
    z-index: 10;
}

nav a {
    margin: 0 20px;
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #00b294;
}

section {
    padding: 200px 20px 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: block !important;
    z-index: 2;
}

h2 {
    font-size: 2.5em;
    background: linear-gradient(45deg, #00b294, #b200b2, #00b294);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    animation: gradientShift 5s infinite alternate;
    margin-bottom: 40px;
    margin-top: -20px;
    z-index: 20;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #00b294, #b200b2) 1;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    width: 200px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.service-card h3 {
    font-size: 1.2em;
    color: #00ffff;
    margin-bottom: 10px;
}

.service-card .price {
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 10px;
}

.service-card .desc {
    font-size: 0.9em;
    color: #ccc;
}

.corporate-service {
    font-size: 1.2em;
    color: #00ffff;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gallery-carousel {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50px;
}

.gallery-carousel img {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.5s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 10;
}

.gallery-carousel img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px #00ffff;
}

.gallery-carousel img.loading-error {
    display: none;
}

@keyframes carouselRotate {
    0% { transform: translateX(300px) translateY(0) rotate(0deg); }
    25% { transform: translateX(0) translateY(300px) rotate(90deg); }
    50% { transform: translateX(-300px) translateY(0) rotate(180deg); }
    75% { transform: translateX(0) translateY(-300px) rotate(270deg); }
    100% { transform: translateX(300px) translateY(0) rotate(360deg); }
}

button {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background: linear-gradient(45deg, #00b294, #b200b2);
    border: none;
    color: #fff;
    font-size: 1.2em;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: linear-gradient(45deg, #b200b2, #00b294);
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

#mars-canvas, #nebula-canvas {
    width: 60px;
    height: 60px;
    display: inline-block;
    vertical-align: middle;
    z-index: 5;
}

.whatsapp-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    text-decoration: none;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    text-decoration: none;
}

.eva-pic {
    width: 60px;
    height: 60px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    box-shadow: 0 0 12px #b200b2;
    background-color: #ff00ff;
    opacity: 1 !important;
}

.whatsapp-link span, .social-link span {
    margin-top: 10px;
    color: #00ffff;
    font-size: 1.2em;
    text-shadow: 0 0 5px #00ffff;
}

.social-icon {
    width: 30px; /* Reduced from 60px */
    height: 30px; /* Reduced from 60px */
    border-radius: 50%;
    box-shadow: 0 0 12px #b200b2;
    background-color: #ff00ff;
    opacity: 1 !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #00b294, #b200b2) 1;
    max-width: 80%;
}

.corporate-modal-text {
    font-size: 1.2em;
    color: #00ffff;
    margin-bottom: 20px;
    word-wrap: break-word;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.modal-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.modal-caption {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
}

.book-now-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff6347;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.book-now-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff6347;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 100px auto;
    display: block;
}

.book-now-btn:hover {
    background-color: #ff4500;
}