/* Cyberframe Video Portfolio - Main Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
.top-bar {
    background-color: #e00;
    height: 5px;
}

.header {
    background: linear-gradient(135deg, #2e8bc0 0%, #1976d2 100%);
    text-align: center;
}

.logo-img {
    max-width: 350px;
    height: auto;
}

/* Category Tabs */
.category-section {
    background-color: #f0f0f0;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.category-tab {
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: #333;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover {
    background-color: #e0e0e0;
}

.category-tab.active {
    border-bottom-color: #e00;
    font-weight: 600;
}

/* Loading Spinner */
.loading-section {
    background-color: #f0f0f0;
    padding: 4rem 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #ddd;
    border-top-color: #e00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
    padding: 3rem 0;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.contact-layout-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-column {
    padding-right: 2rem;
}

.form-message {
    padding: 1rem 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-map-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-map-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.contact-info-item h4 {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.contact-info-item a {
    color: #0073aa;
    text-decoration: none;
    font-size: 1.2rem;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-info-item p {
    margin: 0.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.required {
    color: #e00;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: inherit;
    pointer-events: auto;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e8bc0;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #e00;
    background-color: #fff5f5;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #28a745;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

.error-message {
    display: none;
    color: #e00;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.error-message.show {
    display: block;
}

.submit-btn {
    background-color: #e00;
    color: white;
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #c00;
}

.contact-info-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.contact-info-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.contact-info-column a {
    color: #e00;
    text-decoration: none;
    font-size: 1rem;
}

.contact-info-column a:hover {
    text-decoration: underline;
}

.contact-info-column p {
    margin: 0.5rem 0;
}

/* Video Gallery */
.video-gallery-section {
    background-color: #f0f0f0;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

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

.video-card {
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

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

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    overflow: hidden;
}

.video-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.play-button i {
    color: #e00;
    font-size: 1.5rem;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.85);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 1rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 3px solid #e00;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout-two-column {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .category-tab {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 250px;
    }

    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
}
