/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066ff;
    --neon-blue: #00d4ff;
    --dark-bg: #0a0e27;
    --darker-bg: #05070f;
    --light-blue: #4d94ff;
    --text-light: #e0e6ed;
    --text-gray: #b0b8c4;
    --accent-glow: rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

nav a:hover::before {
    width: 80%;
}

nav a:hover {
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Banner Styles */
.banner {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--primary-blue), var(--neon-blue));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.5;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Styles */
section {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

section:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--neon-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.05rem;
}

p a, section a:not(.logo-link) {
    color: var(--neon-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

p a:hover, section a:not(.logo-link):hover {
    color: var(--light-blue);
    border-bottom-color: var(--neon-blue);
}

/* Author Profile Styles */
.author-profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}

.author-intro {
    flex: 1;
}

@media (max-width: 768px) {
    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-photo {
        width: 180px;
        height: 180px;
    }
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: rgba(5, 7, 15, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--neon-blue));
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* List Styles */
li {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

li strong {
    color: var(--neon-blue);
}

/* FAQ Styles */
dl {
    margin: 1.5rem 0;
}

dt {
    font-weight: 600;
    color: var(--neon-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

dd {
    margin-left: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* Footer Styles */
footer {
    background: rgba(5, 7, 15, 0.95);
    border-top: 2px solid var(--neon-blue);
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section strong {
    display: block;
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-gray);
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 400px;
        border-bottom: 2px solid var(--neon-blue);
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    nav a {
        display: block;
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.7rem 0.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.5rem 0.3rem;
    }
}

/* 404 Error Page Styles */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.error-404-content {
    text-align: center;
    max-width: 700px;
}

.error-404-number {
    font-size: 150px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--neon-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.error-404-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-404-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.error-404-subtext {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.error-404-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-404-btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    background: transparent;
}

.error-404-btn:hover {
    background: var(--neon-blue);
    color: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.error-404-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--neon-blue));
    color: white;
    border-color: transparent;
}

.error-404-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.error-404-suggestions {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 2rem;
}

.error-404-suggestions h2 {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
}

.error-404-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-404-suggestions li {
    margin-bottom: 1rem;
}

.error-404-suggestions a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.error-404-suggestions a:hover {
    color: var(--neon-blue);
    padding-left: 10px;
}

@media (max-width: 768px) {
    .error-404-number {
        font-size: 100px;
    }
    
    .error-404-content h1 {
        font-size: 2rem;
    }
    
    .error-404-links {
        flex-direction: column;
    }
    
    .error-404-btn {
        width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--neon-blue));
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.scroll-to-top::before {
    content: '↑';
    font-size: 24px;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .scroll-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top::before {
        font-size: 20px;
    }
}

/* Glow Effects */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }
}

/* Bonus Calculator Styles */
.bonus-calculator {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.05));
    border: 2px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.bonus-calculator::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 1rem;
}

.label-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.input-group input[type="number"] {
    padding: 1rem;
    background: rgba(5, 7, 15, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(5, 7, 15, 0.95);
}

.input-group input[type="number"]::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(0, 212, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--neon-blue);
}

.checkbox-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background: rgba(5, 7, 15, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.result-main {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.2));
    border-color: var(--neon-blue);
}

.result-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    color: var(--neon-blue);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.result-main .result-value {
    font-size: 2.2rem;
}

.result-note {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.result-quality {
    background: rgba(10, 14, 39, 0.8);
}

.quality-indicator {
    margin-top: 0.5rem;
}

.quality-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.quality-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px currentColor;
}

.quality-text {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.calculator-tips {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tip-content strong {
    color: var(--neon-blue);
}

/* Responsive Calculator */
@media (max-width: 968px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .result-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bonus-calculator h2 {
        font-size: 1.5rem;
    }

    .input-group input[type="number"] {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .result-main .result-value {
        font-size: 1.8rem;
    }

    .result-icon {
        font-size: 2rem;
    }

    .result-card {
        padding: 1rem;
    }
}

