body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("main background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #e0f7ff;
}

/* Prevent horizontal overflow on small screens and use border-box */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.75);
    z-index: -1;
}


header {
    background: rgba(10, 20, 30, 0.9);
    color: #9be7ff;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #1e90ff;
}

/* Make navigation explicit and resilient */
header {
    position: relative;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}

nav a { display: inline-block; padding: 6px 10px; }


nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;

}
 
nav a:hover {
    text-decoration: underline;
    color: #1e90ff;
}


.hero {
    background: transparent;
    color: #dff6ff;
    padding: 80px 20px;
    text-align: center;
}

.hero .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    background: transparent;
    color: #e0f7ff;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.12);
    min-height: 44px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.hero .hero-btn:hover {
    background: linear-gradient(90deg, rgba(30,144,255,0.12), rgba(0,198,255,0.08));
    box-shadow: 0 8px 20px rgba(0,198,255,0.08);
    transform: translateY(-2px);
}

/* Make hero button full-width on small screens for better UX */
@media (max-width: 520px) {
    .hero .hero-btn { width: 92%; display: inline-block; padding: 14px 18px; font-size: 1rem; }
}




button {
    padding: 12px 25px;
    background: linear-gradient(90deg, #1e90ff, #00c6ff);
    border: none;
    color: black;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

button:hover {
    box-shadow: 0 0 15px #00c6ff;
}

section {
    padding: 40px 20px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 12px;
}

.card {
    background: white;
    padding: 20px;
    width: 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.card {
    background: rgba(20, 30, 45, 0.9);
    padding: 20px;
    width: 260px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #1e90ff;
    box-shadow: 0 0 15px rgba(0,198,255,0.35);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}


form input, form textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
}

form button {
    padding: 10px 30px;
    background: #2ecc71;
    border: none;
    color: white;
}

footer {
    background: rgba(10, 20, 30, 0.95);
    color: #9be7ff;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #1e90ff;
}

.models-section {
    margin-top: 150px;   
}

/* Glassmorphism enhancements */
header, .card, .hero, footer {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

/* Reusable glass utility class */
.glass {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 8px 30px rgba(2,12,27,0.6);
    border-radius: 12px;
}

/* Accent glow for interactive elements */
nav a:hover, button:hover {
    text-shadow: 0 0 8px rgba(0,198,255,0.45);
}

/* Responsive tweaks */
@media (max-width: 760px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
    }
    .hero {
        padding: 40px 12px;
    }
}

/* Contact form styles (index) */
.contact-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 14px;
}
.contact-card .contact-form {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-card label {
    font-size: 0.95rem;
    color: #cfeffb;
    text-align: left;
}
.contact-card input,
.contact-card textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    color: #e8fbff;
}
.contact-card button[type="submit"] {
    width: fit-content;
    padding: 10px 20px;
    background: linear-gradient(90deg,#00c6ff,#1e90ff);
    color: #001018;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.contact-help {
    flex: 0 0 30%;
    color: #bfefff;
    align-self: center;
    text-align: left;
}

/* Models page unique UI */
.models-section.models-variant {
    padding: 60px 20px;
}
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 24px auto 0;
}
.models-grid .card img {
    height: 220px;
}

/* About page unique UI */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    max-width: 1100px;
    margin: 20px auto;
}
.about-hero img { width: 100%; border-radius: 12px; }

/* Contact page (separate) */
.contact-page .contact-card-centered {
    max-width: 680px;
    margin: 30px auto;
    padding: 28px;
    border-radius: 12px;
}
.contact-page .contact-card-centered input,
.contact-page .contact-card-centered textarea {
    width: 100%;
}

@media (max-width:760px) {
    .contact-card { flex-direction: column; }
    .contact-card .contact-form { width:100%; }
    .contact-card .contact-help { order: 2; }
    .about-hero { grid-template-columns: 1fr; }
}

/* Better contact card visuals */
.contact-card-centered {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
}
.contact-card-centered .contact-form {
    background: transparent;
    border: none;
    padding: 0;
}
.contact-card-centered label {
    display: block;
    margin-bottom: 6px;
    color: #cfeffb;
    font-weight: 600;
}
.contact-card-centered input,
.contact-card-centered textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px 14px;
    border-radius: 10px;
    color: #e8fbff;
}
.contact-card-centered input:focus,
.contact-card-centered textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,198,255,0.08);
    border-color: rgba(0,198,255,0.6);
}
.contact-card-centered button {
    align-self: flex-end;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg,#00e0ff,#1e90ff);
    color: #001018;
    font-weight: 700;
    cursor: pointer;
}

/* Developer page styles */
.devs-hero { max-width: 900px; margin: 20px auto; text-align: center; padding: 10px 20px; }
.dev-cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; max-width: 1100px; margin: 12px auto; }
.dev-card { width: 280px; padding: 18px; text-align: center; border-radius: 12px; }
.dev-card img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.dev-card h3 { margin: 8px 0 6px 0; }
.dev-card p { font-size: 0.95rem; color: #dff6ff; }

/* Ensure model images cover their box */
.models-grid .card img,
.cards .card img,
.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    max-height: 320px; /* limit very tall images */
}

/* For large screens, keep consistent card image height */
@media (min-width: 900px) {
    .card img { max-height: 260px; }
}

/* Ensure developer images are responsive */
.dev-card img { width: 100%; height: auto; max-height: 420px; }

/* Responsive image and layout fixes */
.dev-card img,
.models-grid .card img,
.cards .card img,
.card img {
    height: auto;
    max-height: 420px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 760px) {
    .dev-cards { flex-direction: column; padding: 0 12px; }
    .dev-card { width: 100%; max-width: 480px; }
    .models-grid { grid-template-columns: 1fr; padding: 0 12px; }
    .cards { flex-direction: column; align-items: center; }
    .card { width: 95%; }
    .hero { padding: 28px 12px; }
    .hero h2 { font-size: 1.35rem; }
    .dev-card img { max-height: 320px; }
}
