* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
/* Header - Fixed vertical centering */
header {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    /* Remove the fixed height and let content determine height */
    min-height: 70px; /* Minimum height for the header */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    min-height: 70px; /* Match the header min-height */
    /* Ensure proper vertical centering */
    height: auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #c5812c;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center; /* Center logo content vertically */
}

.logo-image {
    height: 40px;   /* Fixed height for consistency */
    width: auto;    /* preserve aspect ratio */
    vertical-align: middle; 
    margin-right: 0.5rem; 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center; /* Ensure nav links are centered vertically */
    margin: 0; /* Remove any default margin */
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    line-height: 1; /* Prevent extra spacing */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem; /* Slightly less padding on mobile */
        min-height: 60px;
    }
    
    header {
        min-height: 60px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

.nav-links a:hover {
    color: #c5812c;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #c5812c;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section - Updated for Video Background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); /* Fallback background */
}

/* Remove the old ::before pseudo-element since we're using video */
.hero::before {
    display: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* blur the video underneath */
    z-index: 5; /* sits above the video, but below content */
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 129, 44, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #c5812c, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(197, 129, 44, 0.3);
}

.hero-logo {
    max-width: 200px;  /* adjust as needed */
    margin: 0 auto 1.5rem auto;
}

.hero-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(197, 129, 44, 0.5));
    animation: glowLogo 2s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #c5812c, #a66a23);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(197, 129, 44, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 129, 44, 0.4);
}

/* Preloader full screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* Black background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Preloader logo */
.preloader-logo {
    width: 120px;
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}

/* Animation (pulse effect) */
@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* Fade out effect when loading finishes */
#preloader.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}


/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #c5812c;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #c5812c, #a66a23);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 129, 44, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 129, 44, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(197, 129, 44, 0.2);
}

.service-card h3 {
    color: #c5812c;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Games */
.games-section {
    background: rgba(0, 0, 0, 0.3);
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.game-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: opacity 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slideshow-controls button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: auto;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slideshow-controls button:hover {
    background: rgba(197, 129, 44, 0.8);
    transform: scale(1.1);
}

.image-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #c5812c;
}

.indicator:hover {
    background: #c5812c;
}

.game-info {
    padding: 2rem;
}

.game-info h3 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.game-status {
    background: #ff6b35;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.steam-link {
    color: #c5812c;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px;
    border: 1px solid #c5812c;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.steam-link:hover {
    background: #c5812c;
    color: white;
    transform: translateX(5px);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 129, 44, 0.2);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #c5812c, #a66a23);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    overflow: hidden;
    border: 3px solid rgba(197, 129, 44, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.member-photo:hover {
    transform: scale(1.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* Prevent 4+1 layout on big screens */
@media (min-width: 1024px) {
  .team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;   /* centers each row */
  }

  .team-grid > * {
    flex: 0 1 300px;  /* fixed-ish card width, but still responsive */
  }
}

/* Center team rows for all tablet+ widths (covers both “natural 3–2” and forced) */
:root {
  --team-card: 300px;
  --team-gap: 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    /* force flex and neutralize grid */
    display: flex !important;
    grid-template-columns: none !important;
    grid-auto-flow: unset !important;

    flex-wrap: wrap;
    gap: var(--team-gap);
    justify-content: center;
    /* optional: cap line width to 3 cards so it never becomes 4+1 */
    max-width: calc(var(--team-card) * 3 + var(--team-gap) * 2);
    margin-inline: auto;
  }

  .team-grid > * {
    /* fixed-ish card width; allows wrap while keeping rows centered */
    flex: 0 1 var(--team-card);
  }
}


/* Hide the number when image is present */
.member-photo:has(img) {
    background: none;
    color: transparent;
}

.member-name {
    color: #c5812c;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-role {
    color: #ccc;
    font-style: italic;
}

/* Social Links */
.social-section {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    width: 70px;
    height: 70px;
    background: rgba(197, 129, 44, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #c5812c;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(197, 129, 44, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #c5812c;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(197, 129, 44, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .logo-text {
        display: none;
    }
    
    .logo-image {
        height: 35px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 60px;
        height: 60px;
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}


/* Client Work Section */
#client-work {
	padding: 80px 0;
}

#client-work h2 {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 1rem;
	color: #c5812c;
	position: relative;
}

#client-work h2::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(45deg, #c5812c, #a66a23);
}

.section-subtitle {
	text-align: center;
	color: #ccc;
	margin-bottom: 3rem;
	font-size: 1.1rem;
}

/* Portfolio Projects */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.portfolio-item {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 15px;
	overflow: hidden;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(197, 129, 44, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

.portfolio-item::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(197, 129, 44, 0.1) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.portfolio-item:hover::before {
	opacity: 1;
}

.portfolio-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(197, 129, 44, 0.3);
}

.portfolio-image {
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.portfolio-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(76, 175, 80, 0.95);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.portfolio-badge.nda {
	background: rgba(100, 100, 100, 0.95);
}

.portfolio-content {
	padding: 1.5rem;
	position: relative;
	z-index: 1;
}

.portfolio-item h3 {
	color: #c5812c;
	margin-bottom: 0.5rem;
	font-size: 1.4rem;
}

.portfolio-client {
	color: #888;
	font-size: 0.9rem;
	margin-bottom: 1rem;
	font-style: italic;
}

.portfolio-description {
	color: #ccc;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.portfolio-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.tag {
	background: rgba(197, 129, 44, 0.2);
	color: #c5812c;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 0.85rem;
	border: 1px solid rgba(197, 129, 44, 0.3);
}

@media (max-width: 768px) {
	#client-work {
		padding: 60px 0;
	}

	#client-work h2 {
		font-size: 2rem;
	}

	.portfolio-grid {
		grid-template-columns: 1fr;
	}

	.portfolio-image {
		height: 180px;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeInUp 0.6s ease-out;
}


/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}