/* PRIME STACK DEVELOPERS - FULLY SYNCHRONIZED STYLES */

:root {
    --primary: #3b82f6;
    --accent: #06b6d4;
    --bg-dark: #020617;
    --glass: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.7)),
        url('image/background.gif') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero-content {
    max-width: 850px;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* --- SECTIONS --- */
.section {
    padding: 100px 8%;
    max-width: 1400px;
    margin: auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* --- PROJECT CARDS & SLIDERS --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    transition: 0.4s ease;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.main-slider,
.modal-slider {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.main-slider img,
.modal-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.main-slider img.active,
.modal-slider img.active {
    opacity: 1;
    z-index: 2;
}

/* --- SLIDER ARROWS --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 35px;
    height: 35px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    /* Hidden by default */
    user-select: none;
}

/* Show arrows on hover or if auto-slide is disabled (manual-mode) */
.main-slider:hover .slider-arrow,
.modal-slider:hover .slider-arrow,
.manual-mode .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* --- REFINED TECH STACK --- */
.tag {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.65rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(59, 130, 246, 0.2);
    letter-spacing: 0.5px;
}

/* --- TEAM GRID --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 40px 20px;
    border-radius: 24px;
    transition: 0.3s;
}

.member-photo {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.position {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin: 5px 0;
}

.role {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 10px;
}

/* --- CONTACT FORM --- */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(59, 130, 246, 0.05);
}

.contact-form textarea {
    min-height: 150px;
    resize: none;
}

.btn-submit {
    padding: 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* --- MODAL BASE --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: #0f172a;
    margin: 5vh auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 850px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    z-index: 10;
}

.modal-title {
    font-weight: 800;
    font-size: 2.2rem;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-align: left;
}

.modal-label {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.modal-desc {
    line-height: 1.7;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 400;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

footer {
    padding: 50px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        margin: 0 10px;
        font-size: 0.8rem;
    }

    .modal-content {
        width: 95%;
        padding: 25px 15px;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}