/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    background-color: white;
    color: black;
    padding: 1rem 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3.5rem;
}

.logo {
    display: flex;
    align-items: center;
    max-width: 35%;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 2.5rem;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Hero logo */
.hero-logo {
    max-width: 80%;
    width: auto;
    height: auto;
    opacity: 0;
    animation: fadeIn 2s ease 0.5s forwards;
}

/* Section logos */
.section-logo {
    max-width: 50%;
    width: auto;
    height: auto;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a:hover {
    text-decoration: underline;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

#starCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 42rem;
    margin-bottom: 2rem;
}

.hero-button {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: black;
    font-weight: 700;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
}

@keyframes shine {
    0% {
        left: -100%;
        top: -100%;
    }
    100% {
        left: 100%;
        top: 100%;
    }
}

/* About Section Styles */
.about-section {
    background-color: white;
    color: black;
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* Contact Section Styles */
.contact-section {
    background-color: #f3f4f6;
    color: black;
    padding: 5rem 0;
    text-align: center;
}

.contact-form {
    max-width: 28rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
}

.form-input:focus {
    outline: none;
    border-color: black;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.form-submit {
    width: 100%;
    padding: 0.75rem;
    background-color: black;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #333;
}

/* Footer */
.footer {
    background-color: black;
    color: white;
    padding: 2rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 10rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.social-links {
    display: flex;
    margin-bottom: 2rem;
}

.social-links a {
    margin: 0 0.75rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ccc;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.875rem;
    width: 100%;
}

/* Daggersquare Font */
@font-face {
	font-family: 'daggersquareregular';
	src: url('../fonts/Basilisk/daggersquare-webfont.eot');
	src: url('../fonts/Basilisk/daggersquare-webfont.eot?#iefix') format('embedded-opentype'),
		url('../fonts/Basilisk/daggersquare-webfont.woff2') format('woff2'),
		url('../fonts/Basilisk/daggersquare-webfont.woff') format('woff'),
		url('../fonts/Basilisk/daggersquare-webfont.ttf') format('truetype'),
		url('../fonts/Basilisk/daggersquare-webfont.svg#daggersquareregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* Basilisk Section Styles */
.basilisk-section {
    background-color: #111111;
    color: #cccccc;
    border-top: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    position: relative;
    overflow: hidden;
    font-family: daggersquareregular;
}

.basilisk-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 0;
    padding: 0 0;
}

/* CRT EFFECTS */
.basilisk-crt-scanlines {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(rgba(18, 16, 16, 0) 70%, rgba(0, 0, 0, 0.5) 70%);
    background-size: 100% 6px;
    pointer-events: none !important;
    z-index: 10;
    animation: scanline-scroll 120s linear infinite;
    opacity: 0.8;
}

.basilisk-crt-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 9;
    background: radial-gradient(ellipse at center,
        rgba(255, 30, 30, 0.15) 0%,
        rgba(255, 0, 0, 0.08) 40%,
        rgba(0, 0, 0, 0) 100%);
    mix-blend-mode: screen;
    opacity: 0.7;
}

@keyframes scanline-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.basilisk-promo-layout {
    position: relative;
    height: 500px;
    width: 100vw;
    overflow: hidden;
    background-color: #111111;
}

.basilisk-left-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    z-index: 5;
}

.basilisk-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

.basilisk-header-logo {
    max-width: 300px;
    height: auto;
    transition: all 0.3s ease;
}

.basilisk-header-logo:hover {
    transform: scale(1.05);
}

.basilisk-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}

.basilisk-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 15% 0);
}

.basilisk-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    transform: scale(1.5);
    transform-origin: center;
}

/* That dialogue that shows up on the BASILISK website. All of this stuff is ripped from there. */
.cyber-window {
    border: 3px solid #ff0000;
    background-color: #000000;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    transform-origin: center;
    font-family: daggersquareregular;
    max-width: 500px;
}

.cyber-window:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.cyber-window-title {
    background-color: #000000;
    color: #ff0000;
    padding: 8px 15px;
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 2px solid #ff0000;
    font-family: daggersquareregular;
    letter-spacing: 1px;
}

.cyber-window-content {
    padding: 25px;
    color: #cccccc;
    min-height: 150px;
    font-family: daggersquareregular;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(100% - 35px);
}

.cyber-window-content p {
    margin-bottom: 10px;
    white-space: normal;
    word-break: keep-all;
    hyphens: none;
}

.cyber-window-content strong {
    color: #FF0000;
    font-weight: bold;
    display: inline;
}

.cyber-window-text {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.basilisk-button {
    display: inline-block;
	padding: 15px 30px;
	background-color: #ff0000;
	color: #000000;
	text-decoration: none;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 2px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
    font-family: daggersquareregular;
}

.basilisk-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: all 0.5s ease;
}

.basilisk-button:hover {
    background-color: #ff3333;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.basilisk-button:hover::before {
    left: 100%;
}

.basilisk-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 0, 0, 0.3), transparent);
    opacity: 0;
    z-index: -1;
    animation: glitch-animation 2s linear infinite;
    pointer-events: none;
}

/* Conspiracy Crew Section Styles */
/* Note that when I start designing the website for Conspiracy Crew (once I've played the game and have more information about style and stuff) I'll probably be changing this section A LOT. */
.cc-section {
    background-color: #111111;
    color: #CCCCCC;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    position: relative;
    overflow: hidden;
    font-family: monospace;
}

.cc-container {
    width: 100%;
    padding: 0 0;
}

.cc-promo-layout {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    background-color: #000000;
}

.cc-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}

.cc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cc-right-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    z-index: 5;
    background-color: #000000;
}

.cc-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 20px;
}

.cc-header-logo {
    max-width: 300px;
    height: auto;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-weight: bold;
}

/* Computer screen container - the equivalet to the "cyber window" on BASILISK's section */
.cc-screen-container {
    position: relative;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

/* The screen image (the border) */
.cc-screen {
    width: 100%;
    display: block;
    max-height: 300px;
    object-fit: contain;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.cc-screen-container {
    position: relative;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Text overlay - Positioning is calculated by cc_section.js */
.cc-screen-text {
    position: absolute;
    color: #00FF00;
    font-family: monospace;
    line-height: 1.3;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    text-align: left;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.cc-text-content {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cc-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
}

.cc-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #000000;
    color: #00FF00;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #00ff00;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.cc-button:hover {
    background-color: #00FF00;
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7), 0 0 30px rgba(0, 255, 0, 0.4);
}

.cc-button:active {
    transform: translateY(1px);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.blinking-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

/* Media queries */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }

    .hero-text {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-logo {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

body, html {
    scroll-behavior: smooth;
}

/* BASILISK Mobile Layout */
@media (max-width: 768px) {
    .basilisk-promo-layout {
        height: auto;
        min-height: 700px;
    }
    
    .basilisk-left-content, 
    .basilisk-window-container {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        left: auto;
        padding: 30px 20px;
        order: 2;
    }
    
    .basilisk-button-container {
        position: relative;
        width: 100%;
        bottom: auto;
        margin: 20px 0 40px;
    }
    
    .basilisk-image-container {
        position: relative;
        width: 100%;
        height: 300px;
        clip-path: none;
        order: 1;
    }
    
    .cyber-window {
        max-width: 100%;
        width: 100%;
    }
    
    .basilisk-angled-divider {
        display: none;
    }
}

/* Conspiracy Crew Mobile Layout */
@media (max-width: 768px) {
    .cc-promo-layout {
        height: auto;
        min-height: 700px;
        display: flex;
        flex-direction: column;
    }
    
    .cc-image-container {
        position: relative;
        width: 100%;
        height: 300px;
        clip-path: none;
        order: 1;
    }
    
    .cc-right-content {
        position: relative;
        width: 100%;
        height: auto;
        order: 2;
        padding: 30px 20px;
    }
    
    .cc-logo-container {
        margin-bottom: 20px;
    }
    
    .cc-screen-container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .cc-screen {
        width: 100%;
    }
    
    .cc-screen-text {
        font-size: 16px;
    }
    
    .blinking-cursor {
        display: inline-block !important;
        opacity: 1 !important;
    }
    
    #terminalContainer {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) !important;
    }
    
    .cc-button {
        width: 80%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Fix screen text positioning for mobile */
    #screenText {
        padding: 15px !important;
        top: 50px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        height: auto !important;
    }
}