/* Powerhouse Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #0b0e14;
    color: #e6edf3;
    line-height: 1.6;
}

header {
    background: #161b22;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid #007bff;
}

nav {
    display: flex;
    justify-content: center;
    background: #1f242d;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #007bff;
}

main {
    padding: 40px 10%;
    min-height: 80vh;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 10px;
}

.card {
    background: #1c2128;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    border-left: 6px solid #007bff;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto;
}

input, textarea {
    background: #0d1117;
    border: 1px solid #30363d;
    color: white;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #0056b3;
}

footer {
    background: #161b22;
    text-align: center;
    padding: 40px;
}

.social-links a {
    color: #007bff;
    margin: 0 15px;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    main { padding: 20px 5%; }
    nav { flex-direction: column; align-items: center; }
    nav a { margin: 8px 0; }
}

/* Animated Background for the Modal */
/* Project Grid Layout */
.projects-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

.project-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 15px;
    width: 320px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #007bff;
}

/* Small Preview Styling */
.video-preview {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .play-overlay {
    opacity: 1;
}

/* Modal with Animated Background */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: linear-gradient(-45deg, #0b0e14, #001f3f, #007bff, #0b0e14);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.modal-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: auto;
    width: 90%;
    max-width: 800px; /* Limits the "Big" view to a professional size */
    border: 3px solid #007bff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.7);
}

.modal-content video {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.close-btn {
    position: absolute;
    top: 20px; right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
}