:root {
    --bg-color: #1d3557;
    --text-color: #f1faee;
    --accent-color: #e63946;
    --card-bg: rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: rgba(255, 255, 255, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    transition: background-color 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

#interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -40px) rotate(8deg);
    }
    50% {
        transform: translate(-35px, -20px) rotate(-8deg);
    }
    75% {
        transform: translate(-30px, 30px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0);
    }
}

.bg-particle:hover {
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.theme-toggle button,
.lang-switch button {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.theme-toggle button:hover,
.lang-switch button:hover,
.lang-switch button.active {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 8px 25px rgba(230, 57, 70, 0.4));
    transform: scale(1.02) rotate(2deg);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
        filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    }
    25% {
        transform: translateY(-15px) rotate(3deg);
        filter: drop-shadow(0 19px 25px rgba(0, 0, 0, 0.2));
    }
    75% {
        transform: translateY(15px) rotate(-3deg);
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.logo.pulse {
    animation: logoPulse 0.5s ease-in-out;
}

/* Email Popup Styles */
.email-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.email-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.email-popup-header h3 {
    font-family: 'Audiowide', sans-serif;
    color: var(--text-color);
}

.close-popup {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
}

.email-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.email-address {
    font-family: 'Iceland', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.copy-button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    font-family: 'Goldman', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
    letter-spacing: -0.5px;
}

.services {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    font-family: 'Iceland', sans-serif;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-family: 'Russo One', sans-serif;
    font-size: 1.2rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

.service-item span {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact {
    text-align: center;
    margin-top: 35px;
}

.contact-button {
    font-family: 'Audiowide', sans-serif;
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
    letter-spacing: 1px;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.4);
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-item .icon i {
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.contact-item:hover .icon i {
    transform: scale(1.1);
}

.email-address,
.telegram-address {
    font-family: 'Iceland', sans-serif;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-item:hover .email-address,
.contact-item:hover .telegram-address {
    color: var(--text-color);
}

.popup-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.copy-button {
    position: relative;
    padding: 12px;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.copy-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.copy-button:hover i {
    transform: translateY(-1px);
}

.copy-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.copy-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copy-button.copied {
    background: #2ecc71;
}

.copy-button.copied i {
    transform: scale(1.2);
}

.cursor-dot,
.cursor-dot-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0;
    will-change: transform;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    mix-blend-mode: difference;
    margin-top: -4px;
    margin-left: -4px;
}

.cursor-dot-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(230, 57, 70, 0.2);
    transition: transform 0.2s ease-out, background-color 0.3s ease-in-out;
    backdrop-filter: blur(2px);
    margin-top: -20px;
    margin-left: -20px;
}

@keyframes cursorAnim {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.7);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cursorAnim2 {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes cursorAnim3 {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.expand {
    animation: cursorAnim3 0.5s forwards;
}

.cursor-dot-outline.active {
    animation: cursorAnim2 1s infinite;
}

@media (max-width: 480px) {
    .theme-toggle,
    .lang-switch {
        position: fixed;
        z-index: 1000;
    }

    .theme-toggle {
        top: 20px;
        right: 20px;
    }

    .lang-switch {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
        background: var(--bg-color);
        padding: 5px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-switch button {
        padding: 6px 10px;
        font-size: 0.9rem;
        min-width: 40px;
        text-align: center;
    }

    body {
        padding-top: 80px;
    }

    .container {
        padding: 0 15px;
    }

    .logo-section {
        margin-bottom: 30px;
    }

    .logo {
        max-width: 300px;
    }

    .card {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
        margin: 25px 0;
        text-align: center;
    }

    .service-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .service-icon {
        min-width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .service-item span {
        font-size: 1rem;
        line-height: 1.3;
    }

    .contact-button {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }

    .profile-section {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }

    .email-popup {
        width: 90%;
        padding: 20px;
    }

    .popup-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .copy-button {
        padding: 10px;
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 10px;
    }

    .contact-item .icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .email-address,
    .telegram-address {
        font-size: 1.1rem;
    }

    /* Hide custom cursor on mobile */
    .cursor-dot,
    .cursor-dot-outline {
        display: none;
    }
}

/* Add tablet breakpoint */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .logo {
        max-width: 350px;
    }

    .card {
        padding: 25px;
    }

    .service-item span {
        font-size: 1rem;
    }

    /* Hide custom cursor on tablets */
    .cursor-dot,
    .cursor-dot-outline {
        display: none;
    }
} 