/* ==========================================================================
   Spinosaurus Interactive - Modern Stylesheet
   ========================================================================== */

:root {
    --primary-color: #007bff;
    --primary-hover: #00b4d8;
    --bg-dark: #0a0d14;
    --card-bg: rgba(18, 24, 38, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --max-width: 1140px;
    --radius-lg: 16px;
    --radius-md: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(10, 13, 20, 0.85), rgba(10, 13, 20, 0.95)), url("../images/bbc.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Example: Swapping to Outfit */
h1, h2, h3, .logo h1 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

main {
    flex: 1;
}

/* Header & Sticky Navigation */
header {
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

/* Updated Header Layout: Full width to push Logo far-left and Nav far-right */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.35rem;
    font-weight: 800;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--text-main);
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(10,13,20,0.4) 0%, rgba(10,13,20,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

/* Button Component */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

/* General Layout Section */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.page-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

/* Feature Blocks (Index / Home) */
.feature-block {
    display: flex;
    align-items: flex-start; /* Aligns content (text and image) to the top */
    gap: 3rem;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease;
}

.feature-block:hover {
    border-color: rgba(0, 123, 255, 0.4);
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Keeps text stacked starting from the top */
}

.feature-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 0; /* Ensures no extra top whitespace pushes the heading down */
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Sized-Down Image Container with Fixed Aspect Ratio */
.feature-image-container {
    flex: 0 0 320px; /* Maintains the compact width */
    max-width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.feature-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Forces a fixed 4:3 aspect ratio */
    object-fit: cover;    /* Prevents stretching by cleanly cropping overflowing edges */
    border-radius: var(--radius-md);
    display: block;
}

/* Stats Feature Block */
.stats-feature {
    display: flex;
    justify-content: space-around;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover glow matching the main feature blocks */
.stats-feature:hover {
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
}

.stat h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 800;
}

.stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Games Grid (Portfolio) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.game-showcase {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-showcase:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.game-media {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
}

.game-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.team-card {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
}

.team-pfp {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.team-info h3 {
    font-size: 1.2rem;
}

.role {
    font-size: 0.75rem;
    color: var(--primary-hover);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2px 0 6px 0;
}

.team-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Contact Social Grid - Big Icons with Modern Polish */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Contact Social Grid - Restored Original Layout */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-main);
}

.social-card img {
    width: 240px;
    height: 240px;
    object-fit: cover; /* Changed from contain to cover so image fills rounded boundary completely */
    border-radius: 20px; /* Applies rounded corners to all images */
    overflow: hidden; /* Forces child content/backgrounds to trim inside the radius */
    transition: transform 0.2s ease;
}

.social-card img:hover {
    transform: scale(1.05);
}

.social-card img:hover {
    transform: scale(1.05);
}

.social-card span {
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--text-main);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    background: rgba(10, 13, 20, 0.9);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 868px) {
    .container {
        padding: 0 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .games-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .feature-block {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}