:root {
    --glow-color: hsl(210, 100%, 75%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

header h1 {
    font-size: 3.5rem;
    margin: 0;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.5rem;
    color: #888;
    margin: 0.5rem 0 0;
    animation: fadeInUp 1s ease-out;
}

main {
    padding: 2rem;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
}

.video-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--x) var(--y),
        rgba(40, 98, 215, 0.2),
        transparent 40%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.video-gallery:hover::before {
    opacity: 1;
}

.video-container {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.95);
}

.video-container:nth-child(1) { animation-delay: 0.1s; }
.video-container:nth-child(2) { animation-delay: 0.2s; }
.video-container:nth-child(3) { animation-delay: 0.3s; }

.video-container:hover {
    transform: scale(1.05) rotateX(var(--rotateX)) rotateY(var(--rotateY));
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.video-container video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.video-container h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    color: #ccc;
    background-color: rgba(0,0,0,0.3);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 0 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s 0.5s ease-out forwards;
    opacity: 0;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro p {
    font-size: 1.2rem;
    color: #888;
    line-height: 1.6;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Footer and Contact Card */
footer {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-card p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.contact-card a {
    font-size: 1.3rem;
    color: var(--glow-color);
    text-decoration: none;
    border: 1px solid var(--glow-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-card a:hover {
    background-color: var(--glow-color);
    color: #111;
}

/* Signup Section */
.signup-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.signup-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.signup-section p {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.signup-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.signup-form input[type="email"] {
    flex-grow: 1;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #222;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--glow-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.signup-form button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    color: #111;
    background-color: var(--glow-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.signup-form button:hover {
    background-color: hsl(210, 100%, 85%);
    transform: scale(1.05);
}

.signup-message {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    min-height: 1.5rem; /* Reserve space to prevent layout shifts */
}

.signup-message.success {
    color: #28a745;
}

.signup-message.error {
    color: #dc3545;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
}
