:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #1a1a1a;
    --accent: #ffcc00;
    --text-light: #ffffff;
    --text-gray: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* FIXED HEADER - FULL WIDTH */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--bg-darker);
    border-bottom: 2px solid var(--accent);
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

/* DESKTOP NAVIGATION - FULL SCREEN EXPAND */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.1);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(255, 204, 0, 0.15);
}

/* HAMBURGER BUTTON */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

/* MOBILE MENU */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-darker);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    border-right: 2px solid var(--accent);
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.menu-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.menu-close-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
    color: var(--accent);
}

.mobile-menu-link:hover {
    background: rgba(255, 204, 0, 0.1);
    color: var(--accent);
}

.mobile-menu-link.active {
    background: rgba(255, 204, 0, 0.15);
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

/* MAIN CONTENT */
main {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
}

/* FULL SCREEN CONTENT */
.full-width {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    main {
        padding-top: 60px;
    }
    
    body {
        padding-top: 60px;
    }
}

@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    body {
        padding-top: 80px;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* FOOTER */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--accent);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 700;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
    text-decoration-thickness: 2px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #FFFFFF;
}

.footer-bottom a {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* PERFORMANCE OPTIMIZATIONS */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tutorial-card {
    background: var(--bg-darker);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
}

.tutorial-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    aspect-ratio: 400/240;
    background-color: #333;
    background-size: cover;
}

.tutorial-content {
    padding: 1.5rem;
}

.tutorial-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tutorial-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.tutorial-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tutorial-title a:hover {
    color: var(--accent);
}

.tutorial-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
}

/* RESPONSIVE TUTORIALS */
@media (max-width: 768px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tutorial-image {
        height: 160px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* SEARCH BOX */
.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    background: var(--bg-darker);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}

.search-button {
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #ffdd44;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
}

/* CONTACT FORM */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-darker);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #ffdd44;
    transform: scale(1.02);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-darker);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-message {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #ffdd44;
    transform: scale(1.05);
}

/* ANIMATIONS */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* UTILITY CLASSES */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

/* PRINT STYLES */
@media print {
    .header, .footer, .hamburger-btn, .search-box {
        display: none !important;
    }
}
