/* Common styles for all blog posts */

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Prevent content jump on load */
html {
    scroll-behavior: auto !important;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #FDB515;
    z-index: 10001;
    transition: width 0.2s ease;
    width: 0%;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 120px;
    left: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(253, 181, 21, 0.2);
    backdrop-filter: blur(10px);
}

.back-button:hover {
    color: #FDB515;
    border-color: #FDB515;
    transform: translateX(-5px);
}

.back-button svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1200px) {
    .back-button {
        top: 110px;
        left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .back-button {
        top: 80px;
        left: 1rem;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        top: 70px;
        left: 0.5rem;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .back-button svg {
        width: 14px;
        height: 14px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    border-bottom: 1px solid rgba(253, 181, 21, 0.2);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FDB515;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-logo-text {
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.9;
}

.nav-link:hover {
    color: #FDB515;
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FDB515;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #FDB515;
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Blog Header */
.blog-header {
    margin-top: 0;
    padding-top: calc(60px + 4rem); /* navbar height + padding */
    padding-bottom: 2rem;
    background: linear-gradient(180deg, rgba(253, 181, 21, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #FDB515;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

/* Blog Container */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Blog Content */
.blog-content {
    margin-bottom: 4rem;
}

.blog-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    color: #FDB515;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.2rem 0;
    color: rgba(253, 181, 21, 0.9);
    font-weight: 600;
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-content strong {
    color: #FDB515;
    font-weight: 600;
}

.blog-content a {
    color: #4A9EFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-content a:hover {
    color: #6BB6FF;
}

.blog-content ul, .blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-content blockquote {
    border-left: 4px solid #FDB515;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .blog-container {
        padding: 0 2rem;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
        border-top: 1px solid rgba(253, 181, 21, 0.2);
    }
    
    .nav-menu.nav-menu-active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.nav-toggle-active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.nav-toggle-active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.nav-toggle-active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .blog-header {
        margin-top: 0;
        padding-top: calc(60px + 2.5rem); /* consistent navbar height on mobile + padding for back button */
        padding-bottom: 1rem;
    }
    
    .blog-header h1,
    .blog-content h1 {
        font-size: 2rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.3rem;
    }
    
    .blog-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 1rem;
    }
}

/* Comparison Table Styles */
.comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.4);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(253, 181, 21, 0.2);
}

.comparison-table th {
    background: rgba(253, 181, 21, 0.1);
    color: #FDB515;
    font-weight: 600;
}

.comparison-table td {
    color: rgba(255, 255, 255, 0.9);
}

.comparison-table td strong a {
    color: inherit;
    text-decoration: none;
}

.comparison-table td strong a:hover {
    color: #4A9EFF;
    text-decoration: underline;
}

.comparison-table tr:hover {
    background: rgba(253, 181, 21, 0.05);
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.75rem;
        min-width: 600px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .comparison-table {
        font-size: 0.7rem;
        min-width: 550px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.3rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 2px solid #FDB515;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(253, 181, 21, 0.3);
}

.modal-header {
    background-color: #FDB515;
    color: black;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.close {
    color: black;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    width: auto;
    height: auto;
}

.close:hover,
.close:focus {
    opacity: 0.7;
}

.contact-form {
    padding: 2rem 1.5rem;
    color: white;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #FDB515;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FDB515;
    box-shadow: 0 0 5px rgba(253, 181, 21, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background-color: #FDB515;
    color: black;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Montserrat', Arial, sans-serif;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s ease, background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background-color: #e6a312;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 181, 21, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Popup */
.popup-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 14999;
}

.success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a1a;
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    z-index: 15000;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.success-popup h3 {
    color: #22c55e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-popup p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        border-radius: 5px;
    }
    
    .contact-form {
        padding: 1rem;
    }
}