/* Breaking Bad Authentic Style - Хайзенберг принт */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Аутентичные Breaking Bad цвета */
    --neon-green: #00FF41;
    --bright-green: #00FF00;
    --toxic-green: #39FF14;
    --neon-yellow: #FFFF00;
    --toxic-yellow: #FFD700;
    --bright-yellow: #FFEA00;
    --pink-meth: #FF1493;
    --bright-pink: #FF69B4;
    --black-bg: #000000;
    --dark-black: #0a0a0a;
    --text-white: #FFFFFF;
    --text-green: #00FF41;
    --text-yellow: #FFFF00;
}

body {
    font-family: 'Courier New', 'Monaco', monospace, sans-serif;
    background-color: var(--black-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 20, 147, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.95);
    padding: 25px 0;
    border-bottom: 3px solid var(--neon-green);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neon-yellow);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 
        0 0 10px var(--neon-yellow),
        0 0 20px var(--neon-yellow),
        0 0 30px var(--neon-yellow),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 
            0 0 10px var(--neon-yellow),
            0 0 20px var(--neon-yellow),
            0 0 30px var(--neon-yellow),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 
            0 0 20px var(--neon-yellow),
            0 0 30px var(--neon-yellow),
            0 0 40px var(--neon-yellow),
            0 0 50px var(--neon-yellow),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Periodic Table Element Styles */
.periodic-element {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--toxic-green) 100%);
    border: 4px solid var(--neon-yellow);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.8),
        0 0 40px rgba(0, 255, 65, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Courier New', monospace;
}

.periodic-element::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-yellow), var(--bright-pink), var(--neon-green));
    border-radius: 4px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(8px);
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.periodic-element:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 1),
        0 0 60px rgba(0, 255, 65, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.element-number {
    font-size: 0.7rem;
    color: var(--text-white);
    opacity: 0.9;
    position: absolute;
    top: 8px;
    left: 10px;
    font-weight: bold;
}

.element-symbol {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--black-bg);
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.element-name {
    font-size: 0.65rem;
    color: var(--neon-yellow);
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-yellow);
}

.periodic-element-small {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bright-pink) 0%, var(--pink-meth) 100%);
    border: 3px solid var(--neon-yellow);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 15px rgba(255, 20, 147, 0.8),
        0 0 30px rgba(255, 20, 147, 0.4);
    font-family: 'Courier New', monospace;
    animation: pink-pulse 2s ease-in-out infinite alternate;
}

@keyframes pink-pulse {
    from {
        box-shadow: 
            0 0 15px rgba(255, 20, 147, 0.8),
            0 0 30px rgba(255, 20, 147, 0.4);
    }
    to {
        box-shadow: 
            0 0 25px rgba(255, 20, 147, 1),
            0 0 50px rgba(255, 20, 147, 0.6);
    }
}

.element-symbol-small {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.element-name-small {
    font-size: 0.6rem;
    color: var(--neon-yellow);
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-yellow);
}

.periodic-elements-decoration {
    display: flex;
    gap: 15px;
    margin-left: 25px;
}

/* Hero Section */
.hero {
    background: var(--black-bg);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.neon-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent,
        var(--neon-green),
        var(--neon-yellow),
        var(--bright-pink),
        transparent);
    opacity: 0.3;
    animation: line-move 8s linear infinite;
}

.neon-line:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.neon-line:nth-child(2) {
    left: 50%;
    animation-delay: 2s;
}

.neon-line:nth-child(3) {
    left: 80%;
    animation-delay: 4s;
}

@keyframes line-move {
    0%, 100% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 5rem;
    font-weight: bold;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 30px var(--neon-green),
        0 0 40px var(--neon-green),
        0 0 70px var(--neon-green),
        3px 3px 6px rgba(0, 0, 0, 0.9);
    font-family: 'Courier New', monospace;
    animation: neon-green-pulse 2s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes neon-green-pulse {
    from {
        text-shadow: 
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green),
            0 0 30px var(--neon-green),
            0 0 40px var(--neon-green),
            3px 3px 6px rgba(0, 0, 0, 0.9);
    }
    to {
        text-shadow: 
            0 0 20px var(--neon-green),
            0 0 30px var(--neon-green),
            0 0 40px var(--neon-green),
            0 0 50px var(--neon-green),
            0 0 80px var(--neon-green),
            3px 3px 6px rgba(0, 0, 0, 0.9);
    }
}

.hero-subtitle {
    font-size: 2.5rem;
    color: var(--neon-yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 10px var(--neon-yellow),
        0 0 20px var(--neon-yellow),
        0 0 30px var(--neon-yellow);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.hero-description {
    font-size: 1.4rem;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    color: var(--neon-yellow);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    padding-bottom: 25px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 
        0 0 10px var(--neon-yellow),
        0 0 20px var(--neon-yellow);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-green), 
        var(--neon-yellow), 
        var(--bright-pink), 
        var(--neon-green),
        transparent);
    box-shadow: 0 0 10px var(--neon-green);
    animation: title-line-glow 2s ease-in-out infinite alternate;
}

@keyframes title-line-glow {
    from {
        box-shadow: 0 0 10px var(--neon-green);
    }
    to {
        box-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--neon-yellow);
    }
}

/* About Section */
.about {
    background: var(--dark-black);
    border-top: 2px solid var(--neon-green);
    border-bottom: 2px solid var(--neon-green);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.3rem;
    color: var(--text-white);
    line-height: 1.9;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Gallery Section */
.gallery {
    background: var(--black-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 3px solid var(--neon-green);
    background: var(--dark-black);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.8),
        0 0 60px rgba(0, 255, 65, 0.4),
        0 0 90px rgba(255, 255, 0, 0.2);
    border-color: var(--neon-yellow);
}

.gallery-image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, 
        var(--neon-green) 0%, 
        var(--toxic-green) 50%, 
        var(--bright-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255, 255, 0, 0.2) 15px,
        rgba(255, 255, 0, 0.2) 30px
    );
    animation: slide-diagonal 4s linear infinite;
}

@keyframes slide-diagonal {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, 30px) rotate(360deg);
    }
}

.placeholder-text {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    color: var(--black-bg);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

/* Contacts Section */
.contacts {
    background: var(--dark-black);
    border-top: 2px solid var(--neon-yellow);
    text-align: center;
}

.contacts-content {
    max-width: 700px;
    margin: 0 auto;
}

.phone-number {
    margin-bottom: 50px;
}

.phone-label {
    display: block;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.phone-link {
    font-size: 2.5rem;
    color: var(--neon-green);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Courier New', monospace;
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green);
}

.phone-link:hover {
    color: var(--neon-yellow);
    text-shadow: 
        0 0 15px var(--neon-yellow),
        0 0 30px var(--neon-yellow),
        0 0 45px var(--neon-yellow);
    transform: scale(1.1);
}

.contact-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 3px solid;
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-btn:hover::before {
    width: 400px;
    height: 400px;
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.contact-btn svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.contact-btn span,
.contact-btn {
    position: relative;
    z-index: 1;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--text-white);
    border-color: #25D366;
    box-shadow: 
        0 0 20px rgba(37, 211, 102, 0.6),
        0 0 40px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    box-shadow: 
        0 0 30px rgba(37, 211, 102, 0.9),
        0 0 60px rgba(37, 211, 102, 0.5);
    border-color: var(--neon-green);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
    color: var(--text-white);
    border-color: #0088cc;
    box-shadow: 
        0 0 20px rgba(0, 136, 204, 0.6),
        0 0 40px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #005f8c 0%, #0088cc 100%);
    box-shadow: 
        0 0 30px rgba(0, 136, 204, 0.9),
        0 0 60px rgba(0, 136, 204, 0.5);
    border-color: var(--neon-yellow);
}

/* Footer */
.footer {
    background: var(--black-bg);
    padding: 40px 0;
    border-top: 3px solid var(--neon-green);
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 255, 65, 0.3);
}

.footer-text {
    color: var(--text-white);
    opacity: 0.8;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        gap: 20px;
    }

    .logo-text {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .hero-title-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-image-placeholder {
        height: 280px;
    }

    .phone-link {
        font-size: 1.8rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    .periodic-element {
        width: 70px;
        height: 70px;
    }

    .element-symbol {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .container {
        padding: 0 15px;
    }

    .phone-link {
        font-size: 1.5rem;
    }
}