/* ============================================
   THE BOLTAGE STUDIO - Main Stylesheet
   Clean, modern, game-studio aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --accent: #ffffff;
    --accent-light: #cccccc;
    --accent-glow: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f0;
    --text-secondary: #999999;
    --text-muted: #555555;
    --border: #222222;
    --success: #4ade80;
    --danger: #f87171;
    --warning: #fbbf24;
    --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Rajdhani', 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.6);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.8);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.navbar.scrolled { background: rgba(0, 0, 0, 0.95); box-shadow: var(--shadow); }

.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 42px; width: auto; filter: brightness(1.1); }
.nav-logo span {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 700;
    color: #ffffff;
}

.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
    display: block; padding: 8px 18px;
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: var(--accent-glow);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text-primary);
    margin: 6px 0; transition: all var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at center, #111111 0%, var(--bg-primary) 70%);
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../img/logo.png') center/contain no-repeat;
    opacity: 0.04; filter: blur(40px);
}

.hero-content { text-align: center; position: relative; z-index: 2; }

.hero-logo {
    width: 200px; height: 200px; margin: 0 auto 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 12px;
    animation: float 6s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.03);
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.hero .tagline {
    font-size: 1.25rem; color: var(--text-secondary);
    margin-bottom: 40px; font-style: italic;
    letter-spacing: 2px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem; font-weight: 600;
    border-radius: var(--radius);
    border: none; cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase; letter-spacing: 1px;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.15);
    color: #000000;
    background: #e0e0e0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-secondary); }

.section-header {
    text-align: center; margin-bottom: 60px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700; margin-bottom: 16px;
    color: var(--text-primary);
}
.section-header p {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 640px; margin: 0 auto;
}
.section-header .accent-line {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, #ffffff, #666666);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}

.about-text h3 {
    font-size: 1.3rem; color: #ffffff;
    margin-bottom: 16px; font-weight: 600;
}
.about-text p {
    color: var(--text-secondary); margin-bottom: 16px;
    font-size: 1rem; line-height: 1.8;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%; height: 400px; object-fit: cover;
    transition: transform var(--transition);
}
.about-image:hover img { transform: scale(1.05); }

.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 32px;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 800;
    color: #ffffff;
}
.stat-label {
    font-size: 0.85rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 4px;
}

/* ============================================
   PROJECTS / CARDS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: #444;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.05);
}

.project-card .card-image {
    height: 220px; overflow: hidden;
    position: relative;
}
.project-card .card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition);
}
.project-card:hover .card-image img { transform: scale(1.08); }

.project-card .card-badge {
    position: absolute; top: 16px; left: 16px;
    background: #ffffff;
    color: #000; font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 1px;
}

.project-card .card-body { padding: 24px; }
.project-card .card-body h3 {
    font-size: 1.2rem; margin-bottom: 8px;
    font-weight: 700;
}
.project-card .card-body p {
    color: var(--text-secondary); font-size: 0.92rem;
    margin-bottom: 16px; line-height: 1.6;
}
.project-card .card-tags {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.project-card .card-tags span {
    background: rgba(255, 255, 255, 0.08);
    color: #cccccc;
    font-size: 0.75rem; padding: 4px 10px;
    border-radius: 20px; font-weight: 500;
}

/* ============================================
   BLOG POSTS
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: #444;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}

.blog-card .card-image { height: 200px; overflow: hidden; }
.blog-card .card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition);
}
.blog-card:hover .card-image img { transform: scale(1.06); }

.blog-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .card-date {
    font-size: 0.8rem; color: #cccccc;
    margin-bottom: 8px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
.blog-card .card-body h3 {
    font-size: 1.1rem; margin-bottom: 10px; font-weight: 700;
}
.blog-card .card-body p {
    color: var(--text-secondary); font-size: 0.9rem;
    line-height: 1.6; flex: 1;
}
.blog-card .read-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: #ffffff; font-weight: 600;
    font-size: 0.9rem; margin-top: 16px;
    transition: gap var(--transition);
}
.blog-card:hover .read-more { gap: 12px; }

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-wrapper {
    max-width: 900px; margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.video-wrapper .video-container {
    position: relative; padding-bottom: 56.25%; height: 0;
}
.video-wrapper .video-container iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: none;
}
.video-thumbnail {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: block; text-decoration: none;
}
.video-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.video-play-btn i {
    color: #fff; font-size: 2rem;
    margin-left: 4px;
}
.video-thumbnail:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}

.contact-info { padding-top: 16px; }
.contact-info h3 {
    font-size: 1.3rem; margin-bottom: 24px;
    color: #ffffff;
}

.contact-item {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 24px;
}
.contact-item .icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.contact-item .details h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item .details p { color: var(--text-secondary); font-size: 0.9rem; }
.contact-item .details a { color: #cccccc; }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 0.88rem; font-weight: 600;
    color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================
   PRESSKIT
   ============================================ */
.presskit-section { padding: 40px 0; }
.presskit-details {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.presskit-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.presskit-block h3 {
    font-size: 1.1rem; color: #ffffff;
    margin-bottom: 16px; font-weight: 700;
}
.presskit-block p,
.presskit-block li {
    color: var(--text-secondary); font-size: 0.95rem;
    line-height: 1.7;
}
.presskit-block ul { list-style: none; padding: 0; }
.presskit-block ul li::before {
    content: '\25B8'; color: #ffffff; margin-right: 8px;
}
.presskit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px; margin-top: 32px;
}
.presskit-gallery img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}
.presskit-gallery img:hover {
    border-color: #444;
    transform: scale(1.03);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem; line-height: 1.7;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: var(--text-secondary); font-size: 0.9rem;
    transition: all var(--transition);
}
.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-social {
    display: flex; gap: 12px; margin-top: 16px;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: #ffffff; border-color: #ffffff;
    color: #000; transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    color: var(--text-muted); font-size: 0.85rem;
}

/* ============================================
   BLOG POST PAGE
   ============================================ */
.post-hero {
    height: 50vh; min-height: 360px;
    display: flex; align-items: flex-end;
    position: relative; overflow: hidden;
}
.post-hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.post-hero .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, var(--bg-primary) 100%);
}
.post-hero .post-hero-content {
    position: relative; z-index: 2;
    padding: 40px 0;
}
.post-hero .post-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800; margin-bottom: 12px;
}
.post-hero .post-meta {
    color: var(--text-secondary); font-size: 0.9rem;
}

.post-content {
    max-width: 800px; margin: 0 auto;
    padding: 60px 24px;
}
.post-content p {
    color: var(--text-secondary);
    font-size: 1.05rem; line-height: 1.9;
    margin-bottom: 24px;
}
.post-content h2 {
    font-size: 1.5rem; margin: 40px 0 16px;
    color: var(--text-primary);
}
.post-content img {
    border-radius: var(--radius);
    margin: 32px 0;
    border: 1px solid var(--border);
}
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px; margin: 32px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .about-grid, .contact-grid, .presskit-details {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }

    .hero-logo { width: 140px; height: 140px; }

    .footer-grid { grid-template-columns: 1fr; }

    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   TEAM PAGE
   ============================================ */
.team-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
}
.team-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.team-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-align: center;
    padding: 40px 24px 32px;
}
.team-card:hover {
    transform: translateY(-4px);
    border-color: #444;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}

.team-card .team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-card .team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.team-card .team-avatar .team-icon {
    font-size: 3rem;
    color: var(--text-muted);
}

.team-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.team-card .team-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.team-card .team-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
    white-space: pre-line;
}

.team-card .team-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cccccc;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.team-card .team-link:hover {
    color: #ffffff;
}

/* ============================================
   ANIMATIONS (on scroll)
   ============================================ */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1; transform: translateY(0);
}

/* --- Loading Screen --- */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.loader.hidden { opacity: 0; pointer-events: none; }
.loader .spinner {
    width: 48px; height: 48px;
    border: 3px solid var(--border);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
