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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #1a1a2e; /* Dark blue/purple */
    color: #e0e0e0;
    padding: 1rem 0;
    border-bottom: 3px solid #0f3460; /* Slightly darker blue */
}

header .logo {
    float: left;
    background: url('images/logo.png') no-repeat center center/cover;
    min-width: 120px;
    max-width: 140px;
}

header nav {
    float: right;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #e94560; /* Accent color */
}

/* Hero Section */
#hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero.png') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-family: 'Roboto Mono', monospace; /* Techy font */
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background: #e94560; /* Accent color */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #c73652; /* Darker accent */
}

.btn-secondary {
    display: inline-block;
    background: #0f3460; /* Darker blue */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #1a1a2e;
}

/* Sections */
section {
    padding: 60px 0;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0f3460;
}

section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.alt-background {
    background-color: #f9f9f9;
}

/* About Section Features */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 15px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: #e94560;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Content Section Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.video-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.video-card h3 {
    font-size: 1.3rem;
    color: #0f3460;
    padding: 15px;
    margin-bottom: 0;
}

.video-card p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 15px 15px;
    margin-bottom: 0;
}


/* Subscribe Section */
#subscribe form {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#subscribe input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    width: 300px;
    max-width: 70%;
    outline: none;
}

#subscribe button[type="submit"] {
    padding: 12px 25px;
    border: none;
    background: #e94560;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#subscribe button[type="submit"]:hover {
    background: #c73652;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: inline-block; /* To center the ul */
    padding: 0;
}

.footer-links ul li {
    display: inline;
    margin: 0 10px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e94560;
}

.social-media a {
    margin: 0 8px;
    display: inline-block;
}

.social-media img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #0f3460; /* Darker blue for social icons */
    padding: 5px;
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .logo,
    header nav {
        float: none;
        text-align: center;
    }

    header nav ul li {
        margin: 0 10px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .features,
    .video-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item,
    .video-card {
        max-width: 90%;
        margin-bottom: 20px;
    }

    #subscribe form {
        flex-direction: column;
        align-items: center;
    }

    #subscribe input[type="email"] {
        border-radius: 5px;
        margin-bottom: 10px;
        width: 80%;
    }

    #subscribe button[type="submit"] {
        border-radius: 5px;
        width: 80%;
    }
}