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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-logo .nav-sub {
    display: block;
    font-size: 0.6rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
    font-weight: 300;
    margin-top: -2px;
}

.nav-logo .nav-sub a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.nav-logo .nav-sub a:hover {
    opacity: 0.7;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Background Toggle */
.bg-toggle {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(255, 255, 255, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .bg-toggle {
        position: fixed;
        top: 20px;
        right: 70px;
        z-index: 1001;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Floating Spheres */
.floating-spheres {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    box-shadow:
        inset 0 0 50px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(255, 255, 255, 0.05);
}

.sphere-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: floatSphere1 25s ease-in-out infinite;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -50px;
    animation: floatSphere2 30s ease-in-out infinite;
}

.sphere-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 10%;
    animation: floatSphere3 20s ease-in-out infinite;
}

.sphere-4 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: 15%;
    animation: floatSphere4 28s ease-in-out infinite;
}

@keyframes floatSphere1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(100px, 150px) scale(1.1);
    }
}

@keyframes floatSphere2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-80px, 100px) scale(0.9);
    }
}

@keyframes floatSphere3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(120px, -80px) scale(1.15);
    }
}

@keyframes floatSphere4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-100px, -120px) scale(0.95);
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

.logo {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 100;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    animation: fadeIn 1.5s ease-out;
    display: flex;
    justify-content: center;
}

.logo span {
    background: linear-gradient(180deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 0.5em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    margin-bottom: 3rem;
    opacity: 0.7;
    animation: fadeIn 1.5s ease-out 0.3s backwards;
}

.cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Title */
.section-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 100;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tools Section */
.tools {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tool-card {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg {
    color: #fff;
    opacity: 0.9;
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.tool-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-content textarea,
.tool-content input[type="text"],
.tool-content select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.tool-content textarea {
    min-height: 100px;
}

.tool-content textarea:focus,
.tool-content input:focus,
.tool-content select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.tool-content select option {
    background: #000;
    color: #fff;
    padding: 0.5rem;
}

.tool-btn {
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.tool-btn.secondary {
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-row {
    display: flex;
    gap: 1rem;
}

.btn-row .tool-btn {
    flex: 1;
}

.result-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    min-height: 80px;
    font-family: monospace;
    font-size: 0.95rem;
    word-break: break-all;
    color: #fff;
    overflow-x: auto;
}

.result-box:empty::after {
    content: 'Результат появится здесь...';
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.ascii-output {
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: pre;
    overflow-x: auto;
}

/* Password Generator Specific */
.password-display {
    display: flex;
    gap: 1rem;
}

.password-field {
    flex: 1;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
}

.strength-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-fill.weak { background: #ff0040; width: 33%; }
.strength-fill.medium { background: #ffaa00; width: 66%; }
.strength-fill.strong { background: #00ff88; width: 100%; }

.strength-text {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.slider-container {
    margin: 1rem 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    border: 2px solid #000;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #fff;
    cursor: pointer;
}

/* About Section */
.about {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
    background: #000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 100;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.6;
    letter-spacing: 0.2em;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    color: #fff;
    opacity: 0.9;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-item p {
    opacity: 0.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.submit-btn {
    padding: 1.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Hero Small for Tool Pages */
.hero-small {
    position: relative;
    z-index: 2;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 100;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    opacity: 0.7;
}

/* Tool Section for Single Pages */
.tool-section {
    position: relative;
    z-index: 2;
    padding: 4rem 0 8rem;
}

.tool-card-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tool-card-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.tool-card-single:hover::before {
    left: 100%;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Info Section */
.info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section h3 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.translit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.translit-table th,
.translit-table td {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.translit-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.translit-table td {
    font-family: monospace;
}

.translit-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer p {
    opacity: 0.5;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        height: auto;
        min-height: 60vh;
        padding: 4rem 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .tagline {
        margin-bottom: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tools {
        padding: 4rem 0;
    }

    .about {
        padding: 4rem 0;
    }

    .contact {
        padding: 4rem 0;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .tool-card-single {
        padding: 1.5rem;
    }

    .btn-row {
        flex-direction: column;
    }

    .password-display {
        flex-direction: column;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .info-section {
        overflow-x: auto;
    }

    .translit-table {
        font-size: 0.8rem;
    }

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

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .tech-item {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1.5rem;
    }

    .hero-small {
        padding: 6rem 0 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .stats {
        gap: 2rem;
    }

    .sphere-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -50px;
    }

    .sphere-2 {
        width: 150px;
        height: 150px;
        top: 30%;
        right: -30px;
    }

    .sphere-3 {
        width: 120px;
        height: 120px;
        bottom: 20%;
        left: 5%;
    }

    .sphere-4 {
        width: 180px;
        height: 180px;
        bottom: -50px;
        right: 10%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .nav {
        padding: 0.7rem 0;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        width: 100%;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .bg-toggle {
        right: 60px;
        top: 15px;
    }

    .toggle-switch {
        width: 40px;
        height: 20px;
    }

    .toggle-slider:before {
        height: 12px;
        width: 12px;
        left: 3px;
        bottom: 3px;
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }

    .hero {
        min-height: 50vh;
        padding: 3rem 0;
    }

    .logo {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: 0.15em;
    }

    .tagline {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        letter-spacing: 0.1em;
    }

    .tools-grid {
        gap: 1rem;
    }

    .tool-card {
        padding: 1.5rem 1rem;
    }

    .tool-card h3 {
        font-size: 1.2rem;
    }

    .tool-card p {
        font-size: 0.85rem;
    }

    .tool-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .tool-card-single {
        padding: 1rem;
    }

    .tool-content textarea,
    .tool-content input[type="text"],
    .tool-content select {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .tool-content textarea {
        min-height: 80px;
    }

    .tool-btn {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .result-box {
        padding: 1rem;
        min-height: 60px;
        font-size: 0.85rem;
    }

    .password-field {
        font-size: 1rem;
    }

    .checkbox-label {
        font-size: 0.85rem;
    }

    .page-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .hero-small {
        padding: 5rem 0 1.5rem;
    }

    .about-content,
    .contact-content {
        gap: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stats {
        gap: 1.5rem;
    }

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

    .tech-item {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .about-grid {
        gap: 1rem;
    }

    .about-card {
        padding: 1.2rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .about-card p {
        font-size: 0.9rem;
    }

    .features-list li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .contact-link {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .email-value {
        font-size: 1rem;
    }

    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .scroll-indicator {
        display: none;
    }

    .translit-table {
        font-size: 0.7rem;
    }

    .translit-table th,
    .translit-table td {
        padding: 0.4rem 0.3rem;
    }

    .slider-label {
        font-size: 0.8rem;
    }

    .strength-text {
        font-size: 0.8rem;
    }

    .ascii-output {
        font-size: 0.5rem;
    }

    .version-info p {
        font-size: 0.85rem;
    }

    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .info-section h3 {
        font-size: 1.1rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer p {
        font-size: 0.8rem;
    }

    #thumbnail {
        max-width: 100%;
    }
}

/* About Page Styles */
.about-page {
    position: relative;
    z-index: 2;
    padding: 4rem 0 8rem;
}

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

.about-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.about-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-icon svg {
    color: #fff;
    opacity: 0.9;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.about-card p {
    line-height: 1.8;
    opacity: 0.8;
    font-size: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
    opacity: 0.8;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list strong {
    color: #fff;
    font-weight: 500;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

.email-box {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.email-label {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.email-value {
    font-size: 1.2rem;
    font-family: monospace;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.email-value:hover {
    color: rgba(255, 255, 255, 0.7);
}

.email-hint {
    font-size: 0.75rem;
    opacity: 0.5;
    font-style: italic;
}

.version-info {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.version-info p {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
