/* Import fonts */
@font-face {
    font-family: 'BebasNeue';
    src: url('assets/bebasneue.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Arial';
    src: url('assets/arial.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CelticKnots';
    src: url('assets/celticknotsbq55.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* CSS Variables for consistent theming */
:root {
    --primary-black: #000000;
    --accent-cyan: #71c8f0;
    --primary-white: #ffffff;
    --text-opacity-high: 1;
    --text-opacity-medium: 0.7;
    --text-opacity-low: 0.4;
    --font-heading: 'BebasNeue', Arial, sans-serif;
    --font-body: 'Arial', sans-serif;
    --font-decorative: 'CelticKnots', serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--accent-cyan);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--primary-white);
}

.logo .highlight {
    color: var(--accent-cyan);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--primary-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 80px 20px 20px;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    opacity: var(--text-opacity-medium);
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: var(--text-opacity-medium);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-cyan);
    color: var(--primary-black);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-cyan);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-cyan);
}

/* Binary Background Animation */
.binary-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.1;
}

.binary-text {
    position: absolute;
    font-family: var(--font-body);
    font-size: 2rem;
    color: var(--accent-cyan);
    white-space: nowrap;
    animation: float 20s infinite linear;
}

.binary-text:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.binary-text:nth-child(2) {
    top: 50%;
    animation-delay: -7s;
}

.binary-text:nth-child(3) {
    top: 80%;
    animation-delay: -14s;
}

@keyframes float {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100vw);
    }
}

/* Challenges Section */
.challenges {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(113, 200, 240, 0.05) 0%, rgba(0, 0, 0, 1) 100%);
}

.challenges h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--primary-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 4rem;
    opacity: var(--text-opacity-medium);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.challenge-item {
    background: rgba(113, 200, 240, 0.05);
    border: 1px solid rgba(113, 200, 240, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(113, 200, 240, 0.1);
}

.challenge-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.challenge-item:hover img {
    opacity: 1;
}

.challenge-content {
    padding: 2rem;
}

.challenge-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.challenge-content p {
    opacity: var(--text-opacity-medium);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: var(--text-opacity-medium);
    line-height: 1.8;
}

.services {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(113, 200, 240, 0.05);
    border-left: 4px solid var(--accent-cyan);
}

.services h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.services ul {
    list-style: none;
}

.services li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    opacity: var(--text-opacity-medium);
    position: relative;
    padding-left: 1.5rem;
}

.services li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(113, 200, 240, 0.05) 100%);
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 4rem;
    opacity: var(--text-opacity-medium);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(113, 200, 240, 0.05);
    border: 1px solid rgba(113, 200, 240, 0.2);
}

.contact-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.contact-item p {
    opacity: var(--text-opacity-medium);
    margin-bottom: 1rem;
}

.email-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--primary-white);
}

.social-links p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--accent-cyan);
}

footer p {
    opacity: var(--text-opacity-medium);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--accent-cyan);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .challenges h2,
    .about h2,
    .contact h2 {
        font-size: 2.5rem;
    }
    
    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .binary-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 20px;
    }
    
    .nav-menu {
        margin-top: 1rem;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background-color: var(--accent-cyan);
    color: var(--primary-black);
}