/* Color Palette from Logo */
:root {
    --bg-dark: #0a0a0f;
    --knight-blue: #1A365D;
    --knight-purple: #6B46C1;
    --binary-gold: #ECC94B;
    --text-light: #e0e0e0;
    --font-main: 'JetBrains Mono', monospace;
    --font-header: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Deep Blue Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(26, 54, 93, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 54, 93, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

/* Sticky Navigation */
.cyber-nav {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 10%;
    align-items: center;
    border-bottom: 2px solid var(--knight-blue);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
}

.logo-container {
    height: 100px;
}

.logo-container img {
    height: 100%;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-header);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--knight-purple);
}

/* Hero */
.hero {
    /* Change from min-height: 100vh; to this: */
    min-height: auto; 
    padding: 160px 0 80px 0; /* Extra top padding to account for sticky nav, less bottom padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px var(--knight-purple);
}

.hero-content h1 span {
    color: var(--binary-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: bold;
    text-transform: uppercase;
    margin: 10px;
    transition: 0.4s ease-out;
    border-radius: 4px;
}

.btn.primary {
    background-color: var(--knight-purple);
    color: white;
}

.btn:not(.primary) {
    border: 2px solid var(--knight-purple);
    color: var(--knight-purple);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.4);
}

/* Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 8rem 10%;
}

.card {
    background: rgba(26, 54, 93, 0.05);
    padding: 4rem 3rem;
    border: 2px solid rgba(26, 54, 93, 0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: 0.5s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 80px; height: 80px;
    background: var(--knight-purple);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.8;
}

.card:hover {
    background: rgba(26, 54, 93, 0.1);
    border-color: var(--knight-blue);
}

.card-tag {
    font-size: 0.7rem;
    color: var(--binary-gold);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

/* Effects */
.scanline {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .15) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2000;
}

/* Contact Section Styling */
.contact-section {
    padding: 8rem 10%;
    background: linear-gradient(to bottom, #0d0d12, var(--bg-dark));
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    background: rgba(26, 54, 93, 0.05);
    padding: 4rem;
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 8px;
}

.contact-section h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

#contact {
    scroll-margin-top: 100px; /* Adjust this to match the height of your nav bar */
}

.cyber-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--knight-purple);
    font-weight: bold;
}

/* Input Fields */
input, textarea, select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(26, 54, 93, 0.5);
    padding: 1rem;
    color: white;
    font-family: var(--font-main);
    border-radius: 4px;
    transition: 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--knight-purple);
    background: rgba(107, 70, 193, 0.05);
}

#submit-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.video-showcase {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(107, 70, 193, 0.3);
    padding: 20px;
    border-radius: 4px;
    position: relative;
}

.video-label {
    color: #ecc94b; /* Gold binary color */
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
}

.video-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* This trick keeps the YouTube video at a 16:9 aspect ratio */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border: 1px solid #6b46c1; /* Purple border around the video */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-footer {
    background: #050505;
    border-top: 1px solid rgba(107, 70, 193, 0.3);
    padding: 60px 20px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #00f5ff; /* Cyan accent */
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #6b46c1; /* Purple hover */
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #666;
}

.legal-info {
    margin-top: 10px;
    font-style: normal;
}

.yt-footer-icon {
    width: 35px;
    filter: grayscale(1);
    transition: filter 0.3s, transform 0.3s;
}

.yt-footer-icon:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}