/* Reset & Base Styles */
:root {
    --primary-bg: #111111;
    --secondary-bg: #1a1a1a;
    --card-bg: #222222;
    --ice-blue: #56ccf2;
    --ice-blue-dark: #2d9cdb;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--ice-blue);
    color: #000;
}

.btn-primary:hover {
    background-color: #fff;
}

.btn-secondary {
    border: 2px solid var(--ice-blue);
    color: var(--ice-blue);
}

.btn-secondary:hover {
    background-color: var(--ice-blue);
    color: #000;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 20px;
}

.btn-outline:hover {
    background-color: #fff;
    color: #000;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--ice-blue-dark);
}

.btn-small {
    background-color: #fff;
    color: #000;
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    background-color: rgba(17, 17, 17, 0.95);
    height: 72px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--ice-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    color: #e0e0e0;
}

.nav-links a:hover {
    color: var(--ice-blue);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    margin-top: 72px;
    overflow: hidden;
}

.hero-overlay {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

.hero-content {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 1px 1px 1px #000000;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
}

.hero-blur {
	background-image:linear-gradient(rgba(0,0,0,0), #1A1A1A);
	height:15%;
	width:100%;
	position:absolute;
	bottom:0;
	left:0;
	z-index:1;
}

.fadein-animation {
	animation: fadeIn 500ms forwards;
	animation-delay: 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Games Grid */
.games-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background-color: var(--primary-bg);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    height: 200px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    color: var(--ice-blue);
    margin-bottom: 10px;
}

.game-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.view-all-container {
    text-align: right;
}

.link-arrow {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.link-arrow:hover {
    color: var(--ice-blue);
}

/* Studio Section */
.studio-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.studio-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.studio-text {
    flex: 1;
}

.studio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.studio-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.studio-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-icon {
	width: 256px;
	height: 256px;
    font-size: 15rem;
    color: rgba(86, 204, 242, 0.1);
    background: url('img/iceflake_icon.png');
}

/* Careers Section */
.careers-section {
    padding: 80px 0;
    background: linear-gradient(rgba(45, 156, 219, 0.8), rgba(45, 156, 219, 0.8));
    background-size: cover;
    background-position: center;
    text-align: center;
}

.careers-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.careers-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Community Grid */
.community-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.community-section h2 {
    margin-bottom: 50px;
}

.community-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.community-card {
    background: var(--card-bg);
    padding: 40px 20px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: background 0.3s;
}

.community-card:hover {
    background: #333;
}

.community-card i {
    font-size: 3rem;
    color: var(--ice-blue);
    margin-bottom: 20px;
}

.community-card h3 {
    margin-bottom: 10px;
}

.community-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--ice-blue);
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.2rem;
}

.address {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.logo-small {
    font-family: var(--font-heading);
    font-weight: bold;
    color: #555;
}

.footer-bottom p {
    color: #555;
    font-size: 0.8rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    font-size: 0.8rem;
    color: #555;
}

@media (max-width: 768px) {
    .nav-links, .nav-auth {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .studio-layout {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 300px) {
	.game-image {
		height: 100px;
	}
}