/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 5%;
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
}

/* Header */
header {
    text-align: center;
    padding: 5rem 1rem;
    border-bottom: 1px solid #333;
}

.profile-logo {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Sections & Grids */
section {
    padding: 4rem 5%;
    border-bottom: 1px solid #333;
}

h2 {
    margin-bottom: 2rem;
    color: #ffffff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Utility Classes for JavaScript */
.hidden {
    display: none;
}

button {
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #45a049;
}

#rates-display {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #1e1e1e;
    border-left: 4px solid #4CAF50;
}
/* Make links look like buttons */
.button-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.button-link:hover {
    background-color: #45a049;
}
/* Clickable Cards */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Ensures the link takes up the whole grid cell */
}

.clickable-card {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    transform: translateY(-5px);
}

/* Sub-page Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Keeps images from stretching */
    display: block;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

/* Pricing Section */
.pricing-section {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}
/* Interactive Rig Showcase */
.interactive-rig-container {
    text-align: center;
    padding: 2rem;
}

#ookii-female-rig {
    position: relative;
    width: 600px; /* Adjust size based on your asset dimensions */
    height: 700px;
    margin: 0 auto 2rem;
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden; /* Important: keeps layers within the box */
}

/* Add the Lime Wool glow accent established in image_0.png */
.glowing-accent {
    box-shadow: 0 0 15px rgba(127, 255, 0, 0.4);
    transition: all 0.3s ease;
}

#ookii-female-rig:hover {
    box-shadow: 0 0 25px rgba(127, 255, 0, 0.6);
}

.rig-title, .rig-subtitle {
    position: relative;
    z-index: 10; /* Ensure text is on top */
    color: #fff;
    padding: 1rem;
}

.rig-layers {
    position: absolute;
    top: 50px; /* Offset for title space */
    left: 0;
    width: 100%;
    height: 100%;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures vector layers fill the space cleanly */
    transition: transform 0.05s linear; /* Smooth micro-movement */
}

/* Specific Eye Movement Constraint (JS will modify this) */
.eye {
    transform: translate(0px, 0px); /* Base state */
    /* Example: to define a maximum possible movement of 5 pixels in any direction */
    /* top: calc(50% + 10px); left: calc(50% + 5px); */ /* Initial centering offsets */
}

.tracking-debug-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: lime;
    padding: 5px 10px;
    font-size: 0.8rem;
    z-index: 20;
}
/* --- Socials Section Layout --- */
.social-grid {
    display: flex;
    justify-content: center; /* Centers the row of buttons */
    gap: 1rem; /* Tighter spacing between cards */
    flex-wrap: wrap; /* Allows them to stack on mobile phones, but stay in a row on PC */
}

/* Make the boxes smaller */
.social-card {
    width: 200px; /* Forces the box to be much thinner */
    padding: 1rem; /* Reduces empty space inside the box */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Make the logos bigger */
.social-icon {
    width: 90px;  /* Increased from 64px */
    height: 90px;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

/* Shrink the text to fit the new smaller boxes */
.social-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.social-card p {
    font-size: 0.8rem;
    line-height: 1.3;
}
/* --- BMS Carousel Gallery --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Maximum width of the gallery */
    margin: 0 auto;
    border-radius: 8px;
    background-color: #111;
    border: 2px solid #333;
    box-shadow: 0 0 15px rgba(127, 255, 0, 0.1); /* Subtle lime glow */
    overflow: hidden; /* Hides the images that slide off-screen */
}

.carousel-track-container {
    width: 100%;
    height: 500px; /* Fixed height to keep it uniform */
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #111;
}

/* Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 24px;
    z-index: 10;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: #4CAF50;
    color: #000;
}

.prev-btn, .art-prev-btn, .overlay-prev-btn, .premade-prev-btn { left: 10px; }
.next-btn, .art-next-btn, .overlay-next-btn, .premade-next-btn { right: 10px; }

/* Navigation Dots */
.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    gap: 12px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.carousel-indicator.current-slide {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(127, 255, 0, 0.8);
}

/* --- 3D Skin Gallery Grid --- */
.skin-grid {
    display: flex;
    flex-wrap: wrap;       /* Pushes boxes to the next line if they run out of room */
    justify-content: center; /* Centers the row of boxes */
    gap: 2rem;             /* Space between the boxes */
    margin-bottom: 4rem;
}

.skin-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skin-canvas-container {
    width: 250px;
    height: 350px;
    background-color: #111;
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 0 0 15px rgba(127, 255, 0, 0.1); /* Your studio's lime glow */
    cursor: grab;
    overflow: hidden;
}

.skin-canvas-container canvas {
    outline: none;
}

.skin-canvas-container:active {
    cursor: grabbing;
}

.skin-label {
    margin-top: 1rem;
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}