/*
 * MiddleSiggy's Digital World - Custom Styles
 * Theme: Modern Tech-Focused Design
 * Colors: Blues/Grays for tech, Green accents for growth
 */

:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --light-blue: #60a5fa;
    --tech-gray: #1f2937;
    --light-gray: #6b7280;
    --accent-green: #10b981;
    --dark-green: #059669;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--tech-gray);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Header & Navigation */
#header {
    background: linear-gradient(135deg, var(--tech-gray) 0%, var(--dark-blue) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    color: #fff;
    font-weight: 700;
}

.brand-sub {
    color: var(--accent-green);
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    margin-right: 0.3rem;
}

.youtube-link {
    background-color: #ff0000;
    color: #fff !important;
    border-radius: 20px;
}

.youtube-link:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.dropdown-menu {
    background-color: var(--tech-gray);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
    background-color: var(--dark-blue);
    color: var(--accent-green);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, var(--accent-green) 100%);
    color: #fff;
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero .avatar-container {
    text-align: center;
}

.hero .avatar-img {
    max-width: 300px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.btn-primary-custom {
    background-color: var(--accent-green);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin: 0.5rem;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin: 0.5rem;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background-color: #fff;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tech-gray);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    text-align: center;
    margin-bottom: 3rem;
}

.section-alt {
    background-color: #fff;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tech-gray);
}

.feature-card p {
    color: var(--light-gray);
    line-height: 1.8;
}

.feature-card .btn-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-card .btn-link:hover {
    color: var(--accent-green);
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

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

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-card .video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-card .video-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-card .video-info {
    padding: 1.5rem;
}

.video-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--tech-gray);
}

.video-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Footer */
#footer {
    background: linear-gradient(135deg, var(--tech-gray) 0%, var(--dark-blue) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 30px;
    margin-top: 80px;
}

#footer h5 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
    padding-left: 5px;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-green);
    transform: translateY(-5px);
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form .input-group {
    border-radius: 30px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
}

.newsletter-form .btn {
    background-color: var(--accent-green);
    border: none;
    padding: 12px 25px;
}

.newsletter-form .btn:hover {
    background-color: var(--dark-green);
}

#footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-green);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-5px);
    color: #fff;
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .avatar-img {
        max-width: 200px;
    }

    .section {
        padding: 50px 0;
    }

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